From e07057782c76f61680a79f653c049afe5f89c144 Mon Sep 17 00:00:00 2001 From: keatmin Date: Wed, 26 Jul 2023 16:34:58 +1000 Subject: [PATCH] Add UseCostAllocationTags to EBS volume --- templates/aws-stack.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/templates/aws-stack.yml b/templates/aws-stack.yml index b8a46c96b..b2ce5a8c6 100644 --- a/templates/aws-stack.yml +++ b/templates/aws-stack.yml @@ -1131,6 +1131,14 @@ Resources: - Key: !Ref CostAllocationTagName Value: !Ref CostAllocationTagValue - !Ref "AWS::NoValue" + - !If + - UseCostAllocationTags + - ResourceType: volume + Tags: + - Key: !Ref CostAllocationTagName + Value: !Ref CostAllocationTagValue + - !Ref "AWS::NoValue" + UserData: Fn::Base64: !If - UseWindowsAgents