What SCP guardrails do you apply across an AWS organisation?
IntermediateProductionIdentity, Least Privilege & OIDC for CI
Answer
Common deny-list SCPs:
- Deny leaving the organisation and disabling CloudTrail, GuardDuty, Config, Security Hub
- Deny regions you do not use (with exceptions for global services)
- Deny root user actions in member accounts
- Deny creating IAM users/access keys (force SSO and roles)
- Deny disabling S3 Block Public Access and EBS default encryption
{
"Effect": "Deny",
"Action": ["cloudtrail:StopLogging", "cloudtrail:DeleteTrail", "guardduty:DeleteDetector"],
"Resource": "*",
"Condition": { "ArnNotLike": { "aws:PrincipalArn": "arn:aws:iam::*:role/OrgSecurityAdmin" } }
}
Resource control policies (RCPs, 2024) add org-wide guardrails on resources, such as blocking access from outside your org.
More on Identity, Least Privilege & OIDC for CI
How do you design AWS OIDC trust for GitHub Actions so only production deploys can assume the prod role?IntermediateWhat are the common mistakes in OIDC trust policies for CI?AdvancedHow do you configure OIDC for GitLab CI to AWS?IntermediateHow do you get from "everyone has AdministratorAccess" to least privilege without breaking things?AdvancedHow do you implement just-in-time (JIT) privileged access for production?IntermediateHow do you design IAM for a multi-account AWS landing zone?Beginner