Created
February 19, 2019 13:22
-
-
Save trennepohl/3e9f06b29113f303917678d506d63588 to your computer and use it in GitHub Desktop.
Add tags to volumes using aws cli
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
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