cloudwatch: Alarm on MathExpression that has a cross-account metric skips accountId #16331
Labels
@aws-cdk/aws-cloudwatch
Related to Amazon CloudWatch
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
in-progress
This issue is being actively worked on.
p1
With the newly-added cross-account alarm support, I can now create an alarm on a simple cross-account metric. However, if I create a MathExpression with the same cross-account metric and then create an alarm on the MathExpression, the metric used in the resulting alarm is not cross-account.
Reproduction Steps
aws-cdk@1.121.0
monocdk@1.120.0
in yourpackage.json
What did you expect to happen?
I expected the generated CloudFormation template to contain the
accountId
in my cross-region metric.What actually happened?
The generated CloudFormation template does not contain the
accountId
in the metric. Here's the relevant alarm resource:Environment
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: