Host WordPress in your AWS Account. Create a VPC with AWS CloudFormation and install WordPress with Ansible.
- Description
- Directions for 'us-east-1'
- Architecture
- Troubleshooting
- AMI IDs for other regions
Creates a VPC to to host a Wordpress website. Launches t2.small instances. Installs the latest version of Wordpress with an Ansible playbook. Assigns an Elastic IP to the Wordpress EC2 instance.
In the region 'us-east-1':
- Create a VPC with the CloudFormation template
wordpress-vpc-cloudformation.json
- ssh to the Ansible Host
ssh -i your_key.pem ec2-user@...
- Copy your .pem file to the Ansible host
~/.ssh/your_key.pem
- Change your .pem file copy to be read only:
chmod 400 ~/.ssh/your_key.pem
cd ansible-ec2-wordpress
- Run the playbook:
ansible-playbook --private-key="~/.ssh/your_key.pem" site.yml
- Done! Visit the WordPress host in your web browser
- Verify Ansible installed
/var/log/cloud-init-output.log
- ssh to the wordpress host with
ssh -i your_key.pem ubuntu@...
- Verify your IAM permissions to create VPC and EC2 resources
- Ubuntu 14.04 AMI IDs here: https://cloud-images.ubuntu.com/locator/ec2/
- Amazon AMI IDs here: https://aws.amazon.com/amazon-linux-ami/