Lesson 2 of 4 AWS Organizations, Control Tower and IAM Identity Center

Applying Service Control Policies and Other Organization Policies

This lesson explains how organisation policies apply central controls to accounts, with SCPs the most important for security and tag, backup and declarative policies standardising other settings.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain how SCPs limit permissions.
  • Describe resource control policies.
  • Use tag, backup and declarative policies.

Service control policies

An SCP defines the maximum permissions for IAM users and roles, including the root user, in the member accounts it applies to. Because SCPs never grant permissions, an action is allowed only if both the SCPs and the account's IAM policies allow it. The default FullAWSAccess SCP allows everything, and organisations add deny list statements on top of it, which is easier to maintain than an allow list. SCPs support the full IAM policy language, including conditions, resources and NotAction. They apply to every account below the OU where they are attached and do not apply to the management account or to service-linked roles.

Typical SCP statements deny leaving the organisation, disabling CloudTrail, GuardDuty or Config, creating IAM users or access keys, using Regions outside an approved list, changing specific security roles, launching instances without IMDSv2, or using unapproved services.

{
  "Version": "2012-10-17",
  "Statement": [{
    "Sid": "DenyOutsideApprovedRegions",
    "Effect": "Deny",
    "NotAction": ["iam:*", "organizations:*", "sts:*", "support:*", "cloudfront:*", "route53:*",
                  "budgets:*", "health:*", "trustedadvisor:*", "waf:*", "globalaccelerator:*"],
    "Resource": "*",
    "Condition": {
      "StringNotEquals": {"aws:RequestedRegion": ["eu-west-1", "eu-central-1"]},
      "ArnNotLike": {"aws:PrincipalArn": "arn:aws:iam::*:role/OrgBreakGlass"}
    }
  }]
}
Troubleshooting scenario

SCP effects

Exam skills 4.1.3 · 4.1.2

Diagnose the effect of service control policies.

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

Resource control policies

Resource control policies (RCPs) set the maximum permissions available on resources in member accounts, whoever the caller is, for supported services such as S3, STS, KMS, SQS and Secrets Manager. They are used to build a data perimeter, for example denying access to any S3 bucket in the organisation from principals outside the organisation, regardless of individual bucket policies. The following table compares SCPs and RCPs.

SCP
LimitsWhat principals in member accounts can do
Typical useRegion restrictions, protect security services, deny risky actions
Grants accessNever
Applies to management accountNo
RCP
LimitsWhat can be done to resources in member accounts
Typical useBlock external access to buckets, keys and queues
Grants accessNever
Applies to management accountNo

The following diagram shows an RCP blocking an outside principal while allowing an inside one.

A resource control policy as a data perimeter. An RCP attached to the organisation denies access to any S3 bucket in it from principals outside the organisation. Even if a bucket policy grants an outside account access, the RCP blocks it, while principals inside the organisation are unaffected.
SCPs limit what your principals can do; RCPs limit what can be done to your resources.

Tag, backup and declarative policies

Tag policies standardise tag keys, capitalisation and allowed values and report non-compliant resources; with enforcement for chosen resource types, they prevent non-compliant tag values. Backup policies deploy AWS Backup plans to accounts. Declarative policies enforce a desired configuration for a service, such as requiring IMDSv2 defaults, blocking public sharing of AMIs and snapshots, or blocking VPC public access, and keep it enforced even when new APIs are added. AI services opt-out policies control data use by AWS AI services.

Match the pairs

Organisation policy types

Exam skills 4.1.3 · 4.1.5

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

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

Protecting security services

An administrator in a workload account disabled GuardDuty to reduce costs. To prevent this, the security team attaches an SCP to the Workloads OU that denies guardduty:DeleteDetector, guardduty:DisassociateFromMasterAccount, cloudtrail:StopLogging, cloudtrail:DeleteTrail, config:StopConfigurationRecorder and organizations:LeaveOrganization, with an exception for the security team's automation role. Workload administrators keep full permissions otherwise.

Check yourself

Which condition key restricts actions to approved Regions?

Show answer

aws:RequestedRegion, with an exemption for global services.

Exam Tips

Remember for the exam

  • SCPs limit maximum permissions in member accounts and never grant access.
  • SCPs do not apply to the management account or service-linked roles.
  • Deny outside approved Regions with aws:RequestedRegion, exempting global services.
  • RCPs restrict access to resources, for data perimeters.
  • Tag policies standardise tags; declarative policies enforce service configurations.