Home › Forums › AWS › AWS Certified Solutions Architect Professional › Fundamental Error in Question on SCP Allow Inheritance › Reply To: Fundamental Error in Question on SCP Allow Inheritance
-
@JR, I’d kindly ask you to replicate this behavior. Let’s consider this example scenario.
Root
|
|----- Sandbox --> Account AOn Root, we have FullAWSAccess SCP attached
On Sanudbox OU, we have FullAWSAccess SCP attached (Plus the one inherited from Root)
On Account A, apply the following SCP and detach the FullAWSAccess SCP:
{
"Statement": [{
"Sid": "Statement1",
"Effect": "Allow",
"Action": [
"ec2:*"
],
"Resource": "*"
}]
}Log into account A with a user that has AdministratorAccess managed policy attached and then try creating a bucket. Bucket fails to create with:
User: arn:aws:sts::****:assumed-role/AWSReservedSSO_AWSAdministratorAccess_39b69685aec01e2d/*** is not authorized to perform: s3:CreateBucket on resource: "arn:aws:s3:::test-****" because no service control policy allows the s3:CreateBucket action-
This reply was modified 1 month, 1 week ago by
Jayid.
-
This reply was modified 1 month, 1 week ago by