simple EC2 instance and run a webserver and access it from outside
โ๏ธ Launching an EC2 Instance and Hosting a Web Server (AWS Beginner Guide) Hi everyone ๐ Today I tried something interesting in AWS โ I created an EC2 instance, installed a web server, and accesse...

Source: DEV Community
โ๏ธ Launching an EC2 Instance and Hosting a Web Server (AWS Beginner Guide) Hi everyone ๐ Today I tried something interesting in AWS โ I created an EC2 instance, installed a web server, and accessed it from my browser ๐ Let me walk you through the steps in a simple way ๐ ๐ What is EC2? EC2 (Elastic Compute Cloud) is a service provided by AWS that allows you to create a virtual machine in the cloud. ๐ You can use it like your own computer: Install software Run applications Host websites ๐ Step-by-Step Process ๐น Step 1: Login to AWS Console Go to AWS Console Search for EC2 Click Launch Instance ๐น Step 2: Configure Instance Choose the following: Name: MyWebServer AMI: Amazon Linux Instance Type: t2.micro (Free Tier) ๐น Step 3: Create Key Pair Create a new key pair Download .pem file ๐ This is used to securely connect to your instance ๐น Step 4: Configure Security Group Allow these: SSH (Port 22) โ for login HTTP (Port 80) โ for web access ๐ Very important step! ๐น Step 5: Launch