Last active
August 31, 2019 07:38
-
-
Save toricls/c4eb23ba2dd6b8f63269e1b6da77f9ba to your computer and use it in GitHub Desktop.
Enable CloudWatch Container Insights for ALL existing ECS clusters in a region
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -eu | |
aws ecs list-clusters \ | |
| jq -r '.clusterArns[]' \ | |
| xargs -I '{}' aws ecs update-cluster-settings --cluster '{}' --settings name=containerInsights,value=enabled |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment