Skip to content

Latest commit

 

History

History
 
 

302-Using-S3-Intelligent-Tiering

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Using S3 Intelligent Tiering

Preparation

Set a unique suffix to use for the S3 bucket name:

RANDOM_STRING=$(aws secretsmanager get-random-password \
--exclude-punctuation --exclude-uppercase \
--password-length 6 --require-each-included-type \
--output text \
--query RandomPassword)

Create S3 bucket:

aws s3api create-bucket --bucket awscookbook302-$RANDOM_STRING

Clean up

Delete the file you copied to your S3 bucket:

aws s3 rm s3://awscookbook302-$RANDOM_STRING/book_cover.png

Delete the S3 bucket:

aws s3api delete-bucket --bucket awscookbook302-$RANDOM_STRING

Unset the environment variable that you created manually:

unset RANDOM_STRING