I just set up the dashboard on Cloudwatch on the aws console.
Of course, you can check this data by logging in to the console, but it was inconvenient that you had to log in to the console one by one if you worked across multiple accounts or gave security (two-step authentication).
When I googled "aws cloudwatch cli", the document became a hit.
get-dashboard—AWS CLI 1.16.230 Command Reference
get-dashboard
--dashboard-name <value>
[--cli-input-json<value>]
[--generate-cli-skeleton <value>]
The output appears to include DashboardBody->(string)
.
It seems to be a JSON format, but please refer to the format details below.
Dashboard Body Structure and Syntax-Amazon CloudWatch
© 2024 OneMinuteCode. All rights reserved.