dashboard.sh
Creates or updates the CloudWatch dashboard documented in this repository.
What the Script Does
The script in static/dashboard.sh:
- downloads or reads the dashboard source from this repo
- extracts the JSON dashboard body from
docs/docs/dashboards.md - replaces the default region
us-east-1with your selected region - creates or updates a CloudWatch dashboard with
aws cloudwatch put-dashboard
This is a non-interactive helper for applying the same dashboard without manually copying JSON from the docs page.
Quick Start
curl -fsSLO https://awsutils.github.io/dashboard.sh
chmod +x dashboard.sh
./dashboard.sh --name app-observability --region us-east-1
Prerequisites
bashawsCLI configured for the target accountpython3curl- permission for
cloudwatch:PutDashboardandcloudwatch:GetDashboard
Options
./dashboard.sh --help
Key flags:
--namesets the CloudWatch dashboard name--regionchanges the region placeholders before upload and sets the CLI region--sourcelets you use a local copy such as./docs/docs/dashboards.md--dry-runprepares the final JSON without calling AWS
Examples
Create the default dashboard in us-east-1:
./dashboard.sh
Create the dashboard in another region:
./dashboard.sh --name platform-observability --region us-west-2
Use the local repo file instead of the published site:
./dashboard.sh --source ./docs/docs/dashboards.md --dry-run
Notes
- The current dashboard JSON is sourced from
docs/docs/dashboards.md - The script performs a simple global replacement of
us-east-1in the dashboard body - EKS widgets that use the
[EKS] Namespacevariable still need the correct namespace selected in CloudWatch after import