Difference between revisions of "Terraform data source: aws ami"
Jump to navigation
Jump to search
Line 31: | Line 31: | ||
== Related == | == Related == | ||
* <code>terraform show | egrep -w "resource|data" | grep -v "#"</code> | * <code>terraform show | egrep -w "resource|data" | grep -v "#"</code> | ||
+ | * <code>[[aws_availability_zones]]</code> | ||
== See also == | == See also == |
Revision as of 22:29, 19 May 2022
data "aws_ami" "ubuntu" { most_recent = true filter { name = "name" values = ["ubuntu/images/hvm-ssd/ubuntu-hirsute-21.04-amd64-server-*"] } filter { name = "virtualization-type" values = ["hvm"] } owners = ["099720109477"] # Canonical }
data "aws_ami" "amzlinux2" { most_recent = true owners = ["amazon"] filter { name = "name" values = ["amzn2-ami-hvm-*-x86_64-ebs"] } }
Related
terraform show | egrep -w "resource|data" | grep -v "#"
aws_availability_zones
See also
Advertising: