EC2 instances
Now that we have all the basic services required for our WordPress installation to consume, we can make a start on deploying the compute resource to install WordPress on. This is where things get interesting, as we have to build logic into our playbook so that if our site is up and running, we can deploy updates to the operating system and roll out new images without any downtime.
But if it is a new deployment, we need to launch an instance, attach it to the Elastic Load Balancer, install the software stack, configure WordPress, and create an image we can then use in a launch configuration, which we will need to attach to an autoscaling group.
While this may seem complicated, building this logic into the playbook will make it ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access