# Simple Storage Service (S3)

# Create an S3 Bucket

# Log into your AWS account and navigate to S3.

s3Find

# Click Create Bucket to start creating a new bucket.

s3CreateBucket

# Name the S3 bucket.

This name must be unique across all AWS S3 Buckets. s3NameBucket

# Configure the S3 bucket.

The default settings should be adequate unless the additional features are required. s3ConfigureBucket

# Set permissions on the S3 bucket.

Typically we are using S3 for our assets storage so public access is needed to serve the images/videos.

WARNING

If the data being stored on S3 should not be publicly accessible then you will need to be more careful with your bucket permissions.

s3PermissionsBucket

# Review the S3 bucket's settings and finish creating it.

TIP

You may need to edit the bucket after this to configure ACL or CORs.

s3ReviewBucket

# S3 ACL

# Public list-objects ACL

# Find your bucket and being editing.

s3EditBucket

# Go to the Permissions tab and then to the Access Control List tab.

s3EditAcl

# Select Everyone, check the List objects box, and save your changes.

s3EditListObjects

# S3 CORS Configuration

# Simple CORS Configuration

# Find your bucket and being editing.

s3EditBucket

# Go to the Permissions tab and then to the CORS configuration tab.

WARNING

This is just the basic CORS sample AWS provides. You may require additional tweaks.

s3EditCors

<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
    <AllowedOrigin>*</AllowedOrigin>
    <AllowedMethod>GET</AllowedMethod>
    <MaxAgeSeconds>3000</MaxAgeSeconds>
    <AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>