Skip to content

Instantly share code, notes, and snippets.

@lavk7
Created August 11, 2020 10:07
Show Gist options
  • Save lavk7/81c867f0c8a83ec1cc759085b3cac297 to your computer and use it in GitHub Desktop.
Save lavk7/81c867f0c8a83ec1cc759085b3cac297 to your computer and use it in GitHub Desktop.
latestAmi #aws #terraform
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