Concept · Builds on CLF-C02
Service control policies
Organization guardrails: they cap what every principal in the member accounts can do.
You know from Cloud Practitioner
- SCPs set the maximum permissions for accounts in an organization.
- An SCP never grants access. An IAM policy must still allow the action.
- SCPs do not apply to the management account.
S3
- SCP allows
- S3 and EC2
- Result
- S3 works
S3
- SCP allows
- EC2 only
- Result
- Denied
Nothing
- SCP allows
- Everything
- Result
- Denied
| IAM policy allows | SCP allows | Result |
|---|---|---|
| S3 | S3 and EC2 | S3 works |
| S3 | EC2 only | Denied |
| Nothing | Everything | Denied |
Block unused Regions
Deny when aws:RequestedRegion is not approved.
Protect CloudTrail
Deny stopping or deleting trails.
Stop leaving the organization
Deny organizations:LeaveOrganization.
Limit root users
Deny all actions for member-account root.
Require encryption
Deny creating unencrypted volumes.
Keep security tools on
Deny turning off GuardDuty or Config.
1 / 2
Block unused Regions
Deny when aws:RequestedRegion is not approved.
Protect CloudTrail
Deny stopping or deleting trails.
Stop leaving the organization
Deny organizations:LeaveOrganization.
Limit root users
Deny all actions for member-account root.
Require encryption
Deny creating unencrypted volumes.
2 / 2
Keep security tools on
Deny turning off GuardDuty or Config.
What it is
SCPs attach to the root, to an OU or to an account. A request must be allowed at every level on the path, so the effective permission is the overlap of all of them. They apply to every IAM user and role in a member account, including the account’s root user. They do not apply to the management account, and they do not affect service-linked roles.
There are two strategies. A deny list keeps the default FullAWSAccess policy and adds Deny statements for what you forbid. It is the easy one and the one AWS recommends. An allow list removes FullAWSAccess and names the services allowed. It is stricter and needs more upkeep.
Remember
- SCPs limit. They never grant.
- The effective permission is the overlap of every SCP from the root to the account.
- They affect member-account principals only, root users included. The management account is exempt.
- Deny list: keep FullAWSAccess and add Denies. Allow list: remove it and list what is allowed.
- Block Regions with the aws:RequestedRegion condition.
Remember
- Protect CloudTrail by denying StopLogging and DeleteTrail.
On the exam
- “Prevent every account in the organization from using unapproved Regions, even administrators” points to an SCP.
- “Stop anyone from disabling CloudTrail” points to an SCP that denies cloudtrail:StopLogging.
- “An SCP allows S3, but users cannot read S3” means the IAM policy still has to allow it.
Do not mix it up with
- Policy evaluation and conditionsThe order AWS checks policies in, and the condition keys that narrow an Allow.
AWS OrganizationsUse many accounts as walls between workloads, and run shared services from delegated administrator accounts.
AWS Control TowerA ready-made multi-account landing zone with guardrails, plus a factory that creates compliant accounts.
In this task · 1.1
- Shared responsibility model
- Root user and MFA
- Users, groups and roles: authorization model
- Policy evaluation and conditions
- Least privilege in practice
- STS, role switching and cross-account access
- Resource-based policies
- Service control policies
Organizations
Control Tower
IAM Identity Center
- Federating identities into IAM
Directory Service
RAM
- Regions and AZs as the HA building block
- Placing resources