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.

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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ