Skip to content

Instantly share code, notes, and snippets.

@aerostitch
Last active January 19, 2018 00:12
Show Gist options
  • Select an option

  • Save aerostitch/1ac9d9d608fbe5cfef39b9c8f78d295c to your computer and use it in GitHub Desktop.

Select an option

Save aerostitch/1ac9d9d608fbe5cfef39b9c8f78d295c to your computer and use it in GitHub Desktop.
Checks if the "per-shard" enhanced monitoring is active for all your kinesis streams.
for s in $(aws kinesis list-streams --query 'StreamNames[*]' --output text); do
if [[ $(aws kinesis describe-stream --stream-name $s --query 'StreamDescription.EnhancedMonitoring.ShardLevelMetrics') != "null" ]]; then
echo "Activated for ${s}";
fi ;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment