Skip to content

Instantly share code, notes, and snippets.

@trennepohl
Created February 19, 2019 13:22
Show Gist options
  • Save trennepohl/3e9f06b29113f303917678d506d63588 to your computer and use it in GitHub Desktop.
Save trennepohl/3e9f06b29113f303917678d506d63588 to your computer and use it in GitHub Desktop.
Add tags to volumes using aws cli
for i in $(aws ec2 describe-volumes | jq .Volumes[].Attachments[].VolumeId | tr -d "\"");do aws ec2 create-tags --resources $i --tags Key=,Value=; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment