Step 1: Sign Up for an AWS Free Tier Account
AWS Free Tier gives you a 12 months free, hands-on experience with most of the services offered by AWS platform. It’s the best way to get started with AWS. Sign up for an account here. It includes 750 hours/month of Linux and Windows t2.micro instances for one year. Do note that if you want to stay within the Free Tier, you should only use EC2 Micro instances.
Step 2: Go To Your AWS Management Console
Step 3: Launch an Amazon EC2 Instance
In your AWS Management Console, find EC2 under Compute, and double-click on it to open the EC2 dashboard. Here, click Launch Instance to create and configure your EC2 instance.
Step 3: Install WordPress on your EC2 Instance
The AWS Marketplace has a lot of Amazon Machine Images (AMI) that you can use to quickly setup a good deal of common software. The AMIs are usually pre-configured with the ideal settings for running on AWS. We’ll be using one such AMI to install WordPress.
Click on AWS Marketplace on the left menu, search for WordPress, look for WordPress powered by BitNami, then hit the blue Select button.
Now search wordpress
Step 4: Confirm the Pricing for Your Instance
You’ll be presented a detailed pricing page. Don’t be upset. Here, the price will be $0.00 for the software, regardless of the size of the instance that you use. Scroll to the bottom and select Continue.
On the following screens, click Next: Add Storage and then Next: Tag Instance.
Step 5: Set the Key and Value Pair
Set a name for your instance. Enter Name in the Key box and WordPress in the Value box. Click Review and Launch to continue
Click Launch Instances to launch your instance. It may take a few minutes to start the instance.
Step 8: Your WordPress Instance is Running?
Click View Instances on the bottom right (you may need to scroll down). Then select the WordPress instance, make sure the Instance State says running. If Instance State says launching then AWS is still preparing your WordPress instance.
Step 9: Test Your Site
Once your instance is running, you can now test your WordPress website. Find the Public IP for your instance at the bottom of this page.
And there you go! You’ve successfully installed a new installation of WordPress on your AWS EC2 instance.
Step 10: Configuring Your WordPress Website
Now that you have your WordPress site up and running, it’s time to log into its admin page, so you can customize its settings. But to do that, you must find your admin password first. Here’s how you do that:
Go back to your EC2 dashboard and select your WordPress instance. Then, click the Actions button. In the drop down menu, select Instance Setting > Get System Log.
Connect Your Domain Name to Your AWS Instance
Create Hosted Zone and Record Sets
- Go to Amazon AWS -> services and select Route 53
- Click on Hosted Zones and create a hosted zone.
- Give the domain name you have bought, make sure that you don’t add www. to it.
- Any comment if you like
- Select type as Public Hosted Zone
You should see something like below on your screen, Name Space servers, usually there are 4 different entries. Make note of these as you need them in the last step.
Now Create a recordset and add values as shown in image below
- Keep name field empty
- Type as A
- Alias as No
Value – This should be the value of your elastic IP
Now we need to bring subdomain too, so www.yourdomain.com should also work
- In name field type WWW.
- Type as A
- Alias as Yes
- Alias Target from drop-down select your site name
- Routeing Policy: Simple
How to get Elastic IP: