Skip to content

Commit

Permalink
Add resource tags to DevOps alarms
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Apr 16, 2024
1 parent 4bf7c3e commit a2dc583
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
6 changes: 6 additions & 0 deletions devops/tooling/cfn-custom-resources/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,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: Infrastructure }
Threshold: 0
TreatMissingData: notBreaching
CloudWatchAlarmTaggerFunctionErrorAlarmTags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,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: DevOps }
Threshold: 0
TreatMissingData: notBreaching
Dimensions:
Expand Down
6 changes: 6 additions & 0 deletions devops/tooling/chat-ops/health-events/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,11 @@ 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: DevOps }
Threshold: 1
TreatMissingData: notBreaching
18 changes: 18 additions & 0 deletions devops/tooling/chat-ops/slack-app/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,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: DevOps }
Threshold: 0
TreatMissingData: notBreaching
Dimensions:
Expand Down Expand Up @@ -225,6 +231,12 @@ Resources:
Namespace: AWS/Lambda
Period: 120
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: DevOps }
Threshold: 5
TreatMissingData: notBreaching
Dimensions:
Expand Down Expand Up @@ -255,6 +267,12 @@ Resources:
Namespace: AWS/SNS
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: DevOps }
Threshold: 1
TreatMissingData: notBreaching

Expand Down

0 comments on commit a2dc583

Please sign in to comment.