Planning to host a PHP website with MySQL DB in Amazon Web Services, which AWS components should I choose? The website is just a dynamic website with a custom CMS, though a large amount of data are expected to be uploaded to the CMS.
I'm thinking to use Amazon EC2, with the following settings:
- t2.medium Linux with 1024GB x 2 Magnetic EBS Volume
- Data Transfer In & Out : 200 & 300 GB/Month
But I heard from others that I can use Amazon S3 to host websites, with the following settings:
- Storage: 3000GB
- PUT/COPY/POST/LIST Requests: 20000
- GET and other Requests: 10000
- Data Transfer In & Out : 200 & 300 GB/Month
- CloudFront Monthly Volume: 1000 GB/month (avg. Object size 30KB)
What are the differences? Which should I choose?
Ref: Hosting a Static Website on Amazon S3
You may also learn how to host dynamic sites at aws.amazon.com/websites.
S3 works best for backups, imo. So, go with EBS. To learn different EBS options, please checkout aws.amazon.com/ebs/details/#piops