Migrating From WordPress Website to Static Site Hosted on S3
Static Sites are becoming incredibly and provide a solid alternative to WordPress sites. In this video, I will talk through how I migrated my WordPress site to AWS S3.
► What is S3?
S3 stands for Simple Storage Service, an online storage service that allows you to store unlimited files in the cloud.
► Why would I use S3 instead of a regular host?
Regular shared hosting providers charge you a fixed amount every month. That’s regardless of the amount of files you store or the amount of visitors you get. Most cheaper webhosting companies also don’t cope well with high traffic websites. Suddenly got featured on Reddit or Hacker News? A regular hosting provider might suspend your account for all the traffic! With S3 you only pay for what you use and it’s highly scalable.
► What does it cost?
To give you an example of cost: when my blog receiver 1000 visitors per month I was paying just 6 cents to host it!
Check out more detailed S3 pricing here:
https://aws.amazon.com/s3/pricing/
Or use the calculator to estimate your AWS bill:
https://calculator.s3.amazonaws.com/index.html
Want a free SSL certificate for your website? Check out my tutorial on Amazon Certificate Manager: https://youtu.be/4xyRxLQuPfo
► Code snippet
This is the bucket policy that I use for static website hosting:
{
“Version”: “2012-10-17”,
“Statement”: [
{
“Sid”: “PublicReadGetObject”,
“Effect”: “Allow”,
“Principal”: {
“AWS”: “*”
},
“Action”: “s3:GetObject”,
“Resource”: “arn:aws:s3:::YOUR-BUCKET-NAME-HERE/*”
}
]
}
#cloudguru
Written by admin