Skip to content

Instantly share code, notes, and snippets.

@jessehub
Last active June 18, 2019 17:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jessehub/e7bc3d306a95ff7e5c42fe1ca65e48cc to your computer and use it in GitHub Desktop.
Save jessehub/e7bc3d306a95ff7e5c42fe1ca65e48cc to your computer and use it in GitHub Desktop.
tf - ubuntu-18 ami
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]}"
}
@v6
Copy link

v6 commented Jun 18, 2019

This Gist is for Terraform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment