Create an AWS PrivateLink connection
AWS PrivateLink enables you to establish a secure connection from your AWS virtual private cloud (VPC) to Imply Polaris using private IP addresses. When you query the Polaris endpoints through an AWS PrivateLink connection, the network traffic between your VPC and Polaris does not traverse the public internet.
To use AWS PrivateLink, create a VPC endpoint in your VPC that points to the Polaris endpoint service and enable private DNS resolution. The resulting PrivateLink connection is unidirectional with Polaris acting as the service provider and your VPC endpoint acting as the service consumer.
All traffic that flows through the AWS PrivateLink will incur interface endpoint expenses. For information on interface endpoint pricing, see AWS PrivateLink pricing.
Before you begin, ensure that your AWS VPC has both
enableDnsSupport attributes enabled. Refer to the official AWS documentation on DNS attributes for more information.
You must register your AWS account with Polaris. Contact your Polaris account representative to add the 12-digit AWS Account ID of the account containing the VPC to the list of allowed principals.
Create a VPC endpoint
Follow these steps to create a VPC endpoint that points to the Polaris VPC endpoint service:
Follow the AWS PrivateLink documentation to create an interface endpoint. Select the following options:
- Under Service category, select Other endpoint services.
- Under Service name, enter one of the following options. Choose the option that corresponds to your Polaris region.
This creates a VPC endpoint in the
Contact your Polaris representative to approve the connection request. Polaris must accept your connection request to grant your VPC endpoint access to Polaris services. After Polaris accepts the request, the VPC endpoint enters the
Enable private DNS names
You must enable a private DNS name to access the Polaris endpoint service. Private DNS names are created in AWS-managed Route 53 private hosted zones and are not publicly resolvable.
Follow the AWS PrivateLink documentation to enable private DNS names for your VPC endpoint.
Once the change completes, the status in the AWS console will change to
At this point, you can access Polaris from your VPC.
To validate connectivity through AWS PrivateLink, run the following nslookup command from an instance within your VPC.
Replace the following:
ORGANIZATION_NAME: The custom domain through which you access Polaris.
REGION: The cloud region of your Polaris project.
CLOUD_PROVIDER: The cloud service provider for your Polaris infrastructure.
To test network connectivity with curl, run the following command from an instance within your VPC:
curl -v https://ORGANIZATION_NAME.REGION.CLOUD_PROVIDER.api.imply.io
Connect from additional regions
You can use AWS PrivateLink to query Polaris from regions not supported by Polaris. The following steps show you how to access Polaris from a VPC in a different region.
Create a VPC endpoint in a supported Polaris region (the requester VPC).
Follow the AWS documentation to create an inter-Region VPC peering connection. The VPC peering connection request must originate from the Polaris supported region.
- Ensure that the routing between the two VPCs is set up. Follow the AWS documentation to add a route to the route tables associated with the subnets for both VPCs.
- Confirm that the hosts in the accepter VPC are allowed through the security group for the requester VPC endpoint in the supported Polaris region.
Follow AWS documentation to enable DNS resolution for queries from the peer VPC.
In the requester VPC, resolve the
ORGANIZATION_NAME.REGION.CLOUD_PROVIDER.api.imply.ioDNS name to its IP addresses. These should be the internal IP addresses of the requester VPC endpoint.
Follow the AWS documentation to create a new Route 53 private hosted zone for the accepter VPC.
Create a record mapping the
ORGANIZATION_NAME.REGION.CLOUD_PROVIDER.api.imply.ioDNS name to the internal IP addresses from Step 4.
You should now be able to query Polaris through AWS PrivateLink from the second VPC.