Launch an EC2 Instance

First you create an Amazon EC2 instance in the public subnet of your VPC.

To launch an EC2 instance

  1. Sign in to the AWS Management Console and open the Amazon EC2 console at
  2. Choose EC2 Dashboard, and then choose Launch Instance, as shown following.
  3. Amazon Linux 2 AMI (HVM), as shown following.
  4. Choose the t2.medium instance type, as shown following, and then choose Next: Configure Instance Details.
  5. On the Configure Instance Details page, shown following, set these values and leave the other values as their defaults:


  6. Choose Next: Add Storage.
  7. On the Add Storage page, keep the default values and choose Next: Add Tags.
  8. On the Add Tags page, shown following, choose Add Tag, then enter Name for Key and enter production-web-server for Value.
  9. Choose Next: Configure Security Group.
  10. On the Configure Security Group page, shown following, choose Select an existing security group, and then choose an existing security group, such as the production-securitygroup created in Create a VPC Security Group for a Public Web Server. The security group must include inbound rules for SSH and HTTP access.
  11. Choose Review and Launch.
  12. On the Review Instance Launch page, shown following, verify your settings and then choose Launch.
  13. On the Select an existing key pair or create a new key pair page, shown following, choose Create a new key pair and set Key pair name to production-key-pair. Choose Download Key Pair, and then save the key pair file on your local machine. You use this key pair file to connect to your EC2 instance.
  14. To launch your EC2 instance, choose Launch Instances. On the Launch Status page, shown following, note the identifier for your new EC2 instance
  15. To find your instance, choose View Instances.
  16. Wait until Instance Status for your instance reads as running before continuing.