ignore amazon-linux ami release-candidate versions
authorJustin Wind <j.wind@partner.samsung.com>
Thu, 14 Sep 2017 21:37:52 +0000 (14:37 -0700)
committerJustin Wind <j.wind@partner.samsung.com>
Thu, 14 Sep 2017 21:37:52 +0000 (14:37 -0700)
infrastructure/modules/management-stack/management.tf

index 6efa19c13cf9cfa52a6e308a254d14d2d3281d9d..3f1dc7632f229f603b6cf835676597a7463b375d 100644 (file)
@@ -87,6 +87,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" {