-
-
Save apeckham/ebebbbc52c0dd7281bbc42179576016a to your computer and use it in GitHub Desktop.
Add cost tagging to all S3 buckets
This file contains 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 s3 ls | awk '{ print $3 }'`; do echo $i; aws s3api put-bucket-tagging --bucket $i --tagging "TagSet=[{Key=S3-Bucket-Name,Value=$i}]"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment