By using AWS re:Post, you agree to the Terms of Use
/Service Control Policy for restricting certain write actions to specific regions only/

Service Control Policy for restricting certain write actions to specific regions only

2

We would like to control which services are available for use in which accounts and regions while still being able to review everything:

  • Allow ReadOnly across all services in all regions
  • Allow Write on specified services in certain regions

We are aware of the general policy to restrict actions not in specific regions but this is too restrictive and results in unnecessary confusion when users experience permission errors on various service dashboards.

Thus far we have been unable to construct an SCP, or combination of SCPs, that provide the intended effect given the attachment and size limits.

Is what we are looking for even possible with Service Control Policies alone?

We would like to avoid:

  • Managing this via User/Role Permissions
  • Having "Bypass" Roles as shown in the documented example above.
1 Answers
0

No, you cannot do this via SCPs alone. SCPs don't grant any actions, only allow that certain actions can be granted by identity policies, so you will have to have some identity policies involved.

Another problem you will run in to is that an explicit deny anywhere in the policy evaluation logic will result in the action being denied, even if it is also allowed. This means that if you want any principals in an account to have an action (e.g. write to a specific region), then the SCPs must allow it.

Unless you scope your regions to specific accounts or OUs, you cannot implement what you want with SCPs.

answered a month 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