aws-cloudwatch: Make Alarm object aware of metric region #33568
Labels
@aws-cdk/aws-cloudwatch
Related to Amazon CloudWatch
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
Alarm objects should be created in the same region as the metric they are set on.
Currently they use the parent stack's region, which might be different than that of the metric.
Deployments attempt to create an alarm in the stack's region, which if different from that of the metric will result in an error.
Use Case
This feature would allow the creation of stacks responsible for creating metrics and alarms across different regions. Currently our workaround is to create stacks for each region, which makes our IaC unnecessarily complex and redundant.
Proposed Solution
No response
Other Information
No response
Acknowledgements
CDK version used
2.1000.2 (build bc82193)
Environment details (OS name and version, etc.)
Debian GNU/Linux 12
The text was updated successfully, but these errors were encountered: