You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
as CloudWatch supports labeling an instance in the widget (e.g. 'Production' rather than the instance ID) I thought it would be awesome to be able to add a label to the dimensions list of the module as well.
The JSON with an instance/metric label looks as follows:
But applying the template to a dashboard resource I get the following error:
Error: Error running plan: 1 error occurred:
* aws_cloudwatch_dashboard.dashboard: "dashboard_body" contains an invalid JSON: invalid character '/' looking for beginning of value
Do you think there's another way of achieving this?
Maybe by passing a listofmaps as a seperate variable to the module and combine the dimensions with a map somehow?
The text was updated successfully, but these errors were encountered:
Hi,
as CloudWatch supports labeling an instance in the widget (e.g. 'Production' rather than the instance ID) I thought it would be awesome to be able to add a label to the dimensions list of the module as well.
The JSON with an instance/metric label looks as follows:
I thought about adding the label object as follows:
This would generate the template correctly in the output:
But applying the template to a dashboard resource I get the following error:
Do you think there's another way of achieving this?
Maybe by passing a
listofmaps
as a seperate variable to the module and combine the dimensions with a map somehow?The text was updated successfully, but these errors were encountered: