You need to guarantee no resources are ever created outside eu-west-1 and eu-central-1 across the org. What is the design and the pitfalls?
AdvancedScenarioIAM, Organizations and Multi-Account
Answer
Situation read → Region restriction is an SCP job, but global services make a naive deny break things.
What I'd do →
- Write an SCP with
DenyandNotActionlisting global services (IAM, Organizations, Route 53, CloudFront, Support, STS) - Condition
StringNotEqualsonaws:RequestedRegionfor the two allowed regions - Add exception for control-plane roles such as the Control Tower execution role via
ArnNotLikeonaws:PrincipalARN - Apply to a test OU first and watch CloudTrail for denied calls
Why → Using Action: * without carving out global endpoints in us-east-1 breaks IAM, billing and CloudFront calls.
Interview tip → Mention opt-in regions and that the CloudFront and ACM-for-CloudFront certificate must live in us-east-1.
More on IAM, Organizations and Multi-Account
A developer needs read-only access to one S3 bucket from their laptop. How do you grant it without creating long-lived access keys?BeginnerAn EC2 application needs to write to DynamoDB. Where do the credentials come from?BeginnerSecurity wants to know who deleted a production S3 bucket yesterday. How do you find out?BeginnerYou must stop anyone in a member account from disabling CloudTrail, even account admins. What do you use?BeginnerA cross-account role assumption fails with AccessDenied even though the target role trusts the source account. What do you check?IntermediateDesign access for a CI pipeline in GitHub Actions to deploy to AWS without storing AWS keys in GitHub.Intermediate