Let’s go step by step and launch a simple web server on AWS.
Step 1: Launch an EC2 Instance
Go to the AWS Console open EC2 and click on Launch Instance.
Now configure the instance:
Step 2: Choose a Key Pair
You need a key pair to securely connect to your instance.
You can either create a new one or use an existing key pair.
Make sure to download the .pem file when creating it, because you’ll need it later to connect.
Step 3: Configure Network Settings
Allow the following ports:
SSH (port 22) for logging into the server
HTTP (port 80) so your website can be accessed from a browser
Step 4: Launch the Instance
Click on Launch Instance.
Your server will now be created and started.
Step 5: Open the terminal of ubuntu in AWS
Step 6: Open sudo nano index.html, this gives a default html file
Step 7: Type a simple html code
Step 8: Access from Your Browser
Open your browser and enter your address- http://44.205.7.223/
NOW STOPPED





Top comments (0)