Skip to content

Instantly share code, notes, and snippets.

@JamesJJ
Created November 8, 2018 03:05
Show Gist options
  • Save JamesJJ/537e167111e1c38b5834630ca85b40e7 to your computer and use it in GitHub Desktop.
Save JamesJJ/537e167111e1c38b5834630ca85b40e7 to your computer and use it in GitHub Desktop.
aws s3 ls \
| awk ' { print "aws s3api put-bucket-tagging --bucket " $3 " --tagging \"TagSet=[{Key=component,Value=" $3 "},{Key=service,Value=s3}]\"" }' \
| bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment