Create an S3 bucket, upload and download objects using the AWS CLI, generate a presigned URL for temporary access, and clean up ā all from the terminal.
Before creating a bucket, learn the constraints that apply to all S3 bucket names. These rules are enforced globally across every AWS account.
# Preview the bucket name you will use in this lesson:echo "devopspath-$(aws sts get-caller-identity --query Account --output text)-practice"S3 bucket names must be globally unique across all AWS accounts and regions.
The rules: 3ā63 characters, lowercase letters, numbers, and hyphens only (no underscores or uppercase), must start and end with a letter or number, and cannot be formatted as an IP address.
Embedding your 12-digit Account ID in the name guarantees uniqueness without a random suffix.
The echo command prints a name like: devopspath-123456789012-practice The Account ID will be your 12-digit number.
This is the bucket name you will use in subsequent steps.