0% found this document useful (0 votes)
16 views10 pages

05 Launch WebServer Instances

1. The document provides steps to set up a VPC, internet gateway, route table, and subnet in AWS and then launch a web server instance. It involves creating a VPC and associated resources like internet gateway and route table. Then an EC2 instance is launched in the subnet with necessary security configurations. 2. Key steps include creating a VPC and subnet, attaching an internet gateway, editing route tables and subnet associations. For the instance, it covers selecting an AMI, security group rules, and adding user data to install and run a web server. 3. Finally a test is done by accessing the public IP address of the instance to verify the web server is running successfully.

Uploaded by

Milind Tailor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views10 pages

05 Launch WebServer Instances

1. The document provides steps to set up a VPC, internet gateway, route table, and subnet in AWS and then launch a web server instance. It involves creating a VPC and associated resources like internet gateway and route table. Then an EC2 instance is launched in the subnet with necessary security configurations. 2. Key steps include creating a VPC and subnet, attaching an internet gateway, editing route tables and subnet associations. For the instance, it covers selecting an AMI, security group rules, and adding user data to install and run a web server. 3. Finally a test is done by accessing the public IP address of the instance to verify the web server is running successfully.

Uploaded by

Milind Tailor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Lesson 3 Demo 5

Launch Web Server Instances

Objectives: To set up the VPC, internet gate, route table and subnet and to Launch
Webserver Instances

Tools require: AWS workspace

Prerequisites: AWS account

Steps to be followed:

1. Creating a VPC, internet gateway, subnet, and route table


2. Creating an EC2 webserver instance

Step 1: Setting up the prerequisites for configuring a VPC


1.1 In the console navigation pane, search for and choose VPC
1.2 In the VPC page, click on Create VPC and enter a name
1.3 Click on Create VPC
1.4 Click on Subnets on the left side of the screen, and click on Create subnet
1.5 Select the VPC which was created in a previous step, and enter the name under Subnet
name
1.6 Enter an IPv4 CIDR block for the subnet

1.7 Create an internet gateway

1.8 Select the created internet gateway, click on Actions, and select Attach to VPC
1.9 Click on Route tables in left side of the menu, click on Create route table, enter the
name for the route table, and select the VPC created in a previous step

1.10 Click on Create route table:


1.11 After the creation of route table, select the route table, click on Actions and select Edit
subnet associations:

1.12 Select the subnet, click on Save associations:


Step 2: Creating an EC2 webserver instance
2.1 In the console navigation pane, choose EC2:

2.2 In the EC2 page, click on Create Launch instance:


2.3 Enter the name for the instance:

2.4 In the Application and OS image section, choose the version Amazon Linux:
2.5 For the Instance type, choose:
2.6 Click on Create new key pair.

2.7 specify key pair name and, choose the type as RSA and, for private key format
choose .pem format and then click on create key pair:

2.8 In Network settings, Select the VPC and Subnet and enable Auto assign public IP:
2.9 Click on Add Security group rule:

2.10 Click on Add inbound rule, and add HTTP and HTTPS inbound rules:
2.11 Click on Advanced details:

2.12 Add the following code in User data:

2.13 The web instance is created successfully:


2.14 Select the instance, copy the Public IPv4 address:
2.15 Open a new tab in the browser, paste the Public IPv4 address and press enter:

You might also like