S3 For Your Stuff
Me
- Steve Bradford
- Sr. Systems Engineer at Herff Jones
- I like clouds, especially if they look like bunnies
Scenario
You want to create a website that will show off photos of clouds that look like fluffy bunnies.
You want this cheap, fast, and with no administrative overhead.
Let's hop to it!
Create the S3 Bucket(s)
cloudsthatlooklikebunnies.com
www.cloudsthatlooklikebunnies.com
Enable Web Hosting
AKA : check the box
Set Bucket Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::cloudsthatlooklikebunnies.com/*"
}
]
}
This allows the world to see your fuffy bunny clouds
Upload Your Site
Look at Them Bunnies
http://cloudsthatlooklikebunnies.com.s3-website-us-east-1.amazonaws.com
But How Will Others Find It?
Add CloudFront
Add a Certificate
Point the DNS
Look at Them Fluffers
cloudsthatlooklikebunnies.com
www.cloudsthatlooklikebunnies.com *
Scenario
You've got a site already, and just need to host the assets.
Create the S3 Bucket
Create the CloudFront Distribution
Note the origin format!
Setup DNS
Things Skipped
Logging
Redirects
Lifecycles
Signed URLs
Object Naming
S3 For You Stuff
By steve bradford
S3 For You Stuff
- 1,168