Private connectivity with AWS VPC Lattice
Share one VPC Lattice service network with Atlan and reach the databases associated with it, across VPCs and AWS accounts, by their real hostnames.
AWS VPC Lattice connects Atlan to your AWS-hosted databases over the AWS private network, and your databases stay private. You share one service network with Atlan, and every database associated with it becomes reachable, across VPCs and AWS accounts.
How it works
AWS VPC Lattice is an application networking service that connects services and resources across VPCs and AWS accounts. For connecting Atlan to databases, four building blocks matter:
| Component | What it does |
|---|---|
| Resource gateway | A private entry point into the VPC where your database lives. It receives inbound connections and forwards them to resources in that VPC. You create one per VPC (spanning at least two subnets). |
| Resource configuration | A pointer to a single resource behind a resource gateway, identified by ARN (for RDS/Aurora), DNS name, or IP address, plus the ports that are reachable. You create one per database. |
| Service network | A logical grouping that resource configurations are associated with. Consumers (like Atlan) connect to the service network once and can then reach every resource associated with it. |
| AWS RAM share | The cross-account sharing mechanism. You share your service network with Atlan's AWS account using AWS Resource Access Manager. |
Atlan connects to the service network, not to individual databases. Once the one-time share is in place, adding a database is a change you make on your side: associate a new resource configuration with the service network, and Atlan can reach it.
You own the VPC Lattice control plane, and Atlan consumes it. The connection is set up once, then shared by all your database connections:
Traffic flows from the connector to the service-network endpoint in the Atlan VPC, through VPC Lattice to your resource gateway, then to your database. The resource gateway performs source NAT, so your database sees connections from the gateway. Atlan opens each connection, and replies return on it.
- DNS propagates automatically. Once the association is complete, VPC Lattice advertises each resource's DNS name privately into the Atlan VPC. Connectors use the real database hostname and native port (for example,
mydb.cluster-xxxx.us-east-2.rds.amazonaws.com:5432). A database you add to the service network becomes resolvable in Atlan with no action on Atlan's side. - RDS IAM authentication works. Connectors use the database's genuine hostname, which RDS IAM authentication validates against.
- Overlapping CIDRs between your network and Atlan's are fine. VPC Lattice doesn't route on your VPC address space the way peering does.
Before you begin
Prerequisites
- Access to the AWS account and VPC where your database resides, with IAM permissions to create a VPC resource gateway, a resource configuration, and an AWS RAM resource share.
- Atlan's AWS account ID and your tenant's region. See Atlan's private network values. The service network must be in your tenant's region.
- Database details: the RDS/Aurora ARN (or DNS name or IP address for other sources) and the ports Atlan needs to reach.
- For an ARN-type resource configuration, the database must not be publicly accessible. AWS doesn't permit resource configurations for publicly accessible RDS clusters.
Information to share with Atlan
| Detail | Example / notes |
|---|---|
| Service network name, ID, and ARN | sn-… / arn:aws:vpc-lattice:<region>:<account>:servicenetwork/sn-… |
| Confirmation the AWS RAM share is created | Targets Atlan's account ID, external sharing enabled, same region as your tenant |
| Per database: resource identifier | ARN, DNS name, or IP |
| Per database: engine and port | PostgreSQL 5432, MySQL 3306 |
| Availability Zones used by your resource gateway | for example usw2-az1, usw2-az2 |
| IAM role ARN and external ID | If using a cross-account IAM role or RDS IAM auth |
| Which Atlan tenant | Production or non-production, each needs its own endpoint |
Set up VPC Lattice connectivity
Step 1: Create 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 the VPC where the database lives.
- Select subnets in at least two Availability Zones with free IP addresses. The gateway consumes IPs from them.
- Attach a security group to the gateway. It governs what the gateway can send to your database.
You need one resource gateway per VPC, regardless of how many databases that VPC contains.
Step 2: Create resource configuration for each database
- Choose the resource type: ARN (for a non-public RDS or Aurora database), DNS (any TCP service reachable by domain name), or IP (any TCP service reachable by IPv4/IPv6 address within the VPC).
- Select the resource gateway you created in Step 1.
- Specify the protocol (TCP) and the ports Atlan needs to reach, for example,
5432for PostgreSQL or3306for MySQL.
Step 3: Allow resource gateway to reach your database
Add an inbound rule to your database's security group that permits traffic from the resource gateway (reference the gateway's security group, or its subnet ranges) on the database port. Because the resource gateway performs source NAT, the database permits only the gateway, not Atlan's IP ranges. The gateway's own security group needs an outbound rule to the database on the same port.
For the ranges this rule doesn't need, see the security group note on Resource gateway.
The default permit-all outbound rule is enough for return traffic. If you restrict outbound rules, permit return traffic to the resource gateway.
Step 4: Associate with service network and share with Atlan
- Create a VPC Lattice service network, commonly in a central networking account. Consider one service network per environment, for example, one for staging and one for production.
- Associate your resource configurations with the service network.
- In AWS RAM, create a resource share: resource type Service network; principal: Atlan's AWS account ID; enable Allow sharing with external accounts.
The RAM share grants Atlan access only to the shared service network.
After creating the share, check in AWS RAM that it shows as active and lists Atlan's account as a principal. A share that fails to save, or targets the wrong account ID, is a common cause of a stalled setup.
Step 5: Send details to Atlan
Raise a support request with the details in Information to share with Atlan.
After you send details
Atlan accepts the RAM share, creates a service-network VPC endpoint in your tenant's VPC, and waits for it to reach Available and for private DNS to propagate. Atlan then checks TCP reachability to each database and the authentication, and asks you to validate one connection from the Atlan UI. Connectors use the databases' real hostnames on native ports.
To add databases later, see Manage private connectivity.
Limitations and considerations
- TCP only, Layer 4 only. Resource gateways carry TCP traffic. UDP-based protocols and Layer 7 routing (path- or header-based rules) aren't supported.
- Same region as your tenant. To reach a database in another region, extend your VPC Lattice deployment into the tenant's region, or see AWS cross-region.
- ARN-type configurations cover RDS and Aurora. Other sources use DNS- or IP-type resource 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.
- Kafka. For Amazon MSK or self-managed Kafka, every broker's advertised listener must be resolvable and fronted, not just the bootstrap address.
- No overlapping CIDRs within your service network. VPC Lattice can't route correctly when several VPCs associated with the same service network share an address space. Keep those VPCs' CIDRs distinct, or split them across service networks.
- Quotas. A service network supports 500 resource configurations by default, adjustable to 1,000 through an AWS quota increase.
- IP space on both sides. Resource gateways and service-network endpoints consume IP addresses from their subnets. Endpoint creation fails when a subnet is nearly exhausted.
- AWS only. For sources in other clouds, see Cross-cloud connectivity.
Troubleshooting
For setup errors with VPC Lattice, see VPC Lattice setup errors.
See also
- Manage private connectivity: add databases to the service network.
- Compare AWS patterns: how the AWS patterns differ.