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
已提问 10 个月前408 查看次数
2 回答
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
专家
已回答 10 个月前
profile picture
专家
已审核 10 个月前
  • 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
专家
kentrad
已回答 10 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则