Sharing Infrastructure Across Accounts with AWS Resource Access Manager
This lesson explains how AWS Resource Access Manager (AWS RAM) lets one account own a resource while other accounts, OUs or the whole organisation use it, so shared infrastructure is built once and governed centrally.
Learning outcomes
After completing this lesson, you will be able to:
- Describe how resource shares work.
- Identify commonly shared resources.
- Explain how ownership and responsibility divide in a shared resource.
- Distinguish RAM from resource-based policies and other ways of sharing.
How sharing works
A resource share names the resources being shared, the principals receiving them (accounts, OUs, the whole organisation, or for some resource types IAM roles and users) and the managed permissions that define what those principals may do with them. The owner keeps control: it can add or remove resources and principals at any time, and removing a principal revokes access immediately. Shared resources appear in the participant accounts as if they were local, so participants use them with their normal tools.
When sharing with AWS Organizations is enabled from the management account, shares to the organisation or to OUs are accepted automatically, and accounts that join an OU later receive the share without further action. Shares to accounts outside the organisation require the recipient to accept an invitation, and setting allowExternalPrincipals to false on a share prevents sharing outside the organisation entirely. Customer managed permissions narrow the default managed permission for a resource type, for example letting participants attach to a transit gateway but not modify it.
Commonly shared resources
AWS Resource Access Manager (RAM) lets one account own a resource that many accounts use, which is the basis of many multi-account network designs. Sharing VPC subnets creates shared VPCs, in which workload accounts launch resources into subnets managed centrally. Sharing a transit gateway lets workload accounts attach their VPCs to a hub owned by the networking account. Sharing Route 53 Resolver rules and Route 53 Profiles applies one set of hybrid DNS forwarding rules and DNS settings to every VPC. IPAM pools and managed prefix lists centralise IP address allocation and provide reusable lists of CIDR ranges for security groups and routes.
Security resources are shared the same way: Network Firewall policies and DNS Firewall rule groups apply one policy in many accounts, and a shared AWS Private CA gives the organisation one certificate hierarchy. Aurora DB clusters can be shared for cross-account cloning, and Outposts and Capacity Reservations for shared capacity. The following table summarises the resources.
| Resource | Reason for sharing |
|---|---|
| VPC subnets | Shared VPCs: workload accounts launch resources into centrally managed subnets |
| Transit Gateways | Workload accounts attach their VPCs to a hub owned by the networking account |
| Route 53 Resolver rules and Route 53 Profiles | One set of hybrid DNS forwarding rules and DNS settings applied to every VPC |
| VPC IPAM pools and managed prefix lists | Central IP address allocation and reusable CIDR lists for security groups and routes |
| Network Firewall policies, DNS Firewall rule groups | One security policy applied consistently in many accounts |
| AWS Private CA | One certificate hierarchy for the organisation |
| Aurora DB clusters, Outposts, Capacity Reservations | Cross-account cloning, shared on-premises capacity, shared reserved capacity |
Ownership and responsibility
Sharing separates ownership of a resource from its use. In a shared VPC, for example, the networking account owns and pays for the VPC, subnets, route tables, NAT gateways and endpoints, while each participant account owns and pays for the instances, load balancers and databases it launches and manages its own security groups. Participants cannot modify or delete the shared resource. This division is what makes RAM attractive for governance: the central team controls the shared layer, and workload teams retain autonomy within it.
The following diagram shows how ownership divides in a shared VPC.

RAM compared with other ways of sharing
RAM is one of several ways to give another account access to a resource, and the exam distinguishes them. A resource-based policy, on an S3 bucket, KMS key or SQS queue, grants other accounts access to a resource that remains wholly in the owner's account; the caller uses the owner's resource ARN directly. RAM instead makes the resource appear and be usable in the participant's account, which suits resource types without resource policies, such as subnets, transit gateways and Resolver rules.
A cross-account role requires the caller to switch identity into the owner's account, which suits administrative tasks but not resources that many workloads use continuously. Duplicating the resource in every account avoids sharing altogether but multiplies cost and lets configurations drift apart; sharing keeps one authoritative copy that the central team governs.
How is it shared?
A shared VPC for an OU
The network team owns the production VPCs in a networking account. Application teams in the Workloads/Prod OU should deploy into those subnets without being able to change routes, NAT gateways or network ACLs. RAM shares the subnets with the OU:
# Once, from the management account
aws ram enable-sharing-with-aws-organization
# From the networking account
aws ram create-resource-share --name prod-app-subnets \
--resource-arns arn:aws:ec2:eu-west-1:222222222222:subnet/subnet-0app1 \
arn:aws:ec2:eu-west-1:222222222222:subnet/subnet-0app2 \
--principals arn:aws:organizations::111111111111:ou/o-a1b2c3d4e5/ou-ab12-34cd5678 \
--no-allow-external-principalsParticipants see the shared subnets and launch instances, load balancers, Lambda functions and databases into them. They own and pay for their resources and manage their own security groups, but cannot modify the VPC, subnets or route tables. Because every workload shares the same NAT gateways and interface endpoints, the organisation pays for those once per VPC rather than once per account, which is a frequent cost-optimisation answer. Accounts that later join the OU receive the share automatically.
When sharing with AWS Organizations is enabled, must member accounts accept a RAM share?
Show answer
No. Shares within the organisation are accepted automatically. Invitations are needed only for accounts outside the organisation, or when organisation sharing is not enabled.
Exam Tips
Remember for the exam
- When many accounts deploy into one central VPC, use RAM subnet sharing (a shared VPC).
- To share a Transit Gateway, Resolver rules, IPAM pools or prefix lists with other accounts, use AWS RAM.
- Enable sharing with AWS Organizations so shares to OUs are accepted automatically, including by new accounts.
- Set allowExternalPrincipals to false to prevent sharing outside the organisation.
- In a shared VPC, participants own their resources and security groups but cannot change the network.