I'm currently building a WordPress site in AWS and have a couple of questions. First, I'm curious about the cost-effectiveness of different hosting options. Can anyone share their thoughts on that? Second, if I do need to move my files and database, what's the best way to go about it? Any other suggestions would be greatly appreciated!
4 Answers
It's been a while since I worked on WordPress, but generally:
1. AWS can do some awesome stuff with WordPress, but it’s usually more cost-effective to go with dedicated WordPress hosts unless you need specialized plugins.
2. Moving files can be tricky, but restoring databases using snapshots is simple enough.
Using AWS raises a question – why not choose a fixed-price VPS instead? It avoids unexpected bills, which can be a pain!
Here are some tips to keep in mind:
1. Avoid launching your EC2 in a public network; use a Load Balancer in a public network while keeping your EC2 private.
2. Utilize Auto Scaling Groups for your EC2 instances, so your site can adapt to traffic levels. Starting with a single instance is fine for low traffic, but it can lead to scaling problems.
3. Make sure your Load Balancer has a WAF to protect against attacks, and set your CloudFront distribution accordingly.
4. It's better to use an RDS instance for your database rather than on EC2 for both performance and efficiency.
5. Store images and videos in an S3 bucket and configure them behind a CloudFront distribution to improve load times and reduce costs.
These are moments I learned from when I started; I hope they help you get going!
The cost really hinges on the amount of traffic your site will handle. Each EC2 instance has specific types based on vCPU and RAM. Can you clarify what you mean by moving files and databases?

These are solid recommendations, especially if you're expecting high traffic and can manage costs.