Created
August 11, 2020 10:07
-
-
Save lavk7/81c867f0c8a83ec1cc759085b3cac297 to your computer and use it in GitHub Desktop.
latestAmi #aws #terraform
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data "aws_ami" "amazon-linux-2" { | |
most_recent = true | |
owners = ["amazon"] | |
name_regex = "^amzn2-ami-hvm.*-ebs" | |
filter { | |
name = "architecture" | |
values = ["x86_64"] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment