Skip to content

Instantly share code, notes, and snippets.

@roustem
Created January 24, 2018 19:05
Show Gist options
  • Save roustem/6925161e59b9df2de6d93a29a4e18104 to your computer and use it in GitHub Desktop.
Save roustem/6925161e59b9df2de6d93a29a4e18104 to your computer and use it in GitHub Desktop.
data "aws_ami" "bastion_ami" {
most_recent = true
filter {
name = "architecture"
values = ["x86_64"]
}
filter {
name = "name"
values = ["bastion-*"]
}
filter {
name = "virtualization-type"
values = ["hvm"]
}
name_regex = "bastion-.*"
owners = [92135000000]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment