How to setup and create AWS VPC peer connection
VPC peering provides a connection between two VPCs. It allows you to pair private Amazon VPC directly to Anypoint VPC. This way is used to route traffic between the two VPCs to communicate on the same network.
To make use of this VPC Peering, keep AWS and Anypoint VPCs in the same region.
How to configure VPC Peering Connection
For your information, MuleSoft never supported any inter-region peering, so both VPCs must reside in the same region.
To request new, modify, or update any existing VPC peering connections, follow the steps below for the successful VPC Peering Configuration:
- Download the Anypoint VPC discovery form.
- For each VPC peering connection, complete and submit a separate Anypoint VPC form.
It is necessary to submit a completed Anypoint VPC discovery form in case of any new connections or to update any existing configurations.
- Complete all fields in the Overview and VPC Peering tabs. Completing all the fields in the forms will ease your process quicker.
- Open a Support ticket and now submit your completed form.
The MuleSoft Support team validates the Anypoint VPC discovery form before creating or updating any VPC peering connection request. Once the update is done, you'll be notified with the help of tickets.
AWS support inter-region VPC peering, however, Mulesoft doesn't support inter-region peering, it only supports intra-region VPC peering
To establish an AWS VPC peering connection, you do the following:
- The requester VPC owner sends a request to the accepter VPC owner while creating the VPC peering connection. The accepter VPC can be owned by any AWS account holder, but it shouldn't have any CIDR block overlapping with the requester VPC's CIDR block.
- The owner of the accepter VPC must need to accept the VPC peering connection request to activate the steps for VPC peering connection.
- To enable the traffic flow using private IP addresses between the VPCs, the owner of each VPC in the VPC peering connection must add a route to one or more VPC routes as per the IP address range of the other VPC (the peer VPC).
- In case of setup, update the security group rules that are associated with your instance to ensure that hassle-free traffic to and from the peer VPC. When both VPCs are set in the same region, you need to check and verify peer VPC is either a source or destination in the security group rules.
- By default, if you notice any instances on either side of a VPC peering connection address, map each other using a public DNS hostname, then it resolves to the instance's public IP address. To change this behavior, you first have to enable the particular DNS hostname resolution for your VPC connection. After the successful setup, enable DNS hostname resolution, to map instances of the VPC peering connection address to each other. Manage the settings of the public DNS hostname to resolve to the private IP address of the instance.
This is how you need to create, setup, and configure any new AWS VPC peer connection for a successful connection. On a successful AWS VPC peer connection, it eases with no blocks in bandwidth, horizontally scaled, supports global AWS support, encrypts inter-region traffic, and more. Thus, the significance of AWS VPC peer connection allows a secured way of sharing files.