hashicorp/vault-guides

(Best-Practices) Your query returned no results. Please change your search criteria and try again

aneopsy opened this issue · 5 comments

Hi,
I have this error when I try the best-practices example on AWS (vault-guides/operations/provision-vault/best-practices/terraform-aws)

$ terraform plan
provider.aws.region
  The region where AWS operations will take place. Examples
  are us-east-1, us-west-2, etc.

  Default: us-east-1
  Enter a value:

Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.

data.aws_availability_zones.main: Refreshing state...
data.aws_elb_service_account.vault_lb_access_logs: Refreshing state...
data.aws_elb_service_account.consul_lb_access_logs: Refreshing state...
data.aws_iam_policy_document.assume_role: Refreshing state...
data.aws_ami.hashistack: Refreshing state...
data.aws_iam_policy_document.assume_role: Refreshing state...
data.aws_iam_policy_document.assume_role: Refreshing state...
data.aws_ami.consul: Refreshing state...
data.aws_iam_policy_document.consul: Refreshing state...
data.aws_iam_policy_document.assume_role: Refreshing state...
data.aws_iam_policy_document.consul: Refreshing state...
data.aws_iam_policy_document.consul: Refreshing state...
data.aws_ami.vault: Refreshing state...
data.aws_iam_policy_document.consul: Refreshing state...

Error: Error refreshing state: 3 error(s) occurred:

* module.vault_aws.data.aws_ami.vault: 1 error(s) occurred:

* module.vault_aws.data.aws_ami.vault: data.aws_ami.vault: Your query returned no results. Please change your search criteria and try again.
* module.network_aws.data.aws_ami.hashistack: 1 error(s) occurred:

* module.network_aws.data.aws_ami.hashistack: data.aws_ami.hashistack: Your query returned no results. Please change your search criteria and try again.
* module.consul_aws.data.aws_ami.consul: 1 error(s) occurred:

* module.consul_aws.data.aws_ami.consul: data.aws_ami.consul: Your query returned no results. Please change your search criteria and try again.

I didn't make any changes, only a '$ git clone', '$ terraform init' and a '$ terraform plan'.

Thank you.

Sorry for the delay here @aneopsy, this should be resolved now. Something made all of the public images we host private so they were not queryable. Let me know if this did not fix your issue!

I experienced this same issue today.

I don't know if anything changed, but this is working for me now.

These errors seem to be happening again. I just got them.

Reopen, please... This is (still?) happening now:

$ aws ec2 describe-images --owners 012230895537
{
    "Images": []
}

The same error pops up for three child modules:

  • consul-aws
  • network-aws
  • vault-aws

The same issue has been reported also for network-aws module itself.