In this recipe, we will create a VPC gateway endpoint for S3 and connect to S3 from our private subnet without any internet access.
Using a VPC gateway endpoint to connect to S3
Getting ready
To complete the steps within this recipe, we need to do the following:
- Create a VPC by following the Creating a VPC in AWS recipe. Create some subnets by following the Creating subnets in a VPC recipe.
- Subnets should be associated with the default NACL. Otherwise, we should define proper inbound and outbound rules so that we can log in to the private EC2 instance through the public EC2 instance.
- We should have no internet access for the private subnet. Verify this by running aws s3 ls --region us-east-1 from our private subnet. Our...