ignore amazon-linux ami release-candidate versions
authorJustin Wind <j.wind@partner.samsung.com>
Thu, 5 Oct 2017 17:27:41 +0000 (10:27 -0700)
committerJustin Wind <j.wind@partner.samsung.com>
Thu, 5 Oct 2017 17:27:41 +0000 (10:27 -0700)
infrastructure/modules/tf_aws_asg_stack/main.tf

index 6a50ea3444eca43e7734d45a8c79808568bc1ca4..1b294b7c208a3d657d1668e66cf35cdc6027d6e4 100644 (file)
@@ -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" {