Skip to content

Instantly share code, notes, and snippets.

@theCaptN21
Created February 2, 2023 14:35
Show Gist options
  • Save theCaptN21/e6c21fa1d97388a8e080d7cab30695ee to your computer and use it in GitHub Desktop.
Save theCaptN21/e6c21fa1d97388a8e080d7cab30695ee to your computer and use it in GitHub Desktop.
AMI Information
#AMI filter for Amazon Linux HVM
data "aws_ami" "amazon_linux" {
most_recent = true
filter {
name = "name"
values = ["amzn2-ami-hvm-2.0*"]
}
filter {
name = "virtualization-type"
values = ["hvm"]
}
filter {
name = "root-device-type"
values = ["ebs"]
}
owners = ["137112412989"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment