S3
Simple Storage Service
S3 stores objects in the region selected by the user.
An S3 object consists of file and metadata. The max file size of an S3 object is 5TB. The max upload file size is 5GB. To upload more you need to use the multipart upload tool.
Naming
A bucket name needs to be unique throughout all of S3. Objects are identified via their key (path + filename).
Access
By default only the creator can access an S3 bucket. This can be changed with IAM policies.
Creating a bucket
Switch to S3 service
Create bucket
Choose privacy
Create bucket
Giving permissions to access bucket
Click on bucket
select permissions
Bucket policy -> Edit -> Policy Generator
S3 Bucket Policy
Principle * (everyone)
Action: GetObject
ARN: arn:aws:s3:::<bucket-name>/* (the ending * makes this apply for all objects in the bucket)
Add statement
Generate policy
Copy policy over to permissions tab in bucket settings -> Save
Upload file to bucket using CLI
Navigate to folder
aws s3 cp <localFolder> s3://<bucket>/<remoteFolder> --recursive --exclude "<pattern>"
CORS with S3
load bucket service and click on desired bucket
permissions -> scroll down to CORS -> Edit
add CORS configuration, e.g. Allow All
Last updated