Search⌘ K

Creating a Second WordPress Instance

Explore how to create a second WordPress instance using an existing AWS launch template via the CLI. Understand managing instance states, retrieving public IPs, and verifying your WordPress sites are live, which helps improve scalability and availability of your application.

We'll cover the following...

To create a second WordPress instance, we can reuse our launch template with the updated parameters. We stored it under the name custom-wordpress-vpc.

Run the following command in the terminal below:

Shell
aws ec2 run-instances \
--launch-template 'LaunchTemplateName=custom-wordpress-vpc' \
--query 'Instances[*].{InstanceId:InstanceId,PublicIpAddress:PublicIpAddress}' \
--output text

This command should be familiar because we have used it before. Just as a refresher, these are the required parameters:

...