AWS S3 skillsets
Create a bucket
config
-
Bucket name:
- Be unique within a partition (aws, aws-cn, aws-us-gov)
- 3 ~ 63 characters long
- only lowercases, number, dot, hyphens. But avoid using dots.
- Cannot change its name after creating a bucket.
-
Bucket region:
- Consider latency, costs, and address regulatory requirements.
-
Object Ownership:
- ACL(Access control list) disabled. Bucket owner enforced. Only bucket owner access the objects in the bucket.
- ACL enabled: Bucket owner preferred. Object writer
-
Public Access settings
BlockPublicAcls
IgnorePublicAcls
BlockPublicPolicy
RestrictPublicBuckets
-
Bucket versioning: means of keeping multiple variants of an object in the same bucket.
-
Tags: cost allocation tags
-
Default encryption
Upload an object to a bucket
Using AWS Console
Go to Amazon S3 > Buckets > [Bucket name] > Upload
Using AWS Cli
aws s3 cp file s3://bucketpath
Download an object
Using AWS Console
Using AWS Cli
aws s3 cp s3://tinyyard-test/a.txt abcd.txt
Deleting an object
Using AWS Console
Using AWS Cli
aws s3 rm s3://bucket-name/filename
aws s3 rm s3://tinyyard-test/a.txt