Difference between revisions of "Terraform data source: aws ami"
Jump to navigation
Jump to search
m (Welcome moved page Aws ami to Terraform data source: aws ami) |
|||
Line 1: | Line 1: | ||
− | + | ||
* [[AWS instance example with aws ami lookup]] | * [[AWS instance example with aws ami lookup]] | ||
Revision as of 22:28, 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"] } }
See also
Advertising: