Last active
June 18, 2019 17:37
-
-
Save jessehub/e7bc3d306a95ff7e5c42fe1ca65e48cc to your computer and use it in GitHub Desktop.
tf - ubuntu-18 ami
This file contains hidden or 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
provider "aws"{ | |
region = "us-east-1" | |
} | |
data "aws_ami_ids" "ubuntu18-hvm" { | |
owners = ["099720109477"] | |
filter { | |
name = "name" | |
values = ["ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-*"] | |
} | |
} | |
output "ubuntu18-hvm" { | |
value = "${data.aws_ami_ids.ubuntu18-hvm.ids[0]}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This Gist is for Terraform.