AWS Service Control Policies (SCPs) & Guardrails
Advanced · 45 minutes · 100 points
In this advanced hands-on lab, you will simulate and work with AWS Service Control Policies (SCPs) and organizational guardrails using the AWS CLI and local JSON policy authoring. You will create SCP policy documents, validate their structure, simulate permission boundaries, and build a layered guardrail strategy — all using realistic AWS policy syntax. Since SCPs require AWS Organizations (not available in all environments), this lab focuses on authoring, linting, and simulating SCP logic locally while using the AWS CLI policy simulator patterns.
What you’ll learn
- Author valid AWS SCP JSON documents that deny specific high-risk actions across an organization
- Simulate and reason about the interaction between SCPs and IAM policies using deny-override logic
- Build a multi-layered guardrail strategy by composing multiple SCP files targeting different threat surfaces
- Validate SCP policy structure and identify common misconfigurations using CLI-based checks
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 4 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: amazon/aws-cli:latest
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
- Basic understanding of AWS IAM and JSON policy syntax
Topics: aws, scp, service-control-policies, organizations, guardrails, iam, security, compliance, policy-as-code, cloud-governance
Create a free account to start this lab.