Skip to content

Instantly share code, notes, and snippets.

@arehmandev
Created May 11, 2017 11:47
Show Gist options
  • Save arehmandev/e8f86f76ad8b20a838b03a64ba6c1a6b to your computer and use it in GitHub Desktop.
Save arehmandev/e8f86f76ad8b20a838b03a64ba6c1a6b to your computer and use it in GitHub Desktop.
data "aws_ami" "coreos_etcd" {
most_recent = true
owners = ["${var.ownerid}"]
filter {
name = "architecture"
values = ["x86_64"]
}
filter {
name = "root-device-type"
values = ["ebs"]
}
filter {
name = "virtualization-type"
values = ["${var.virtualization_type}"]
}
filter {
name = "name"
values = ["${var.ami_name}-${var.channel}-*"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment