Editing Terraform data source: aws ami
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | ||
* [[AWS instance example with aws ami lookup]] | * [[AWS instance example with aws ami lookup]] | ||
− | |||
− | [[data]] " | + | [[data]] "aws_ami" "ubuntu" { |
− | + | most_recent = true | |
[[filter]] { | [[filter]] { | ||
name = "name" | name = "name" | ||
− | values = ["ubuntu/images/hvm-ssd/ubuntu- | + | values = ["ubuntu/images/hvm-ssd/ubuntu-hirsute-21.04-amd64-server-*"] |
} | } | ||
Line 16: | Line 15: | ||
} | } | ||
− | [[owners]] = [" | + | [[owners]] = ["099720109477"] # Canonical |
− | + | } | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Line 51: | Line 28: | ||
} | } | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== 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> | * <code>[[aws_availability_zones]]</code> | ||
Line 98: | Line 36: | ||
values = ["ubuntu/images/hvm-ssd/ubuntu-kinetic-22.10-amd64-server-*"] | values = ["ubuntu/images/hvm-ssd/ubuntu-kinetic-22.10-amd64-server-*"] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
− | |||
− | |||
* {{Terraform data sources}} | * {{Terraform data sources}} | ||
[[Category:Terraform]] | [[Category:Terraform]] |
Advertising: