Skip to main content
IAM Policy Map

AmazonRedshiftAllCommandsFullAccess

OperatorAWS managedActivePermissions reviewedShow on mapCompare

Summary

This policy includes permissions to run SQL commands to copy, load, unload, query, and analyze data on Amazon Redshift. The policy also grants permissions to run select statements for related services, such as Amazon S3, Amazon CloudWatch logs, Amazon SageMaker, or AWS Glue.

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

Identity

ARN
arn:aws:iam::aws:policy/AmazonRedshiftAllCommandsFullAccess
Default version
v2
Created
Last edited
Services
cloudwatch, dynamodb, ecr, elasticmapreduce, glue, iam, lambda, logs, s3, sagemaker, secretsmanager

Control-plane actions (62)

By access level: 5 List, 1 Permissions management, 28 Read, 28 Write.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
DynamoDB1 of 681 Read; 1 restricted, 0 conditionaldynamodb:DescribeTable
Elastic Container Registry4 of 654 Read; 0 restricted, 0 conditionalecr:BatchCheckLayerAvailability, ecr:BatchGetImage, ecr:GetAuthorizationToken, ecr:GetDownloadUrlForLayer
EMR1 of 881 Read; 1 restricted, 0 conditionalelasticmapreduce:ListInstances
Glue19 of 3067 Read, 12 Write; 19 restricted, 0 conditionalglue:BatchCreatePartition, glue:BatchDeletePartition, glue:BatchDeleteTable, glue:BatchGetPartition, glue:CreateDatabase, glue:CreatePartition, glue:CreateTable, glue:DeleteDatabase, glue:DeletePartition, glue:DeleteTable, glue:GetDatabase, glue:GetDatabases and 7 more
IAM1 of 1901 Write; 1 restricted, 1 conditionaliam:PassRole
CloudWatch Logs4 of 1331 List, 3 Write; 4 restricted, 0 conditionallogs:CreateLogGroup, logs:CreateLogStream, logs:DescribeLogStreams, logs:PutLogEvents
S39 of 1552 List, 1 Permissions management, 4 Read, 2 Write; 9 restricted, 0 conditionals3:CreateBucket, s3:GetBucketAcl, s3:GetBucketCors, s3:GetBucketLocation, s3:GetEncryptionConfiguration, s3:ListAllMyBuckets, s3:ListBucketMultipartUploads, s3:PutBucketAcl, s3:PutBucketCors
SageMaker17 of 4411 List, 6 Read, 10 Write; 17 restricted, 0 conditionalsagemaker:CreateAutoMLJob, sagemaker:CreateCompilationJob, sagemaker:CreateEndpoint, sagemaker:CreateModel, sagemaker:CreateProcessingJob, sagemaker:CreateTrainingJob, sagemaker:DescribeAutoMLJob, sagemaker:DescribeCompilationJob, sagemaker:DescribeEndpoint, sagemaker:DescribeProcessingJob, sagemaker:DescribeTrainingJob, sagemaker:DescribeTransformJob and 5 more
Secrets Manager6 of 271 List, 5 Read; 4 restricted, 0 conditionalsecretsmanager:DescribeSecret, secretsmanager:GetRandomPassword, secretsmanager:GetResourcePolicy, secretsmanager:GetSecretValue, secretsmanager:ListSecretVersionIds, secretsmanager:ListSecrets
DynamoDB: 1 actions
  • dynamodb:DescribeTable (Read)
Elastic Container Registry: 4 actions
  • ecr:BatchCheckLayerAvailability (Read)
  • ecr:BatchGetImage (Read)
  • ecr:GetAuthorizationToken (Read)
  • ecr:GetDownloadUrlForLayer (Read)
EMR: 1 actions
  • elasticmapreduce:ListInstances (Read)
Glue: 19 actions
  • glue:BatchCreatePartition (Write)
  • glue:BatchDeletePartition (Write)
  • glue:BatchDeleteTable (Write)
  • glue:BatchGetPartition (Read)
  • glue:CreateDatabase (Write)
  • glue:CreatePartition (Write)
  • glue:CreateTable (Write)
  • glue:DeleteDatabase (Write)
  • glue:DeletePartition (Write)
  • glue:DeleteTable (Write)
  • glue:GetDatabase (Read)
  • glue:GetDatabases (Read)
  • glue:GetPartition (Read)
  • glue:GetPartitions (Read)
  • glue:GetTable (Read)
  • glue:GetTables (Read)
  • glue:UpdateDatabase (Write)
  • glue:UpdatePartition (Write)
  • glue:UpdateTable (Write)
IAM: 1 actions
  • iam:PassRole (Write)
CloudWatch Logs: 4 actions
  • logs:CreateLogGroup (Write)
  • logs:CreateLogStream (Write)
  • logs:DescribeLogStreams (List)
  • logs:PutLogEvents (Write)
S3: 9 actions
  • s3:CreateBucket (Write)
  • s3:GetBucketAcl (Read)
  • s3:GetBucketCORS (Read)
  • s3:GetBucketLocation (Read)
  • s3:GetEncryptionConfiguration (Read)
  • s3:ListAllMyBuckets (List)
  • s3:ListBucketMultipartUploads (List)
  • s3:PutBucketAcl (Permissions management)
  • s3:PutBucketCORS (Write)
SageMaker: 17 actions
  • sagemaker:CreateAutoMLJob (Write)
  • sagemaker:CreateCompilationJob (Write)
  • sagemaker:CreateEndpoint (Write)
  • sagemaker:CreateModel (Write)
  • sagemaker:CreateProcessingJob (Write)
  • sagemaker:CreateTrainingJob (Write)
  • sagemaker:DescribeAutoMLJob (Read)
  • sagemaker:DescribeCompilationJob (Read)
  • sagemaker:DescribeEndpoint (Read)
  • sagemaker:DescribeProcessingJob (Read)
  • sagemaker:DescribeTrainingJob (Read)
  • sagemaker:DescribeTransformJob (Read)
  • sagemaker:ListCandidatesForAutoMLJob (List)
  • sagemaker:StopAutoMLJob (Write)
  • sagemaker:StopCompilationJob (Write)
  • sagemaker:StopProcessingJob (Write)
  • sagemaker:StopTrainingJob (Write)
Secrets Manager: 6 actions
  • secretsmanager:DescribeSecret (Read)
  • secretsmanager:GetRandomPassword (Read)
  • secretsmanager:GetResourcePolicy (Read)
  • secretsmanager:GetSecretValue (Read)
  • secretsmanager:ListSecretVersionIds (Read)
  • secretsmanager:ListSecrets (List)

Data-plane actions (11)

By access level: 2 List, 4 Read, 5 Write.

Data-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
CloudWatch1 of 51 Write; 1 restricted, 1 conditionalcloudwatch:PutMetricData
DynamoDB2 of 172 Read; 2 restricted, 0 conditionaldynamodb:Getitem, dynamodb:Scan
Lambda1 of 141 Write; 1 restricted, 0 conditionallambda:InvokeFunction
S36 of 252 List, 1 Read, 3 Write; 6 restricted, 0 conditionals3:AbortMultipartUpload, s3:DeleteObject, s3:GetObject, s3:ListBucket, s3:ListMultipartUploadParts, s3:PutObject
SageMaker1 of 191 Read; 1 restricted, 0 conditionalsagemaker:InvokeEndpoint
CloudWatch: 1 actions
  • cloudwatch:PutMetricData (Write)
DynamoDB: 2 actions
  • dynamodb:GetItem (Read)
  • dynamodb:Scan (Read)
Lambda: 1 actions
  • lambda:InvokeFunction (Write)
S3: 6 actions
  • s3:AbortMultipartUpload (Write)
  • s3:DeleteObject (Write)
  • s3:GetObject (Read)
  • s3:ListBucket (List)
  • s3:ListMultipartUploadParts (List)
  • s3:PutObject (Write)
SageMaker: 1 actions
  • sagemaker:InvokeEndpoint (Read)

Excluded and conditional actions

No patterns are excluded by NotAction or Deny statements.

Resource scope and attachment

Resource scope across granted actions: mixed.

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

Why this tier

  • Grants 34 write, tagging or permissions-management actions, short of full control of any service.
  • Grants data-plane write actions on a data store, but only for scoped resources or under conditions.
  • Grants iam:PassRole, but only for scoped roles or under conditions (for example iam:PassedToService).

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 service

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": [
    {
      "Effect": "Allow",
      "Action": [
        "sagemaker:CreateTrainingJob",
        "sagemaker:CreateAutoMLJob",
        "sagemaker:CreateCompilationJob",
        "sagemaker:CreateEndpoint",
        "sagemaker:DescribeAutoMLJob",
        "sagemaker:DescribeTrainingJob",
        "sagemaker:DescribeCompilationJob",
        "sagemaker:DescribeProcessingJob",
        "sagemaker:DescribeTransformJob",
        "sagemaker:ListCandidatesForAutoMLJob",
        "sagemaker:StopAutoMLJob",
        "sagemaker:StopCompilationJob",
        "sagemaker:StopTrainingJob",
        "sagemaker:DescribeEndpoint",
        "sagemaker:InvokeEndpoint",
        "sagemaker:StopProcessingJob",
        "sagemaker:CreateModel",
        "sagemaker:CreateProcessingJob"
      ],
      "Resource": [
        "arn:aws:sagemaker:*:*:model/*redshift*",
        "arn:aws:sagemaker:*:*:training-job/*redshift*",
        "arn:aws:sagemaker:*:*:automl-job/*redshift*",
        "arn:aws:sagemaker:*:*:compilation-job/*redshift*",
        "arn:aws:sagemaker:*:*:processing-job/*redshift*",
        "arn:aws:sagemaker:*:*:transform-job/*redshift*",
        "arn:aws:sagemaker:*:*:endpoint/*redshift*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "logs:CreateLogGroup",
        "logs:CreateLogStream",
        "logs:DescribeLogStreams",
        "logs:PutLogEvents"
      ],
      "Resource": [
        "arn:aws:logs:*:*:log-group:/aws/sagemaker/Endpoints/*redshift*",
        "arn:aws:logs:*:*:log-group:/aws/sagemaker/ProcessingJobs/*redshift*",
        "arn:aws:logs:*:*:log-group:/aws/sagemaker/TrainingJobs/*redshift*",
        "arn:aws:logs:*:*:log-group:/aws/sagemaker/TransformJobs/*redshift*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "cloudwatch:PutMetricData"
      ],
      "Resource": "*",
      "Condition": {
        "StringEquals": {
          "cloudwatch:namespace": [
            "SageMaker",
            "/aws/sagemaker/Endpoints",
            "/aws/sagemaker/ProcessingJobs",
            "/aws/sagemaker/TrainingJobs",
            "/aws/sagemaker/TransformJobs"
          ]
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "ecr:BatchCheckLayerAvailability",
        "ecr:BatchGetImage",
        "ecr:GetAuthorizationToken",
        "ecr:GetDownloadUrlForLayer"
      ],
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "s3:GetObject",
        "s3:GetBucketAcl",
        "s3:GetBucketCors",
        "s3:GetEncryptionConfiguration",
        "s3:GetBucketLocation",
        "s3:ListBucket",
        "s3:ListAllMyBuckets",
        "s3:ListMultipartUploadParts",
        "s3:ListBucketMultipartUploads",
        "s3:PutObject",
        "s3:PutBucketAcl",
        "s3:PutBucketCors",
        "s3:DeleteObject",
        "s3:AbortMultipartUpload",
        "s3:CreateBucket"
      ],
      "Resource": [
        "arn:aws:s3:::redshift-downloads",
        "arn:aws:s3:::redshift-downloads/*",
        "arn:aws:s3:::*redshift*",
        "arn:aws:s3:::*redshift*/*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "s3:GetObject"
      ],
      "Resource": "*",
      "Condition": {
        "StringEqualsIgnoreCase": {
          "s3:ExistingObjectTag/Redshift": "true"
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "dynamodb:Scan",
        "dynamodb:DescribeTable",
        "dynamodb:Getitem"
      ],
      "Resource": [
        "arn:aws:dynamodb:*:*:table/*redshift*",
        "arn:aws:dynamodb:*:*:table/*redshift*/index/*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "elasticmapreduce:ListInstances"
      ],
      "Resource": [
        "arn:aws:elasticmapreduce:*:*:cluster/*redshift*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "elasticmapreduce:ListInstances"
      ],
      "Resource": "*",
      "Condition": {
        "StringEqualsIgnoreCase": {
          "elasticmapreduce:ResourceTag/Redshift": "true"
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "lambda:InvokeFunction"
      ],
      "Resource": "arn:aws:lambda:*:*:function:*redshift*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "glue:CreateDatabase",
        "glue:DeleteDatabase",
        "glue:GetDatabase",
        "glue:GetDatabases",
        "glue:UpdateDatabase",
        "glue:CreateTable",
        "glue:DeleteTable",
        "glue:BatchDeleteTable",
        "glue:UpdateTable",
        "glue:GetTable",
        "glue:GetTables",
        "glue:BatchCreatePartition",
        "glue:CreatePartition",
        "glue:DeletePartition",
        "glue:BatchDeletePartition",
        "glue:UpdatePartition",
        "glue:GetPartition",
        "glue:GetPartitions",
        "glue:BatchGetPartition"
      ],
      "Resource": [
        "arn:aws:glue:*:*:table/*redshift*/*",
        "arn:aws:glue:*:*:catalog",
        "arn:aws:glue:*:*:database/*redshift*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "secretsmanager:GetResourcePolicy",
        "secretsmanager:GetSecretValue",
        "secretsmanager:DescribeSecret",
        "secretsmanager:ListSecretVersionIds"
      ],
      "Resource": [
        "arn:aws:secretsmanager:*:*:secret:*redshift*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "secretsmanager:GetRandomPassword",
        "secretsmanager:ListSecrets"
      ],
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "iam:PassRole"
      ],
      "Resource": "arn:aws:iam::*:role/*",
      "Condition": {
        "StringEquals": {
          "iam:PassedToService": [
            "redshift.amazonaws.com",
            "glue.amazonaws.com",
            "sagemaker.amazonaws.com",
            "athena.amazonaws.com"
          ]
        }
      }
    }
  ]
}

Version history

Current version v2, edited by AWS on 2021-11-25. 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/AmazonRedshiftAllCommandsFullAccess
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/AmazonRedshiftAllCommandsFullAccess
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/AmazonRedshiftAllCommandsFullAccess

CloudFormation

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

Terraform

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

CDK (TypeScript)

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

Sources

Pending editorial review. No editorial sources are listed yet.