Skip to content

// diagrams › aws

One Aurora database, shared across accounts with a VPC resource gateway

One Aurora database reached from two AWS accounts, without VPC peering, a Transit Gateway or a load balancer: how resource gateways, resource configurations and resource endpoints fit together, even with overlapping CIDRs.

Opens a copy in the editor, in a new tab, ready to change. No account needed.

AWS diagram: a Data platform account's VPC (10.0.0.0/16) holds an Aurora PostgreSQL cluster behind a resource gateway with an ARN-type resource configuration, shared through AWS RAM. The Payments account (also 10.0.0.0/16) reaches it from ECS on Fargate through a resource VPC endpoint with Private DNS; the Reporting account (172.16.0.0/16) reaches it from Lambda through a service network endpoint and a VPC Lattice service network.

What’s in this diagram

services and parts

  • Payments service (ECS on Fargate)
  • Resource endpoint
  • Nightly reports (Lambda)
  • Service network endpoint
  • VPC Lattice service network
  • Resource gateway
  • orders-db (Aurora PostgreSQL)
  • Resource configuration (ARN)
  • AWS RAM share (the data account's)

groups

  • AWS Cloud · one Region
  • Payments account
  • Payments VPC 10.0.0.0/16
  • Reporting account
  • Reporting VPC 172.16.0.0/16
  • Data platform account
  • Data VPC 10.0.0.0/16 (same range as Payments)

Key points

  • A resource gateway is a set of network interfaces in the provider's VPC: the way in. A resource configuration says which resource behind it is shared, on which ports.
  • Consumers reach it through a resource VPC endpoint, or through a VPC Lattice service network. Overlapping CIDRs don't matter, because the consumer only talks to its own endpoint.
  • For Amazon RDS, an ARN-type resource configuration keeps the database's usual DNS names working on the consumer side with Private DNS.
  • It is one-way and TCP-only: connections start from the consumer, and the database sees the gateway's IP addresses.

The whole story, step by step: Share an RDS database across VPCs with a PrivateLink resource gateway.

Your diagram is one sentence away.

Start drawing, free

No account needed to start.