Policies and Permissions

Principal Role Policy

Users access their leased accounts through an assumed role. This role also restricts their privileges within their leased account. The policy is defined here. This policy is designed to protect the IAM principal policy and trusts so that DCE can continue to manage the account. Additionaly the policy is designed around services that AWS Nuke supports.

Organizations and Service Control Policies (SCPs)

Implementing DCE in an AWS Organization provides the ability to use SCPs, which can be helpful for ensuring the resilience of your DCE resources. The following SCP is an example policy that contains two statements for protecting your DCE accounts:

  • DenyChangesToAdminPrincipalRoleAndPolicy is designed to prevent anyone other than the AdminRole from modifying the roles and policies used by DCE.
  • DenyUnsupportedServices is designed to allow access to services that are supported by AWS Nuke
    "Version": "2012-10-17",
    "Statement": [
            "Sid": "DenyChangesToAdminPrincipalRoleAndPolicy",
            "Effect": "Deny",
            "NotAction": [
            "Resource": [
            "Condition": {
                "StringNotLike": {
                    "aws:PrincipalARN": "arn:aws:iam::*:role/AdminRole"
            "Sid": "DenyUnsupportedServices",
            "Effect": "Deny",
            "NotAction": [
            "Resource": "*"