RESOURCE AND IAM policy with SCP

0

In case if SCP is allowed and Resouce policy is allowed final decision is allowed.

What happens if SCP is not present atall . What decison is there if Resouce policy is allowed ? I guess similar decision will be there in case of IAM policy as well without SCP.

awesam
asked 9 months ago392 views
2 Answers
1

When you create AWS organization, by default FullAWSAccess SCP gets created and attached to all accounts in an organization and this can not be edited but can be detached from any of the member accounts. This can only be detached if there is one other SCP already attached to that account.

Here is the content of that default SCP FullAWSAccess:

 {
   "Version": "2012-10-17",
   "Statement": [
     {
       "Effect": "Allow",
       "Action": "*",
       "Resource": "*"
     }
   ]
 }

Any action that isn't explicitly allowed by an SCP is implicitly denied and can't be delegated to users or roles in the affected accounts.

Reference: AWS SCP Inheritance

SCP doesn't grant anything but it's a guardrail, which is used to allow everything(Doesn't grant) and then deny specific resources/services based on condition.

Refer SCP permissions effect for additional details.

If you haven't already gone through this Policy Evaluation Logic doc and Permissions Chart, which you'd find super helpful to see how does this evaluation work.

Hope you find this useful.

Abhishek

profile pictureAWS
EXPERT
answered 9 months ago
profile picture
EXPERT
reviewed 9 months ago
  • Do you have any additional question, please feel free to comment. Happy to help.

0

This chart explains how these policies are evaluated, Determining whether a request is allowed or denied within an account.

profile pictureAWS
EXPERT
kentrad
answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions