3 Answers
- Newest
- Most votes
- Most comments
2
To access the source JSON for an existing custom dashboard in the AWS Management Console:
- Sign in to the AWS Management Console and navigate to the CloudWatch service.
- In the navigation pane, click on "Dashboards" on the left pane.
- Find the dashboard you want to edit and click on its name to open it.
- Click the "Actions" dropdown menu in the top right corner of the dashboard and select "View/edit source".
- This will open a new tab with the source JSON for the dashboard. You can then copy and paste this JSON into a Terraform configuration file to create a custom dashboard resource.
As for the x/y coordinate system used in the dashboard JSON, the units are pixels. The x-coordinate represents the distance from the left edge of the dashboard, and the y-coordinate represents the distance from the top edge of the dashboard.
answered 4 years ago
1
There is an API for CloudWatch. A GetDashboard API call can get the info for you in a JSON format. https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetDashboard.html
answered 4 years ago
0
Thank you ananthtm and tedtrent. Your answers solved my quandary.
answered 4 years ago
Relevant content
asked 3 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 3 months ago
