Skip to content

Commit

Permalink
Add resource tags to Spire CD resources
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Apr 16, 2024
1 parent 10b737b commit 4bf7c3e
Showing 1 changed file with 96 additions and 0 deletions.
96 changes: 96 additions & 0 deletions spire/cd/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,12 @@ Resources:
Properties:
LogGroupName: !Sub /aws/lambda/${ParameterStoreListenerFunction}
RetentionInDays: 14
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:ops:environment, Value: Production }
- { Key: prx:dev:application, Value: CD }
ParameterStoreListenerErrorAlarm:
Type: AWS::CloudWatch::Alarm
Properties:
Expand All @@ -311,6 +317,12 @@ Resources:
Namespace: AWS/Lambda
Period: 60
Statistic: Sum
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:ops:environment, Value: Production }
- { Key: prx:dev:application, Value: CD }
Threshold: 1
TreatMissingData: notBreaching

Expand Down Expand Up @@ -358,6 +370,12 @@ Resources:
Properties:
LogGroupName: !Sub /aws/lambda/${PipelineEventsListenerFunction}
RetentionInDays: 14
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:ops:environment, Value: Production }
- { Key: prx:dev:application, Value: CD }
PipelineEventsListenerErrorAlarm:
Type: AWS::CloudWatch::Alarm
Properties:
Expand All @@ -375,6 +393,12 @@ Resources:
Namespace: AWS/Lambda
Period: 60
Statistic: Sum
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:ops:environment, Value: Production }
- { Key: prx:dev:application, Value: CD }
Threshold: 1
TreatMissingData: notBreaching

Expand Down Expand Up @@ -965,6 +989,12 @@ Resources:
Properties:
LogGroupName: !Sub /aws/lambda/${StagingDeltasFunction}
RetentionInDays: 14
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:ops:environment, Value: Production }
- { Key: prx:dev:application, Value: CD }
StagingDeltasErrorAlarm:
Type: AWS::CloudWatch::Alarm
Properties:
Expand All @@ -983,6 +1013,12 @@ Resources:
Namespace: AWS/Lambda
Period: 60
Statistic: Sum
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:ops:environment, Value: Production }
- { Key: prx:dev:application, Value: CD }
Threshold: 1
TreatMissingData: notBreaching

Expand Down Expand Up @@ -1039,6 +1075,12 @@ Resources:
Properties:
LogGroupName: !Sub /aws/lambda/${ProductionApprovalsFunction}
RetentionInDays: 14
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:ops:environment, Value: Production }
- { Key: prx:dev:application, Value: CD }
ProductionApprovalsErrorAlarm:
Type: AWS::CloudWatch::Alarm
Properties:
Expand All @@ -1055,6 +1097,12 @@ Resources:
Namespace: AWS/Lambda
Period: 60
Statistic: Sum
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:ops:environment, Value: Production }
- { Key: prx:dev:application, Value: CD }
Threshold: 1
TreatMissingData: notBreaching

Expand Down Expand Up @@ -1097,6 +1145,12 @@ Resources:
Properties:
LogGroupName: !Sub /aws/lambda/${TemplateCopyFunction}
RetentionInDays: 14
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:ops:environment, Value: Production }
- { Key: prx:dev:application, Value: CD }
TemplateCopyErrorAlarm:
Type: AWS::CloudWatch::Alarm
Properties:
Expand All @@ -1114,6 +1168,12 @@ Resources:
Namespace: AWS/Lambda
Period: 60
Statistic: Sum
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:ops:environment, Value: Production }
- { Key: prx:dev:application, Value: CD }
Threshold: 1
TreatMissingData: notBreaching

Expand Down Expand Up @@ -1155,6 +1215,12 @@ Resources:
Properties:
LogGroupName: !Sub /aws/lambda/${CreateNestedChangeSetFunction}
RetentionInDays: 14
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:ops:environment, Value: Production }
- { Key: prx:dev:application, Value: CD }
CreateNestedChangeSetErrorAlarm:
Type: AWS::CloudWatch::Alarm
Properties:
Expand All @@ -1171,6 +1237,12 @@ Resources:
Namespace: AWS/Lambda
Period: 60
Statistic: Sum
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:ops:environment, Value: Production }
- { Key: prx:dev:application, Value: CD }
Threshold: 1
TreatMissingData: notBreaching

Expand Down Expand Up @@ -1209,6 +1281,12 @@ Resources:
Properties:
LogGroupName: !Sub /aws/lambda/${ProductionParameterPromotionFunction}
RetentionInDays: 14
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:ops:environment, Value: Production }
- { Key: prx:dev:application, Value: CD }
ProductionParameterPromotionErrorAlarm:
Type: AWS::CloudWatch::Alarm
Properties:
Expand All @@ -1225,6 +1303,12 @@ Resources:
Namespace: AWS/Lambda
Period: 60
Statistic: Sum
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:ops:environment, Value: Production }
- { Key: prx:dev:application, Value: CD }
Threshold: 1
TreatMissingData: notBreaching

Expand Down Expand Up @@ -1258,6 +1342,12 @@ Resources:
Properties:
LogGroupName: !Sub /aws/lambda/${ParameterCaptureFunction}
RetentionInDays: 14
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:ops:environment, Value: Production }
- { Key: prx:dev:application, Value: CD }
ParameterCaptureErrorAlarm:
Type: AWS::CloudWatch::Alarm
Properties:
Expand All @@ -1275,6 +1365,12 @@ Resources:
Namespace: AWS/Lambda
Period: 60
Statistic: Sum
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:ops:environment, Value: Production }
- { Key: prx:dev:application, Value: CD }
Threshold: 1
TreatMissingData: notBreaching

Expand Down

0 comments on commit 4bf7c3e

Please sign in to comment.