Prior to starting moving your website that is static on and CloudFront, I would like to move you to conscious that you need to go your domain title servers provider to Amazon Route53.
This is actually the best way to make CloudFront make use of your domain. ??
Then feel free to check the first part of my previous article How to migrate your domain to Route53 if you’re confused about how to connect your domain DNS with Route 53.
During the end of the tutorial, we’ll be utilizing the after 4 services supplied by AWS:
- Path 53 (for the domain DNS)
- S3 (for the files that are static
- CloudFront (CDN — will serve our files that are static various places)
- Certificate Manager (SSL certification — your website will have https for FREE??)
Okay, now let’s get our hands dirty.
Action 1 — Create S3 buckets
We very first need to log in to the AWS administration system to see the S3 solution.
When discovered, we must produce two S3 buckets with our website name.
In my own case, I’ll be using the following bucket names:
Bucket 1 — www.workwithtibi.com
Bucket 2 — workwithtibi.com
You need to be sure that both bucket names are a similar as the website name.
Don’t be concerned about any designs choices or permissions as of this minute. Simply opt for the default choices while producing both buckets.
You need to now manage to see both your buckets that are s3.
Step 2 — Upload files to S3 Bucket
We currently have to upload most of the fixed files & assets and select our primary bucket for the web site, the non-www variation or the www version.
In this guide, I’ll choose the www variation, thus Bucket 1 is the bucket that is main our web web site.
Which means that after we accomplish most of the actions, any user accessing workwithtibi.com will be immediately rerouted to www.workwithtibi.com