Skip to content

Instantly share code, notes, and snippets.

@kristi
Last active March 12, 2019 23:13
Show Gist options
  • Select an option

  • Save kristi/2957c0d24b3f3e046757cb72dbb09dff to your computer and use it in GitHub Desktop.

Select an option

Save kristi/2957c0d24b3f3e046757cb72dbb09dff to your computer and use it in GitHub Desktop.

Revisions

  1. kristi revised this gist Mar 12, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion latest-amazon-linux-2.tf
    Original file line number Diff line number Diff line change
    @@ -11,5 +11,6 @@ data "aws_ami" "latest_amazon_linux_2" {
    filter {
    name = "architecture"
    values = [ "x86_64" ]
    }owners = ["amazon"]
    }
    owners = ["amazon"]
    }
  2. kristi created this gist Mar 12, 2019.
    15 changes: 15 additions & 0 deletions latest-amazon-linux-2.tf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    data "aws_ami" "latest_amazon_linux_2" {
    most_recent = true
    filter {
    name = "name"
    values = ["*amzn2-ami-hvm*"]
    }
    filter {
    name = "virtualization-type"
    values = ["hvm"]
    }
    filter {
    name = "architecture"
    values = [ "x86_64" ]
    }owners = ["amazon"]
    }