
CREATING AN EC2 Instance and Running a Web Server
Title: Creating an EC2 Instance and Running a Web Server In this task, I created a virtual server using Amazon Web Services and hosted a simple web server so I can access it from outside. I used Amazon EC2 for this. What is EC2 EC2 stands for Elastic Compute Cloud. It allows us to create virtual machines in the cloud and run applications on them. Step 1: Launch EC2 instance First, I logged into AWS console. Then I went to EC2 service and clicked Launch Instance. I entered the following details Instance name as my-server Selected Amazon Linux image Instance type as t2.micro Created a new key pair for login Step 2: Configure network I allowed HTTP traffic so that I can access the web server from browser. In security group settings, I added Type HTTP Port 80 Source Anywhere This step is important, otherwise the site will not open. Step 3: Launch instance After configuring everything, I launched the instance. Then I waited until the instance state became running. Step 4: Connect to instanc
Continue reading on Dev.to
Opens in a new tab




