Create a vpc with internet gateway

Assignment Help Other Subject
Reference no: EM133697567

Cloud Computing

Practical Test

Objective: The assignment aim is to set up an EC2 instance in a Virtual Private Cloud (VPC), connect it to an Amazon Simple Storage Service (S3) bucket, and work with bucket contents. Note: Try to use your first name or student ID when naming your VPC, EC2, S3 Bucket, etc.
Note: Set your region to Asia Pacific (Sydney)

Create a VPC and a public subnet (use instructions from Lab 3)

Create a VPC with Internet gateway, plus a public subnet and a public Route table. Include your first name in all of them. Associate Route table with the public Subnet.

Take a full and clear screenshot of your VPC's entire Resource map

Launch an EC2 instance based on Amazon Linux inside your new VPC and public subnet. Note: Make sure your account is eligible for the Free Tier, and that you use Free Tier eligible services when launching the instance.

Connect to the EC2 instance using SSH client.

Take a full screenshot of the Linux prompt upon successful connection

Create a S3 bucket (instructions from Lab 4, until bucket is created)

Go to S3 dashboard to create a bucket. Include your first name in the bucket name.

Under the bucket Permissions, use the Bucket policy previously discussed in Lab 4.

Upload a blank .txt file named with your first name (e.g., name.txt) into the S3 bucket.

Create an endpoint using the VPC dashboard

Open the Amazon VPC dashboard.

In the navigation pane, choose Endpoints. Then choose Create endpoint.

For Service category, choose AWS services.

In Services, filter for Type= Gateway and select the option com.amazonaws.region.s3 Note: If your region is Asia Pacific (Sydney), region would be ap-southeast-2

For VPC, and Route table, select the VPC and public subnet you created in step 1.

For Policy, select Full access to allow all operations by all principals on all resources over the VPC endpoint.

Choose Create endpoint.

Take another screenshot of VPC's Resource Map showing the new endpoint (4 marks)

Create an IAM instance profile that grants access to Amazon S3

Open the IAM dashboard.

Choose Roles, and then choose Create role.

Select AWS Service and then choose EC2 under Use Case.

Select Next to go to Add permissions.

Search and select AmazonS3FullAccess policy to allow EC2 access your S3 buckets.

Next, enter a Role name and include your first name in it, e.g., name-EC2-role.

Take a screenshot of the Role details showing the Role name, and Description

Attach the IAM instance profile to the EC2 instance

Open the Amazon EC2 dashboard and navigate to instances.

Select the EC2 instance created in step 1. Attach the IAM role created in step 4 using:

Choose the Actions tab, choose Security, and then choose Modify IAM role.

Select the IAM role that you just created, and then Update IAM role. The IAM role is assigned to your EC2 instance.

Update your bucket policy to restrict bucket permissions to your EC2 instance

For the bucket created in step 2, under the bucket permissions edit Bucket policy, and change the policy code to the code shown below, and then save changes.
Note: Replace your-bucket-name with the name of your S3 bucket and vpce-xxxxxxxxxx with the ID of the VPC endpoint (created in step 3) that attached to your EC2 instance.

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": "*",
"Action": "s3:*", "Resource": [
"arn:aws:s3:::your-bucket-name", "arn:aws:s3:::your-bucket-name/*"
],
"Condition": { "StringEquals": {
"aws:SourceVpce": "vpce-xxxxxxxxxx"
}
}
}
]
}

Take a full and clear screenshot of your bucket policy (4 marks)

Explain briefly in your report, what are the TWO main differences between the updated bucket policy in step 6, and the previous policy that was used in step 2 (4 marks)

Access your S3 from the EC2 instance, in Lunix prompt

Use the Linux command below to list all S3 buckets, including the one created in step 2:
aws s3 ls

List file (or files) in the new bucket created in step 2:
aws s3 ls s3://your-bucket-name

List any EC2 files:
ls

Get the file in the bucket created in step 2 (e.g., name.txt):
aws s3 cp s3://your-bucket-name/name.txt .

Then again list the files in EC2:
ls -l

Finally delete the file from EC2:
rm name.txt

Take a full screenshot of the prompt showing all 6 commands and their results (5 marks)

Note: if the commands execute but do not return results, you may review the traffic rules in the Security group or Network ACL (assigned to the instance and subnet, respectively).

Completion

Terminate the EC2.

Submit a WORD report containing the screenshots and descriptions via Moodle LMS. Include a one liner caption on the top of each screenshot, to describe its contents.
Number the captions (e.g. Screenshot 1. VPC Resource map showing etc etc...)

Reference no: EM133697567

Questions Cloud

Design an appropriate and feasible research plan : UPLMBAM99 Dissertation, University of Suffolk - Select and develop appropriate research instruments and deliver a purposeful inquiry underpinned by secondary
Which security challenges does the company face : Which security challenges does the company face in supporting remote access for employees? How would the company use this information to manage product supplies
Conduct a literature review of current developments : You will need to conduct a literature review of current developments in healthcare that impact HIPAA legislation and the application of privacy rules.
Identify three potential cuts that can be made : You must identify three potential cuts that can be made. There are almost always multiple opportunities for budget cuts in any organization.
Create a vpc with internet gateway : Create a VPC with Internet gateway, plus a public subnet and a public Route table. Include your first name in all of them. Associate Route table
What is difference between internal and external stakeholder : What is the difference between an internal and external stakeholder? What is the difference between a key and secondary stakeholder?
What we mean by baselining our project : Before we execute a project, we must baseline our project. Search the Internet and ascertain what we mean by Baselining our project.
How do you plan to scale and grow business moving forward : How do you plan to scale and grow this business moving forward? How can we continue to improve the company's performance?
Presenting with vomiting and severe abdominal pain : The emergency department nurse cares for a 43-year-old female client presenting with vomiting and severe abdominal pain.

Reviews

Write a Review

Other Subject Questions & Answers

  What categories would be best to reveal the segments

Determine and describe what ethnic, racial, and/or gender categories, if any, would be best, in your view, for the 2020 Census or the 2030 Census.

  Identify unique problems or considerations

Identify unique problems or considerations that apply to pregnant women. Compare and contrast your pregnant women to the overall U.S. population.

  Surface area of the lagoon

If the evaporation rate from an open water surface is 0.27 inch/day in Tucson Arizona, what should be the surface area of the lagoon? (Note: arsenic does not evaporate but remains in the liquid water).

  What is the setting where the prevention occurs

Remember to follow course guidelines on Forum Posting. Respond to the prompt fully--read the discussion prompt questions carefully. Respond to your classmates.

  The dead-the guest and endgame

Identify theme statement among "The Dead" (Joyce), "The Love Song of J. Alfred Prufrock"(Eliot), "The Guest" and Endgame

  Define complex communication? needs, and offer two ideas

Define complex communication? needs, and offer two ideas of how you might support a student like Mindy with complex communication needs.

  How selected element influenced disaster response efforts

Explore how the selected element influenced disaster response efforts. Provide details of the ways in which these influences were observed.

  Man guilty of visa fraud in thai welders case

LOS ANGELES (AP) — Authorities say a California man has been convicted of seeking visa extensions for Thai welders purportedly hired for a construction job when in reality they were forced to work at restaurants and live in deplorable conditions.

  How are information systems transforming business

How are information systems transforming business and what is their relationship to globalization? Give examples to illustrate your answer.

  Identify the database that you used to search

Identify the Database that you Used to search for a peer-reviewed article in your area of practice and interest. Reflect on your experience with searching.

  How did the killer select his or her victims

Describe the killer's background, methods, and area of operation. Determine which of the theories relate to this killer and show why you made this determination.

  Examine challenges that an instructional designer encounters

The planning of an instructional design project requires a scope of work, scheduling and resource allocation, and budgeting. Examine three (3) main challenges.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd