Describe the bug
CloudWatch Alarm recording is incorrectly defining the dimensions for the metric being captured when the metric has multiple dimensions. The code being generated does have the correct count of dimensions, but all appear to be defined as the same one.
Related Mapping
cloudwatch putMetricAlarm
Related Language
Affects all generated languages
To Reproduce
Steps to reproduce the behavior:
In the AWS console navigate to CloudWatch -> Alarms
Click "Create Alarm"
Choose a Metric that has multiple dimensions, e.g. ApplicationELB: Per AppELB, per AZ, per TG Metrics
Enter the relevant Alarm criteria.. name, description, actions etc.
Save the alarm
Expected behavior
The generated code should have multiple unique dimensions defined, one for each dimension based on the metric chosen for the alarm.
Additional context
It appears that the code isn't iterating the dimensions and simply using the same dimension each time for the qty of dimensions defined.
Describe the bug CloudWatch Alarm recording is incorrectly defining the dimensions for the metric being captured when the metric has multiple dimensions. The code being generated does have the correct count of dimensions, but all appear to be defined as the same one.
Related Mapping cloudwatch putMetricAlarm
Related Language Affects all generated languages
To Reproduce Steps to reproduce the behavior:
Expected behavior The generated code should have multiple unique dimensions defined, one for each dimension based on the metric chosen for the alarm.
Screenshots CloudFormation example:
Additional context It appears that the code isn't iterating the dimensions and simply using the same dimension each time for the qty of dimensions defined.