Read the following instructions before completing the given task.
Step 1: Download the document
Step 2: Check the questions
Step 3: Complete the task and take a screenshot for each task and upload
Step 4: Save the document
Step 5: Upload the document in Google form
● AWS Account is mandatory to complete the tasks.
● Include AWS account Name in your screenshots
Task 1: Create a VPC with 2 subnets one public and the other private in different
Availability Zones(AZ’s) and attach Internet gateway.
Task 2: Deploy static website on AWS S3 and upload the output of Task 1(Screen
Shot) in the S3
Task 1:- Create a VPC with 2 subnets one public and the other private
in different Availability Zones (AZ’s) and attach Internet gateway.
i. This is mine AWS Account Screenshot
ii. Create VPC in Mumbai region
iii. Create the public subnet in AZ1
iv. Create private subnet in az2
V. Create both the public and private subnets in the different
availability zones
VI. Create internet gateways and attach to vpc
VII. Configure route table where network traffic is routed from subnets
and associated with subnets Here only public subnets can access the internet
but private subnet is not accessible from the internet but can be
given outbound internet access via a NAT Gateway located in a public
subnet.
VIII. Select the route table and edit the subnet association and public subnet
to route table.
Edit the route table and set the rules and save
I have created vpc, subnets and IGW
Task 2:- Deploy static website on AWS S3 and upload the output of Task
1(Screen Shot) in the S3
Launch S3 bucket
Click on create bucket with unique name
Successfully bucket has created
Once the bucket has created next we have upload the files inside the bucket First
select the bucket and double click on it finally the images inside the bucket.
Upload the images (objects) inside the bucket
Now go to properties enable static website by default it is disabled
Now we can check the website by copy URL from static website content
Copy the URL and paste it is in browser it not working because we have set
the permissions.
Now go to permissions and edit Bucket Policy and click Policy Generator tool
to generate the policy
1. Choose S3 Bucket Policy
2. And in Effect we are allowing
3. So in principal we need update as * as we are allowing everyone
4. In Action we need to give “GetObjection” Action as they are trying to read
the static website content.
5. ARN number we need to update in ARN, as ARN id is generated and we can
get it in Edit Bucket Policy
Click on policy generator and edit it and save it
Once you generate the policy the JSON code is generated
Paste this JSON document in Edit Bucket Policy
Just change the resource by adding /*, as we are allowing everyone
Go to properties and copy the URL in static website content and paste it in
browser
http://microprojectbucket.s3-website.ap-south-1.amazonaws.com
To get the static website
I have created the static website by using the s3 bucket.