aws-cloudformation / aws-cloudformation/cloudformation-coverage-roadmap
[AWS::CloudWatch::Alarm] - [Enhancement] - Dynamically calculate timeout value for the alarm’s Threshold property.
- Dominant language
- No language data
- Stars
- 1.1k
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
### Name of the resource
AWS::CloudWatch::Alarm
### Resource name
_No response_
### Description
Looking for a native way using CFN to be able to dynamically calculate timeout value for the alarm’s Threshold property.
Use case:
When using AWS::Lambda::Function resources, the timeout value is defined using the following:
Timeout: !Ref Timeout
A duration alarm using the AWS::CloudWatch::Alarm resource is created for the Lambda resources and for the alarm's Threshold property, currently 90% of the timeout value is calculated manually and passed like this:
Threshold: !Ref ThresholdTimeOut
However, since the timeout value may vary, want to avoid manual calculations of the 90% threshold. Instead, would like a CloudFormation solution that dynamically calculates 90% of the timeout value for the alarm's Threshold property.
Additionally it is understood that a Custom Resource can be used to calculate the 90% of the Timeout value and pass it to AWS::CloudWatch::Alarm, however, looking to avoid using a custom resource because introducing another Lambda function along with its associated maintenance overhead is not ideal for our use case.
### Other Details
_No response_
Contributor guide
Research direction
Start by reviewing the AWS::CloudWatch::Alarm and AWS::Lambda::Function resource properties named in the issue, especially Threshold and Timeout. Determine whether CloudFormation currently supports the requested dynamic calculation without a custom resource, and define the expected behavior for a 90% threshold before proposing the enhancement.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws
- Domain
- cloud, observability-sre
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100