From 965ff653dbc96eeddc3c25c777810b94a35665a0 Mon Sep 17 00:00:00 2001 From: Justin Wind Date: Thu, 5 Oct 2017 10:27:41 -0700 Subject: [PATCH] ignore amazon-linux ami release-candidate versions --- infrastructure/modules/tf_aws_asg_stack/main.tf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infrastructure/modules/tf_aws_asg_stack/main.tf b/infrastructure/modules/tf_aws_asg_stack/main.tf index 6a50ea3..1b294b7 100644 --- a/infrastructure/modules/tf_aws_asg_stack/main.tf +++ b/infrastructure/modules/tf_aws_asg_stack/main.tf @@ -41,6 +41,8 @@ data "aws_ami" "amazon_linux" { name = "root-device-type" values = ["ebs"] } + # hack filter to ignore .rc- release candidate amis + name_regex = "amzn-ami-hvm-[^r]*-gp2" } data "aws_region" "current" { -- 2.43.2