camzabriskie.com

Primers › Networking

AWS Resource Access Manager (RAM)

11 / 11 updated Oct 20, 2026 AWS only
On this page
  1. A few terms
  2. The problem, with an example
  3. The four pieces
  4. Invitations or no invitations
  5. What people share
  6. Gotchas
  7. Why not just attach a resource policy?
  8. The formula
  9. References

A company with ten AWS accounts often needs the same thing in all of them: one network hub, one set of DNS rules, one certificate authority. Building ten copies means ten things to configure, patch, and keep identical. AWS Resource Access Manager (RAM) removes the copies. You create the resource once in one account and lend it to the others, and you stay the owner [1].

This builds on AWS VPCs, subnets, and routing. Most of the examples here are networking resources, though RAM isn’t limited to networking.

A few terms

The problem, with an example

Account A (the owner) has a transit gateway, a hub that routes traffic between networks. Accounts B and C each have a VPC and need to connect to it. Without RAM, they can’t see A’s gateway at all. With RAM, A shares the gateway with B and C, and it shows up in their consoles and API results as if it were their own [1].

Teal arrows are the share. Inside an organization with sharing on, access starts at once. An outside account must accept an invitation first. Either way, A keeps ownership and the managed permission caps what B can do.

The four pieces

A resource share is the object that does the lending. You create one by choosing four things [1]:

PieceWhat it isExample
Name and RegionA label, and the Region the share lives inshared-network, us-east-2
ResourcesWhat you’re lending. You must own them.one transit gateway, two subnets
PrincipalsWho can use themaccount B, an OU, or the whole organization
Managed permissionWhat the principals may do with each resource typethe AWS-written permission for transit gateways

The managed permission is a ceiling, not a grant. For a principal in a different account, it sets the maximum that roles and users there can be given. The consumer account’s administrators still have to allow individual roles and users through ordinary IAM policies, and those policies can’t go beyond the ceiling [1]. AWS writes default managed permissions for the common cases, and you can write your own customer managed permission to tighten them [2].

Sharing doesn’t change the resource inside the owning account: its permissions and quotas stay as they were [2].

Invitations or no invitations

How a consumer gets access depends on whether the owner and consumer share an organization. Sharing with a single account by ID works with or without Organizations [2].

Consumer isWhat happens
In the same organization, and organization sharing is onAccess starts immediately. No invitation is sent.
Outside the organizationAlways an invitation. Access starts only after the consumer accepts it.

Turning organization sharing on is a one-time step. It must be done from the management account, through the RAM console or aws ram enable-sharing-with-aws-organization, and the organization must have all features enabled [2]:

aws ram enable-sharing-with-aws-organization

Use RAM’s own command here. Enabling trusted access from the Organizations side instead doesn’t create the service-linked role RAM needs, and organization sharing then won’t work [2].

Once it’s on, you can share with the whole organization or an OU without listing account IDs. Membership is live: a new account that joins the OU gets the share automatically, and an account that leaves loses it [2]. You can only add your own organization and its OUs as principals, never someone else’s, though individual outside accounts are allowed [2].

What people share

Each service decides which of its resources can be shared. These are the common ones [3]:

ResourceServiceWhy lend it
Transit gatewaysAmazon VPCOne routing hub that many accounts’ VPCs attach to
SubnetsAmazon VPCSeveral accounts launch resources into one central VPC. Subnets can be shared only within an organization.
Prefix listsAmazon VPCOne list of CIDR blocks that many accounts’ security groups and route tables refer to
Resolver rulesAmazon Route 53One set of DNS forwarding rules, so each account doesn’t redefine them
Network Firewall policiesAWS Network FirewallOne firewall policy applied by many accounts
Private certificate authoritiesAWS Private CAOne internal CA issues certificates for many accounts
Capacity reservationsAmazon EC2Reserved compute capacity that any listed account can launch into
Image Builder images and recipesEC2 Image BuilderOne approved base image across the organization
License configurationsAWS License ManagerOne pool of software licenses tracked across accounts
Data Catalog databases and tablesAWS GlueQuery the same data from several accounts

The full list is long and grows over time, so check it before assuming something can’t be shared. Some types also have prerequisites, and the share fails if they aren’t met [3].

Gotchas

Why not just attach a resource policy?

Some services let you grant another account access with a resource-based policy instead. RAM adds three things over that: you can name an organization or OU instead of listing every account ID, consumers see shared resources in their own console as if they were local, and the owner can see who has access to each resource [1].

The formula

RAM = create once, lend to many. The owner builds the resource and keeps it. A resource share names the resource, the borrowers, and a permission ceiling, and the borrowers use it as if it were theirs.

References

Show all 3 sourcesHide sources
  1. [1] ↩ a b c d e f g Amazon Web Services, “What is AWS Resource Access Manager?” AWS RAM User Guide. Accessed: Oct. 20, 2026. [Online]. Available: https://docs.aws.amazon.com/ram/latest/userguide/what-is.html
  2. [2] ↩ a b c d e f g h i j k l Amazon Web Services, “Sharing your AWS resources,” AWS RAM User Guide. Accessed: Oct. 20, 2026. [Online]. Available: https://docs.aws.amazon.com/ram/latest/userguide/getting-started-sharing.html
  3. [3] ↩ a b Amazon Web Services, “Shareable AWS resources,” AWS RAM User Guide. Accessed: Oct. 20, 2026. [Online]. Available: https://docs.aws.amazon.com/ram/latest/userguide/shareable.html

Every source cited across the primers is collected on one page.