Andremoniy
Andremoniy

Reputation: 34900

Deny creation of new resources via Service Control Policy

Is it possible to create such a SCP (Service Control Policy) and attach it to account which denies any new resources (infrastructure) launching within this account? Assuming that the account is part of AWS Organizations.

The question arises from the following confusions:

Upvotes: 2

Views: 5849

Answers (1)

Andremoniy
Andremoniy

Reputation: 34900

Yes, it is possible to do.

  1. SCP can contain explicit deny rules, for example deny creation of any EC2-related instances and resources:

        "Version": "2012-10-17",
        "Statement": [
            {
                "Sid": "Statement1",
                "Effect": "Deny",
                "Action": [
                    "ec2:Create*"
                ],
                "Resource": "*"
            }
        ]
    }
    
  2. Any SCP can be attached to:

    • Accounts
    • Organizational units
    • Root account

Upvotes: 2

Related Questions