From 71bc2f3e5e341f23c07d397e490a2ec88d35476f Mon Sep 17 00:00:00 2001 From: Justin Wind Date: Thu, 14 Sep 2017 14:37:52 -0700 Subject: [PATCH] ignore amazon-linux ami release-candidate versions --- infrastructure/modules/management-stack/management.tf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infrastructure/modules/management-stack/management.tf b/infrastructure/modules/management-stack/management.tf index 6efa19c..3f1dc76 100644 --- a/infrastructure/modules/management-stack/management.tf +++ b/infrastructure/modules/management-stack/management.tf @@ -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" { -- 2.45.2