Skip to content

Commit 5ceefeb

Browse files
committed
add correct cost tags to S3 and disable monitoring
1 parent 46d94b6 commit 5ceefeb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

templates/aws-stack.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,12 @@ Resources:
631631
DeletionPolicy: Retain
632632
Properties:
633633
AccessControl: LogDeliveryWrite
634+
Tags:
635+
- !If
636+
- UseCostAllocationTags
637+
- Key: !Ref CostAllocationTagName
638+
Value: !Ref CostAllocationTagValue
639+
- !Ref "AWS::NoValue"
634640

635641
ManagedSecretsBucket:
636642
Type: AWS::S3::Bucket
@@ -641,6 +647,12 @@ Resources:
641647
DestinationBucketName: !Ref ManagedSecretsLoggingBucket
642648
VersioningConfiguration:
643649
Status: Enabled
650+
Tags:
651+
- !If
652+
- UseCostAllocationTags
653+
- Key: !Ref CostAllocationTagName
654+
Value: !Ref CostAllocationTagValue
655+
- !Ref "AWS::NoValue"
644656

645657
ManagedSecretsBucketPolicy:
646658
Type: AWS::IAM::Policy
@@ -719,6 +731,8 @@ Resources:
719731
BlockDeviceMappings:
720732
- DeviceName: !If [ UseDefaultRootVolumeName, !If [ UseWindowsAgents, /dev/sda1, /dev/xvda ], !Ref RootVolumeName ]
721733
Ebs: { VolumeSize: !Ref RootVolumeSize, VolumeType: !Ref RootVolumeType }
734+
Monitoring:
735+
Enabled: "false"
722736
TagSpecifications:
723737
- ResourceType: instance
724738
Tags:

0 commit comments

Comments
 (0)