Amazon AWS-Step 3: Launch an Instance into Your VPC

When you launch an EC2 instance into a VPC, you must specify the subnet in which to launch the instance. In this case, you’ll launch an instance into the public subnet of the VPC you created. You’ll use the Amazon EC2 launch wizard in the Amazon EC2 console to launch your instance.

The following diagram represents the architecture of your VPC after you’ve completed this step.

VPC

 

To launch an EC2 instance into a VPC

1.Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
2.In the navigation bar, on the top-right, ensure that you select the same region in which you created your VPC and security group.

 

3.From the dashboard, choose Launch Instance.

 

4.On the first page of the wizard, choose the AMI that you want to use. For this exercise, we recommend that you choose an Amazon Linux AMI or a Windows AMI.

 

5.On the Choose an Instance Type page, you can select the hardware configuration and size of the instance to launch. By default, the wizard selects the first available instance type based on the AMI you selected. You can leave the default selection, and then choose Next: Configure Instance Details.

 

6.On the Configure Instance Details page, select the VPC that you created from the Network list, and the subnet from the Subnet list. Leave the rest of the default settings, and go through the next pages of the wizard until you get to the Tag Instance page.

 

7.On the Tag Instance page, you can tag your instance with a Name tag; for example Name=MyWebServer. This helps you to identify your instance in the Amazon EC2 console after you’ve launched it. Choose Next: Configure Security Group when you are done.

 

8.On the Configure Security Group page, the wizard automatically defines the launch-wizard-x security group to allow you to connect to your instance. Instead, choose the Select an existing security group option, select the WebServerSG group that you created previously, and then choose Review and Launch.

 

9.On the Review Instance Launch page, check the details of your instance, and then choose Launch.

 

10.In the Select an existing key pair or create a new key pair dialog box, you can choose an existing key pair, or create a new one. If you create a new key pair, ensure that you download the file and store it in a secure location. You’ll need the contents of the private key to connect to your instance after it’s launched.

To launch your instance, select the acknowledgment check box, and then choose Launch Instances.

 

11.On the confirmation page, choose View Instances to view your instance on the Instances page. Select your instance, and view its details in the Description tab. The Private IPs field displays the private IP address that’s assigned to your instance from the range of IP addresses in your subnet.

 

 

 

Related Pages:

WHAT IS AMAZON VPC?
GETTING STARTED WITH AMAZON VPC

Source By: <docs.aws.amazon.com>

To Become AWS Certified please Check out the Link;

 

 

 

Exit mobile version