Hands-On: Run an Application Through the AWS CLI

Let’s recap what we did in the last chapter when creating a WordPress EC2 instance through the AWS console.

  1. Find a suitable WordPress AMI on the AWS Marketplace.
  2. Launch an EC2 instance with this AMI.
  3. Connect to it through its public IP or public DNS.

Now, we will recreate these steps through the AWS CLI instead of using the AWS Console.

Decode the AWS CLI command to create an EC2 instance

Let’s take a look at the command to run an EC2 instance from the CLI:

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy