AWSCommands

Hosting a Static webpage in AWS.

Full width home advertisement

728

Travel the world

Climb the mountains

Post Page Advertisement [Top]

728

  

Hello and welcome to our blog! We're delighted to have you here. Whether you're a regular reader or a first-time visitor, our blog is a space where ideas come to life and conversations flourish. From insightful articles to creative stories, we aim to provide content that captivates and resonates with you. Feel free to explore our posts, share your thoughts in the comments, and join us on this journey of discovery. Thank you for being a part of our community – your presence makes this blog a vibrant and enriching place for all.
Cloud%20&%20Amazon%20Web%20Services%20EC2%20-%20Namtech%20Solution%20Consultation




STEP 1:

    

Step 1: Launch an EC2 Instance

  • Sign in to AWS Console:
  • Navigate to EC2:
    • In the AWS Management Console, navigate to the EC2 service.
  • Launch an Instance:
    • Click on "Launch Instance" to create a new EC2 instance.
  • Choose an Amazon Machine Image (AMI):
    • Select a Windows AMI of your choice.
  • Choose an Instance Type:
    • Select an instance type based on your requirements and click "Next."
  • Configure Instance Details:
    • Configure settings like the number of instances, network settings, etc. Adjust as needed and proceed.
  • Add Storage:
    • Configure the amount and type of storage. The default settings are usually sufficient for a static website.
  • Add Tags:
    • Optionally, add tags for easier identification.
  • Configure Security Group:
    • Create a new or use an existing security group. Ensure that port 80 (HTTP) is open.
  • Review and Launch:
    • Review your settings and click "Launch."
  • Choose Key Pair:
    • Select an existing key pair or create a new one. This will be used to securely access your EC2 instance.
  • Launch Instances:
    • Click "Launch Instances."


Once, the configuration is completed, it will appear like in the below image.

Screenshot%202023-11-16%20213317

 

STEP 2:

    Connect your Instance Using the following steps:

  •  Generate a Password using our keypair.
  •  Connect our instance using RDC (Remote Desktop Connection).

Screenshot%20(20)

Go to the above page, and click the “GET PASSWORD”. It leads us to the next Page, where we can upload our keypair to Generate the Password.
 Screenshot%20(24)

 

 Screenshot%20(21)

 

    Once, the password is Generated, we can Proceed to connect our instance locally using RDC (Remote Desktop connection).

 

Screenshot%202023-11-16%20214104

 

 

                  Screenshot%202023-11-16%20215859

After entering our Instance Public IP, It leads to the below page. There select “Use a different account”,  and then enter the username and password.

 

Screenshot%202023-11-16%20215941

 

Once you Connected to the Instance, it looks like the below image.

Screenshot%20(1)

STEP 3:

 HOSTING A WEBPAGE IN WINDOWS SERVER.
 

   Click “Windows” button and select the “SERVER MANAGER”

Screenshot%20(2)

 

   For the first few minutes it looks like the below image.

Screenshot%20(3)

 

   After sometimes, new tab will appears, after that click the “ADD ROLES        AND FEATURES”

Screenshot%20(4)

 

     Install the web Server (IIS) , which is shown in the below image, after             selecting the server roles leave the rest as default.

Screenshot%20(5)

 

   Installation of web server is completed which is shown in the below image.

Screenshot%20(6)

 

   After the completing installation of webserver the new file path will appear “C:\inetpub\wwwroot”.

  Copy your static webpage code and replace it in the directory, which is shown in the below images.

Screenshot%20(7)

 

 

 

Screenshot%20(8)

 

You can Download plenty of   static webpage in online. I used sample webpage for this documentation.

ss

After pasting the code in the above mentioned path, your webpage ready to use. You can access the webpage using the IP Address of your Instance. The output is shown in below 

  

Screenshot%20(25)

                             THANK YOU FOR WATCHING!!.....

728

No comments:

Post a Comment

Bottom Ad [Post Page]