Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 897 Bytes

File metadata and controls

39 lines (24 loc) · 897 Bytes

S3 Bucket Tagging

An AWS CLI tutorial that demonstrates S3 operations.

Running

bash s3-bucket-tagging.sh

To auto-run with cleanup:

echo 'y' | bash s3-bucket-tagging.sh

What it does

  1. Creating bucket"; aws s3api create-bucket --bucket "$B
  2. Adding tags"; aws s3api put-bucket-tagging --bucket "$B
  3. Getting tags"; aws s3api get-bucket-tagging --bucket "$B
  4. Deleting tags"; aws s3api delete-bucket-tagging --bucket "$B"; echo " Tags deleted

Resources created

  • Bucket
  • Bucket Tagging

The script prompts you to clean up resources when it finishes.

Cost

Free tier eligible for most operations. Clean up resources after use to avoid charges.

Related docs