Skip to content

Commit ac12e8d

Browse files
author
Lachlan Donald
authored
Merge pull request #602 from hawkowl/costs
Add correct cost tags to S3
2 parents b07fea7 + 3152c52 commit ac12e8d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

templates/aws-stack.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,12 @@ Resources:
634634
DeletionPolicy: Retain
635635
Properties:
636636
AccessControl: LogDeliveryWrite
637+
Tags:
638+
- !If
639+
- UseCostAllocationTags
640+
- Key: !Ref CostAllocationTagName
641+
Value: !Ref CostAllocationTagValue
642+
- !Ref "AWS::NoValue"
637643

638644
ManagedSecretsBucket:
639645
Type: AWS::S3::Bucket
@@ -644,6 +650,12 @@ Resources:
644650
DestinationBucketName: !Ref ManagedSecretsLoggingBucket
645651
VersioningConfiguration:
646652
Status: Enabled
653+
Tags:
654+
- !If
655+
- UseCostAllocationTags
656+
- Key: !Ref CostAllocationTagName
657+
Value: !Ref CostAllocationTagValue
658+
- !Ref "AWS::NoValue"
647659

648660
ManagedSecretsBucketPolicy:
649661
Type: AWS::IAM::Policy

0 commit comments

Comments
 (0)