Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Your query returned no results. Please change your search criteria and try again. #35

Open
BardiaN opened this issue Aug 10, 2022 · 3 comments

Comments

@BardiaN
Copy link

BardiaN commented Aug 10, 2022

When running terraform plan this error happens :

Error: Your query returned no results. Please change your search criteria and try again.
│ 
│   with module.mars_db.module.session_manager.data.aws_ami.default,
│   on .terraform/modules/<MODULE>/main.tf line 70, in data "aws_ami" "default":
│   70: data "aws_ami" "default" {

I believe for some reason the name filter doesn't work anymore

@detnon
Copy link

detnon commented Aug 11, 2022

Can confirm, this is happening for me too

Error: Your query returned no results. Please change your search criteria and try again.

  with module.my_service.module.<my_module>.data.aws_ami.default,
  on /tmp/terraform-data-dir/modules/<my_module>./main.tf line 70, in data "aws_ami" "default":
  70: data "aws_ami" "default" {

@MahsaMaslahati
Copy link

I have the same problem.

@odise
Copy link

odise commented Oct 6, 2023

The root cause of this is in here: https://github.com/tmknom/terraform-aws-session-manager/blob/master/main.tf#L84

The correct filter should be something like amzn2-ami-hvm-2.0.????????.?-x86_64-gp2. It would even better to make the ami data source conditional if var.ami ist given.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants