Sharing Resources Securely with AWS Resource Access Manager
This lesson explains how AWS Resource Access Manager (AWS RAM) shares resources while the owner keeps control, avoiding both duplicated resources and broad cross-account permissions.
Learning outcomes
After completing this lesson, you will be able to:
- Describe how resource sharing works.
- Identify commonly shared resources.
- Prevent sharing outside the organisation.
How sharing works
Many organisations centralise network and other shared resources in one account, for example transit gateways, subnets or Route 53 Resolver rules, and need other accounts to use them without copying them or opening broad cross-account access. AWS Resource Access Manager (RAM) shares supported resources with other accounts, while the owning account keeps control. When sharing within an organisation is enabled, shares with accounts or OUs are accepted automatically. The following list describes how sharing works.
- Resources are shared with specific accounts, OUs or the whole organisation.
- The owner keeps control and can revoke sharing at any time.
- Managed permissions define what participants may do with each resource type.
How RAM sharing works
Commonly shared resources
AWS Resource Access Manager (RAM) shares resources from one account with others, so a central team can own security-critical infrastructure while workload accounts use it. Sharing VPC subnets creates shared VPCs, in which the network team controls routing and egress while application teams launch resources. Shared transit gateways centralise routing and segmentation between VPCs. Sharing Resolver rules, Route 53 Profiles and DNS Firewall rule groups keeps DNS controls consistent. A shared AWS Private CA gives the whole organisation one certificate hierarchy. Shared Network Firewall policies and prefix lists keep network rules consistent. The following table summarises these resources.
| Resource | Security relevance |
|---|---|
| VPC subnets (shared VPCs) | Central control of network, routing and egress |
| Transit gateways | Central routing and segmentation |
| Resolver rules, Route 53 Profiles, DNS Firewall rule groups | Consistent DNS controls |
| AWS Private CA | One certificate hierarchy for the organisation |
| Network Firewall policies, prefix lists | Consistent network rules |
Sharing with RAM
Preventing external sharing
Sharing outside the organisation can be disabled in RAM, and an SCP denying shares that allow external principals makes the setting impossible to bypass. IAM Access Analyzer external access findings confirm that nothing is shared beyond the zone of trust.
The following diagram lists the controls that keep AWS RAM shares inside the organisation and the purpose of each.

Preventing sharing outside the organisation
RAM makes sharing easy, including, by mistake, with external accounts. The organisation disables external sharing in RAM, and an SCP enforces it so no account can create such a share:
{
"Version": "2012-10-17",
"Statement": [
{ "Sid": "NoExternalRamShares", "Effect": "Deny",
"Action": ["ram:CreateResourceShare", "ram:UpdateResourceShare"], "Resource": "*",
"Condition": { "Bool": { "ram:RequestedAllowsExternalPrincipals": "true" } } }
]
}Access Analyzer external access findings confirm that nothing is shared beyond the zone of trust, and declarative policies cover the related path of public AMI and snapshot sharing.
How is sharing restricted to accounts within the organisation?
Show answer
With the RAM setting that allows only organisation sharing, or an SCP.
Exam Tips
Remember for the exam
- When workload accounts use central VPC subnets, share the subnets with AWS RAM.
- To allow sharing only within the organisation, use the RAM setting or an SCP.
- Share a Private CA across accounts with RAM.
- The resource owner keeps control and can revoke a share.
- Use Access Analyzer to confirm nothing is shared externally.