Lesson 1 of 7 Multi-Account Strategy and Governance

Choosing and Writing AWS Organizations Policies

This lesson explains the AWS Organizations policy types, each of which controls something different. Professional-level questions describe a governance requirement and expect you to choose the right type and write its logic correctly.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe the management account, member accounts, the root and organisational units.
  • Choose the policy type that matches a governance requirement.
  • Apply the rules of SCPs that are tested repeatedly.
  • Explain how authorisation and management policies inherit differently.
  • Build an identity perimeter with a resource control policy.

The building blocks of an organisation

AWS Organizations groups many AWS accounts under central management. The account that creates the organisation becomes the management account: it pays the bills for every account through consolidated billing, creates and invites accounts, and attaches policies. Every other account is a member account. Because each account is a hard boundary for resources, permissions and quotas, organisations use many accounts, separated by workload and environment, so that a mistake or compromise in one account does not spread to the others.

Accounts are arranged in a tree. At the top is the root, and below it are organisational units (OUs), which can be nested to five levels below the root and hold accounts. A policy attached to the root, an OU or an account applies to everything beneath it, which is what makes OUs the main tool of governance: an account placed in the Prod OU receives the Prod guardrails without any configuration of its own. An organisation can run with consolidated billing features only or with all features; the policy types in this lesson, and the integrations with other services described later in the module, require all features.

Choosing a policy type

AWS Organizations has several policy types, six of which this lesson covers, and choosing between them depends on what must be controlled. A service control policy (SCP) sets the maximum permissions of IAM users and roles in member accounts, including their root users. Typical SCPs stop accounts leaving the organisation, stop anyone disabling CloudTrail, GuardDuty or Config, restrict Regions, and require encryption or tags. A resource control policy (RCP) sets the maximum permissions on resources such as S3 buckets, KMS keys, SQS queues, STS roles and secrets, whoever is calling. That makes it the tool for data perimeters, such as allowing only principals in your organisation, and for requiring TLS.

A declarative policy sets a service's configuration directly, such as blocking public sharing of AMIs and snapshots, enabling VPC Block Public Access or defaulting to IMDSv2. Because it does not depend on denying particular API calls, it stays effective as new APIs appear. Tag policies standardise tag keys and values, backup policies deploy AWS Backup plans, and AI services opt-out policies stop AWS AI services using your content. The following table summarises the policy types.

PolicyControlsTypical uses
Service control policy (SCP)Maximum permissions of IAM users and roles (including member root users)Deny leaving the organisation; deny disabling CloudTrail, GuardDuty or Config; restrict Regions; require encryption or tags
Resource control policy (RCP)Maximum permissions on resources (S3, KMS, SQS, STS, Secrets Manager), whoever the callerData perimeters: only principals in your organisation; require TLS
Declarative policyA desired service configuration, enforced at service levelBlock public AMI and snapshot sharing; VPC Block Public Access; IMDSv2 by default. Stays effective as new APIs appear
Tag policyAllowed tag keys and valuesStandardise and enforce tags
Backup policyAWS Backup plansDeploy backups to accounts
AI services opt-out policyUse of content by AI servicesStop AWS AI services using your content

The following diagram shows what each of the three authorisation and configuration policy types limits.

What each Organizations policy type limits. A service control policy caps what your principals may do, on any resource. A resource control policy caps access to your resources, whoever the caller is. A declarative policy sets a service's configuration directly, so it holds even for API calls added later.
The SCP sits on the path out of your principals and the RCP on the path into your resources, which is why the two are complementary rather than interchangeable.
Match the pairs

Which policy type?

Exam skills 2.3.4 · 2.3.1

Match each organisation-wide requirement with the policy type that meets it.

Log in to try this activity Interactive activities are free with an account.

SCP rules to remember

Several properties of SCPs are tested repeatedly. SCPs never grant permissions: they define the maximum that IAM policies in the account can grant, so a principal still needs an IAM allow. They do not affect the management account, which is why it should hold no workloads, and they do not affect service-linked roles, which AWS services use on the customer's behalf. They do apply to the root user of member accounts.

SCPs that restrict Regions with the aws:RequestedRegion condition must exempt global services, such as IAM, Organizations, CloudFront, Route 53 and AWS Support, usually with a NotAction element, because their API calls are made to us-east-1 and would otherwise be denied in every other Region. Roles that must keep working when a restrictive SCP is in place, such as break-glass and network automation roles, are exempted with a condition on aws:PrincipalArn. An SCP is limited in size, so large rule sets are split across several policies, up to five per root, OU or account.

True or false

SCP rules

Exam skills 2.3.4

Check the rules that decide what an SCP can and cannot do.

Log in to try this activity Interactive activities are free with an account.

Inheritance

Policies are attached to the root, to OUs or to accounts, and they inherit down the tree, but the two families of policy inherit differently. For the authorisation policies, SCPs and RCPs, an action must be allowed at every level from the root to the account, and an explicit deny at any level wins. The default FullAWSAccess policy attached at every level provides the allows, so deny-list policies can be added anywhere. Removing FullAWSAccess from one OU without attaching an allow list denies everything in that OU.

The management policies, such as tag, backup and AI services opt-out policies, are merged instead: the policies inherited from parents and those attached to the account are combined into an effective policy, using inheritance operators that assign, append or remove values, and child control operators that decide whether lower levels may change what a parent set. The effective policy for any account can be viewed in the console, which is how teams check what actually applies. New policies of any type are tested in a Policy Staging OU before being attached to production OUs.

The following diagram contrasts the two inheritance models with an example of each.

How Organizations policies inherit. For SCPs and RCPs, an action must be allowed at every level from the root to the account and a deny at any level wins, so the effective ceiling is everything allowed by FullAWSAccess minus every deny on the path. Management policies such as tag policies are merged instead: values assigned at the root and OU are combined with values appended at the account.
The account and OU values are illustrative. Whether an account may append values depends on the child control operators set by its parents.
Scenario questions

Inherited SCPs

Exam skills 2.3.4

Work out the effective permissions when SCPs are inherited through OUs.

Log in to try this activity Interactive activities are free with an account.
Worked example

Building an identity perimeter with an RCP

A bank's security team must guarantee that data in S3, KMS keys, queues and secrets can never be read by an identity outside the organisation, even if a developer writes a bucket policy that accidentally grants public or cross-account access. An SCP cannot help, because SCPs limit your principals, not outsiders who call your resources. A resource control policy attached at the root applies to every supported resource in every member account, whoever the caller is:

{
  "Version": "2012-10-17",
  "Statement": [{
    "Sid": "EnforceOrgIdentities",
    "Effect": "Deny",
    "Principal": "*",
    "Action": ["s3:*", "sqs:*", "kms:*", "secretsmanager:*", "sts:AssumeRole"],
    "Resource": "*",
    "Condition": {
      "StringNotEqualsIfExists": { "aws:PrincipalOrgID": "o-a1b2c3d4e5" },
      "BoolIfExists": { "aws:PrincipalIsAWSService": "false" }
    }
  }]
}

The aws:PrincipalIsAWSService condition keeps AWS services that act with their own service principals (for example CloudTrail writing to a log bucket) working. Real deployments add narrow exceptions, such as a partner account that must read one bucket, by excluding that account or a tagged resource from the condition.

The same bank also wants to make sure no one can ever share an AMI publicly. That is a configuration requirement rather than a permission requirement, so it belongs in a declarative policy, which keeps working even when AWS adds new APIs that could change the setting:

{
  "ec2_attributes": {
    "image_block_public_access": {
      "state": { "@@assign": "block_new_sharing" }
    }
  }
}

Choosing between the policy types is the real skill: SCP for what your people may do, RCP for who may touch your resources, declarative policy for how a service must be configured.

Check yourself

Which Organizations policy type keeps a service configuration, such as blocking public sharing of AMIs, in force across accounts?

Show answer

A declarative policy. It sets the desired configuration of a service across accounts and keeps it enforced, including for new APIs and features, instead of denying individual actions as an SCP does.

Exam Tips

Remember for the exam

  • To limit what principals in member accounts can do, use an SCP.
  • To limit who can access resources, whoever the caller is, use an RCP.
  • To enforce a service setting durably across all accounts, use a declarative policy.
  • SCPs never affect the management account or service-linked roles, but they do apply to member root users.
  • SCPs that restrict Regions must exempt global services such as IAM and Organizations.
  • SCPs and RCPs need an allow at every level; management policies merge into an effective policy.
  • To standardise tag keys and values, use tag policies.