Private connectivity with AWS PrivateLink resource gateways
Share individual AWS databases with Atlan over AWS PrivateLink using a VPC resource gateway and one resource configuration per database.
The resource gateway pattern connects Atlan to your AWS-hosted databases over the AWS private network. It uses AWS PrivateLink's VPC resource gateway, built on the same infrastructure as VPC Lattice, to share individual resources such as an RDS database across accounts. You create a resource gateway and one resource configuration per database, and share each configuration with Atlan. Your database stays private, and your VPC isn't peered or associated with Atlan's.
How it works
| Component | What it does |
|---|---|
| Resource gateway | A private entry point into the VPC where your database lives. It receives inbound connections from Atlan and forwards them to the database, performing source NAT. One per VPC, spanning at least two subnets. |
| Resource configuration | A pointer to a single resource behind the gateway, identified by ARN (RDS/Aurora), DNS name, or IP address, plus the allowed ports. One per database. |
| AWS RAM share | Shares the resource configuration with Atlan's AWS account. It grants access only to that resource. |
| Atlan-side VPC endpoint | Atlan accepts the share and creates a Resource-type endpoint in your Atlan tenant's VPC. Each shared resource surfaces there as an endpoint-specific DNS name and port. |
Each share carries one resource configuration, so each database needs a new share and its own Atlan-side endpoint.
Traffic flows from the connector to the VPC endpoint in the Atlan VPC, then to the resource gateway in your VPC and on to the database. The gateway performs source NAT, so your database sees connections from the gateway's addresses. Atlan opens each connection, and replies return on it.
- The assigned port is intentional. Each shared database surfaces as an endpoint hostname of the form
vpce-xxxx.vpce-svc-xxxx.<region>.vpce.amazonaws.comon a port such as6001, rather than the database's native5432. Configure the connector with exactly the hostname and port Atlan support confirms. - RDS IAM authentication needs the real hostname. IAM token generation validates against the genuine
*.rds.amazonaws.comhostname, which avpce-…name can't satisfy. If you need RDS IAM authentication, tell Atlan support when you plan the setup, so it includes private DNS for the real hostname.
Before you begin
Prerequisites
- Access to the AWS account and VPC where your database resides, with IAM permissions to create a resource gateway, resource configuration, and AWS RAM share.
- Atlan's AWS account ID and your tenant's region. See Atlan's private network values. The share and endpoint are in your tenant's region.
- Database details: RDS/Aurora ARN (or DNS name or IP for other sources), engine, and port.
- For ARN-type configurations, the database must not be publicly accessible. AWS doesn't permit resource configurations for publicly accessible clusters.
- If the resource gateway lives in a different AWS account than the database (common with centralized networking accounts), confirm that a test instance in the gateway's VPC reaches the database before involving Atlan. Cross-account routing and security groups are on your side.
Information to share with Atlan
| Detail | Example / notes |
|---|---|
| Resource configuration ARN | arn:aws:vpc-lattice:<region>:<account>:resourceconfiguration/rcfg-… |
| Confirmation the AWS RAM share is in place | A screenshot of the share's principals and associations helps |
| Per database: engine and native hostname | PostgreSQL, mydb.abc123.<region>.rds.amazonaws.com |
| Per database: port | 5432, 3306, 1433 |
| Authentication method | Credential-based, or a cross-account IAM role (role ARN + external ID). Flag if RDS IAM auth is required, since it changes the DNS setup |
| Which Atlan tenant | Production or non-production, each needs its own share and endpoint |
Set up connection
- Create the resource gateway. In the AWS VPC console, go to PrivateLink and Lattice → Resource gateways and create a gateway in the VPC that contains your database. Select subnets with free IP addresses in at least two Availability Zones, and attach a security group. One gateway serves every database in its VPC.
- Create a resource configuration for the database. Choose the type: ARN for a non-public RDS or Aurora database, DNS for a TCP service reachable by domain name, or IP for a TCP service reachable by IP address in the VPC. Select the resource gateway, protocol TCP, and the database port.
- Permit the gateway. In the database's security group, add an inbound rule from the resource gateway's security group, or its subnet ranges, on the database port. See the security group note after these steps.
- Share with Atlan. In AWS RAM, create a resource share containing the resource configuration, add Atlan's AWS account ID as the principal, and enable Allow sharing with external accounts. Open the share after creating it and confirm Atlan's account and the resource are listed. A share that fails to save is a frequent cause of a stalled setup.
- Send the details. Raise a support request with the details in Information to share with Atlan.
Traffic reaches the database from the resource gateway's own IP addresses, so the database's security group only needs to permit the resource gateway. The gateway's security group also needs an outbound rule to the database on its port. A missing rule on either side causes connection timeouts after an otherwise-correct setup. The VPC Lattice managed prefix list and the link-local range 169.254.171.0/24 apply to VPC Lattice service targets, not to resource gateways.
After you send details
Atlan confirms the shared resource is visible from its account, accepts the share, and creates the VPC endpoint in your tenant's VPC. When the endpoint is Available, Atlan shares back the endpoint DNS names and ports to use in your connections, and checks TCP reachability and authentication before handing over for crawling.
Limitations and considerations
- TCP only, Layer 4 only. Resource gateways carry TCP traffic with no Layer 7 features. UDP isn't supported.
- Same region as your tenant. For sources in another region, see AWS cross-region.
- ARN-type configurations cover RDS and Aurora. Other sources, such as self-hosted databases on EC2, use DNS- or IP-type configurations. A self-hosted tool in your VPC, such as Tableau Server or Superset on EC2, exposes an HTTPS endpoint that a DNS-type configuration can front.
- Amazon Redshift. Atlan's validated Redshift path today is AWS PrivateLink or Redshift-managed endpoints. Confirm with Atlan support before you plan Redshift over a resource gateway.
- Kafka. For Amazon MSK or self-managed Kafka, every broker's advertised listener must be resolvable and fronted, not just the bootstrap address.
- On-premises sources need a path into your VPC first. A resource gateway fronts resources reachable inside your AWS network, so on-premises databases first need Direct Connect or Site-to-Site VPN into your VPC.
- Coexists with AWS PrivateLink. A working AWS PrivateLink connection to Atlan doesn't need to move to a resource gateway. The patterns run side by side.
- IP space matters on both sides. Gateways and endpoints consume subnet IPs. Atlan likewise needs free, contiguous address space in the tenant VPC for the endpoint, and endpoint creation can fail on nearly-exhausted subnets.
Troubleshooting
For setup errors with resource gateway, see Resource gateway setup errors.
See also
- Manage private connectivity: connect more databases.
- Compare AWS patterns: how the AWS patterns differ.