Creating a VPC with a private subnet and connecting DC
Sometimes for security purposes, you will want to host instances in AWS and treat it as an extension of the corporate DC. In this case, VPC will only have a private subnet and a VPN connection to the DC for connectivity. In this recipe, we will learn how to create connectivity with the DC, without creating a public subnet.
Getting ready
Log in to your AWS account with proper permissions for creating the required components.
How to do it...
- Open the VPC dashboard by browsing to https://console.aws.amazon.com/vpc as shown in the following screenshot:

VPC wizard
- Click on
Start VPC Wizard
. Let's select the optionVPC with a Private Subnet Only and Hardware VPN Access
. The screenshot explains the components that we are going to create.- One VPC
- One private subnet that can be accessed through a corporate data center
- One VPN connection that connects the corporate data center to the AWS subnet
- Service endpoint for connecting services like S3 over...