Cloud Computing Lab Tanushri
Cloud Computing Lab Tanushri
Technology
WASE 2021 Cloud Computing SSWTZG527
Lab Work Sheet 1
Submitted by - Tanushri Das
BITS ID – 2021wa15354
Solution
Step3: Click on Start Lab and wait until the red dot turns to green. Once it’s green, click on
the green dot, it will navigate to the AWS management console.
Step4: Go to Search Bar and search for EC2. Click & Open EC2.
Step5: In EC2 console, click on the “Launch Instance” orange button & get started
with the instance creation process. This will take you through a series of steps to
configure your instance.
Step6: Provide a name to your instance. A meaningful name is always recommended that
describes the purpose of your instance.
Step7: Choose Amazon Machine Image (AMI). An AMI is a template that contains the
software configuration (operating system, application server, and applications) required to
launch your instance. Select an AMI that best suits your requirements.
I have chosen Microsoft Windows Server 2022 Base which has a free tier eligibility with
limited usage to the service.
Step8: Choose an Instance type: AWS offers a range of instance types with varying
compute, memory, and storage capabilities. Select an instance type as per your need.
In my case, I will choose “t2.micro” as instance type which is also valid for free tier.
Step9: Create a Key-Pair: To securely access your EC2 instance from your system,
you need to create a key pair. A key pair consists of a public key that AWS stores and a
private key that you download to your local machine. The private key is used to
authenticate and establish a secure connection with your EC2 instance.
You have the option to select an existing key pair if you already have one, or you can
create a new key pair by clicking on the “Create new key pair” button.
Upon clicking this button, a dialogue box will appear where you can provide a unique
name for your key pair. Select the key pair type as “RSA” and choose the private key
file format as “.pem”.
Click on Create key Pair to complete the process of generating a new Key Pair.
Step 12: Once you have reviewed all the configuration, Click on the “Launch
Instance” button (highlighted in green).
After a while, you will see a success window that represents a successful launch of
your instance.
Go to your EC2 console and refresh the page, you will now see your newly created
instance present. Select your instance and it will display all the configuration and
other details in the bottom half of the window.
Once you are done with all your tasks, don’t forget to stop the instance to make sure it
doesn’t run in the background and avoid being overcharged.
Solution
Step1: Launch AWS management console (follow the same steps as mentioned above).
Step2: Go to the search Bar and Search for S3. Open S3 and click on “Create Bucket” to start
with a new bucket where we will host our static website.
Step3:
You can also replicate your existing bucket settings using the option highlighted in green.
Uncheck “Block all public access” checkbox to make your bucket and objects public. You
can change this settings(private/public) any time from the bucket settings after creating the
bucket.
Now leave all the other configurations as default values. Scroll down and click Create
Bucket.
You will get a successful window once the bucket is created and you can now see your newly
created bucket in your bucket list.
Step4: Go to the bucket and click on upload option to upload files/folders that you want to
host into S3.
Choose the files and click on upload. It will upload all the chosen files/folders into S3
bucket.
Step 5: Configure Bucket Permissions
In the bucket tab, navigate to the "Permissions" tab to edit the "Block public access option".
Untick the "Block all public access" option and save changes. A dialogue box will appear
type ‘confirm’ keyword in box and click confirm.
Note: I have made my bucket public at the time of bucket creation so I’ll ignore this step.
Step6: To get access to web files, we have to make sure enable public using ACL. Goto
permissions tab, click on ‘edit’ under object ownership.
In object ownership select ACLs enabled and checkout the box and click save changes. Now
comeback to objects and select the files and check, make public ACLs is enabled open it
and click on make public.
Step 7: Enable Static Website Hosting
Navigate to the "Properties" tab, scroll down to the "Static website hosting" section and click
on "Edit”.
Enable "Static website hosting" option and Hosting type as "Host a static website".
Enter the name of your main HTML file and Error file as the default document (the Error file
can be optional).
Click "Save changes" to enable static website hosting for our S3 bucket.
Step9: Goto AWS Academy learner lab click End lab, wait until green dot turns into red
dot.