Pricing
PlanetScale bills PrivateLink ingress and egress at $0.01 per GB after the branch’s included allowance. AWS also charges for VPC endpoints and data processing. See Neki pricing and the AWS PrivateLink pricing page.Prerequisites
- A Neki database in an AWS region.
- An AWS VPC in the same region as the Neki database.
- IAM permissions to create VPC endpoints and manage their security groups.
- A host in the VPC from which you can test DNS and Postgres connectivity.
Get the private connection details
1
From the PlanetScale dashboard, select your Neki database.
2
Open Settings, then select Roles.
3
Select the branch and open the role your application uses.
4
Select the required router group under Connection target.
5
Copy the Private Host and Private Service Name.
Create the VPC endpoint
1
Create a security group for the endpoint that allows inbound TCP traffic on
port
5432 from your application resources. Referencing the applications’
security group is more restrictive than allowing the entire VPC CIDR.2
In the AWS console, open VPC > Endpoints and select Create
endpoint.
3
For the endpoint type, select Endpoint services that use NLBs and GWLBs.
4
Enter the Private Service Name from PlanetScale and select Verify
service.
5
Select the VPC and the subnets your application can reach. Select at least
two subnets for availability.
6
Under Additional settings, enable the DNS name.
7
Attach the endpoint security group and create the endpoint.
8
Wait until the endpoint status is Available.
5432. If the selected subnets use restrictive network ACLs, allow port
5432 and the ephemeral ports required for response traffic.
Verify the endpoint
From a host in the configured VPC, confirm that the Private Host resolves to private addresses:Troubleshooting
If the connection fails:- Confirm that the VPC endpoint status is Available.
- Confirm that the endpoint is in the same AWS region as the Neki database.
- Check inbound rules on the endpoint security group and outbound rules on the application security group.
- Check the network ACLs for the endpoint and application subnets.
- Verify that the private host resolves to addresses in the VPC.
- Use AWS Reachability Analyzer to inspect the path between the application and endpoint.

