AWS Networking: VPC Peering
AWS Networking: VPC Peering
AWS Networking: VPC Peering
Choose one of the following setups based on the security requirements of your company and your existing infrastructure.
To set up a private connection between an Astro VPC and an AWS VPC, you can create a VPC peering connection. VPC peering ensures private and secure connectivity, reduces network transit costs, and simplifies network layouts.
Open the AWS console of the AWS account with the external VPC and copy the following:
In the Astro UI, click Organization Settings, then click Clusters, select your cluster, click VPC Peering Connections, then click + VPC Peering Connection.
Configure the following values for your VPC peering connection using the information you copied in Step 1:
Click Create Connection. The connection appears as Pending.
Wait a few minutes for the Complete Activation button to appear, then click Complete Activation link.
In the modal that appears, follow the instructions to accept the connection from your external VPC and create routes from the external VPC to Astro.
A few minutes after you complete the instructions in the modal, the connection status changes from Pending to Active. A new default route appears in Routes with your configured CIDR block.
Astro might show additional information in your connection status if it has an issue when it creates the connection. The following are all possible connection statuses.
Note that a VPC connection can be listed as Active even when it has an incorrectly configured CIDR block. To reconfigure your CIDR block without deleting your connection, delete the route that was generated when you configured the connection and create a new route with the correct CIDR block.
Your initial VPC connection connects Astro to your external VPC through a primary CIDR block. To connect Astro to other data services or systems within the external VPC, you can create additional routes to secondary CIDR blocks or subnets within the primary CIDR block. You can also complete this setup if you recently configured a new service in your external VPC and want to connect it with Astro without updating your base VPC connection.
Open the Routes tab, then click + Route.
Configure the following details for your route:
Click Create Route, then wait a few minutes for the route to be created.
If your external VPC resolves DNS hostnames using DNS Hostnames and DNS Resolution, you must also enable the Accepter DNS Resolution setting on AWS. This allows Astro clusters and Deployments to resolve the public DNS hostnames of the external VPC to its private IP addresses. To configure this option, see AWS Documentation.
If your external VPC resolves DNS hostnames using private hosted zones, then you must associate your Route53 private hosted zone with the Astro VPC using instructions provided in AWS Documentation.
To retrieve the ID of any Astro VPC, contact Astronomer support. If you have more than one Astro cluster, request the VPC ID of each cluster.