Skip to content

Instantly share code, notes, and snippets.

@toricls
Last active August 31, 2019 07:38
Show Gist options
  • Save toricls/c4eb23ba2dd6b8f63269e1b6da77f9ba to your computer and use it in GitHub Desktop.
Save toricls/c4eb23ba2dd6b8f63269e1b6da77f9ba to your computer and use it in GitHub Desktop.
Enable CloudWatch Container Insights for ALL existing ECS clusters in a region
#!/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