To Whom it May Concern,
I have been following the Terraform Associate Tutorials and encountered an issue with the repo for learn-terraform-inject-secrets-aws-vault. There are two workspaces and the "operator-workspace" is where the problem lies. Looking at main.tf you'll see the resource block for the EC2 instance. I modified the instance_type from t2. nano to micro.
I also needed to adjust the data block filter value for "ubuntu/images/hvm-ssd/ubuntu-jammy-*" as "trusty" was not working for me.
Below were the previous errors
home:operator-workspace$ terraform apply
data.terraform_remote_state.admin: Reading...
data.terraform_remote_state.admin: Read complete after 0s
data.vault_aws_access_credentials.creds: Reading...
data.vault_aws_access_credentials.creds: Still reading... [10s elapsed]
data.vault_aws_access_credentials.creds: Still reading... [20s elapsed]
...
data.aws_ami.ubuntu: Reading...
╷
│ Error: Your query returned no results. Please change your search criteria and try again.
│
│ with data.aws_ami.ubuntu,
│ on main.tf line 31, in data "aws_ami" "ubuntu":
│ 31: data "aws_ami" "ubuntu" {
│
Now
aws_instance.main: Creating...
aws_instance.main: Still creating... [10s elapsed]
aws_instance.main: Still creating... [20s elapsed]
aws_instance.main: Still creating... [30s elapsed]
aws_instance.main: Creation complete after 34s
If I made an error in implementation let me know.
Thanks Rash.