Create a VPC Endpoint and S3 Bucket in AWS

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

In this hands-on lab, we will create a VPC endpoint and an S3 bucket to illustrate the benefits available for our cloud implementations. VPC endpoints can be used instead of NAT gateways to provide access to AWS resources. Many customers have legitimate privacy and security concerns about sending and receiving data across the public internet. VPC endpoints for S3 can alleviate these challenges by using the private IP address of an instance to access S3 with no exposure to the public internet.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create an S3 Bucket

Use the AWS Management Console to create an S3 bucket beginning with the name vpcendpointbucket followed by random numbers to ensure the bucket is unique.

Create a VPC Endpoint
  1. From the Management Console, go to VPC.
  2. Click Route Tables, find the unnamed private route table, and name it private.
  3. Click Endpoints and Create Endpoint.
  4. Select the S3 service.
  5. Create an S3 Gateway Endpoint with your private subnet.
Verify VPC Endpoint Access to S3
  1. Check the route table to make sure you see a route using the VPC endpoint to S3.
  2. To verify, SSH into the public instance (use the crendtials from the lab).
  3. From the public instance, SSH into the private instance.
  4. Run aws s3 ls and confirm that the S3 bucket is in your environment.

Additional Resources

Log in to the AWS environment using the cloud_user credentials provided in this lab.

Make sure you are using us-east-1 (N. Virginia) as the selected Region.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?