Skip to main content
IAM Policy Map

AWSDenyAll

No privilege tierAWS managedActivePermissions reviewedShow on mapCompare

Summary

Deny all access.

Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.

Identity

ARN
arn:aws:iam::aws:policy/AWSDenyAll
Default version
v2
Created
Last edited
Services
None

Control-plane actions (0)

By access level: none.

This policy grants no actions in this plane.

Data-plane actions (0)

By access level: none.

This policy grants no actions in this plane.

Excluded and conditional actions

  • * (deny, statement 0): 22528 matching actions

Resource scope and attachment

Resource scope across granted actions: none.

Can be attached: Yes, to users, groups and roles.

Why this tier

  • Grants no permissions: the effective allow set is empty.

Guidance

Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.

Same domain

Frequently asked questions

Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.

Policy JSON

Download policy.json

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "DenyAll",
      "Effect": "Deny",
      "Action": [
        "*"
      ],
      "Resource": "*"
    }
  ]
}

Version history

Current version v2, edited by AWS on 2023-12-18. Version history is recorded from 2026-11-11. Earlier versions are in the IAM console under Policy versions.

Attach snippets

AWS CLI

aws iam attach-role-policy --role-name ROLE_NAME --policy-arn arn:aws:iam::aws:policy/AWSDenyAll
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/AWSDenyAll
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/AWSDenyAll

CloudFormation

Resources:
  ExampleRole:
    Type: AWS::IAM::Role
    Properties:
      AssumeRolePolicyDocument: {}  # replace with your trust policy
      ManagedPolicyArns:
        - arn:aws:iam::aws:policy/AWSDenyAll

Terraform

resource "aws_iam_role_policy_attachment" "awsdenyall" {
  role       = aws_iam_role.example.name
  policy_arn = "arn:aws:iam::aws:policy/AWSDenyAll"
}

CDK (TypeScript)

role.addManagedPolicy(
  iam.ManagedPolicy.fromAwsManagedPolicyName("AWSDenyAll"),
);

Sources

Pending editorial review. No editorial sources are listed yet.