Terraform: List of AMI specific to ubuntu 20.04 LTS AWS #15150
Labels
question
A question about existing functionality; most questions are re-routed to discuss.hashicorp.com.
service/ec2
Issues and PRs that pertain to the ec2 service.
I am using terraform to get a list of AMI for a specific OS - ubuntu 20.04,
I have checked different examples link
When I use the script this does not give me list of AMI. So i modified the code
However, ideally this should give me the details of ami in the region specified in my case us-east-1.
[ec2-user@ip-172-31-84-148 ~]$ terraform plan
provider.aws.region
The region where AWS operations will take place. Examples
are us-east-1, us-west-2, etc.
Enter a value: us-east-1
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_ami.ubuntu: Refreshing state…
No changes. Infrastructure is up-to-date.
This means that Terraform did not detect any differences between your
configuration and real physical resources that exist. As a result, no
actions need to be performed.
and also i am not sure how create an out for the above script. i am not very good in terraform. Please guide me where am i going wrong.
Note: I really am not sure whether this is a bug or ... a question..
The text was updated successfully, but these errors were encountered: