Skip to main content
IAM Policy Map

AmazonRedshiftQueryEditor

OperatorAWS managedActivePermissions reviewedShow on mapCompare

Summary

Provides full access to the Amazon Redshift Query Editor and to saved queries via the AWS Management Console.

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

Identity

ARN
arn:aws:iam::aws:policy/AmazonRedshiftQueryEditor
Default version
v4
Created
Last edited
Services
redshift, redshift-data, secretsmanager

Control-plane actions (28)

By access level: 8 List, 10 Read, 1 Tagging, 9 Write.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
Redshift15 of 1675 List, 4 Read, 6 Write; 0 restricted, 0 conditionalredshift:CancelQuery, redshift:CreateSavedQuery, redshift:DeleteSavedQueries, redshift:DescribeClusters, redshift:DescribeQuery, redshift:DescribeSavedQueries, redshift:DescribeTable, redshift:ExecuteQuery, redshift:FetchResults, redshift:GetClusterCredentials, redshift:ListDatabases, redshift:ListSchemas and 3 more
Redshift Data API9 of 122 List, 5 Read, 2 Write; 4 restricted, 4 conditionalredshift-data:CancelStatement, redshift-data:DescribeStatement, redshift-data:DescribeTable, redshift-data:ExecuteStatement, redshift-data:GetStatementResult, redshift-data:ListDatabases, redshift-data:ListSchemas, redshift-data:ListStatements, redshift-data:ListTables
Secrets Manager4 of 271 List, 1 Read, 1 Tagging, 1 Write; 3 restricted, 3 conditionalsecretsmanager:CreateSecret, secretsmanager:GetSecretValue, secretsmanager:ListSecrets, secretsmanager:TagResource
Redshift: 15 actions
  • redshift:CancelQuery (Write)
  • redshift:CreateSavedQuery (Write)
  • redshift:DeleteSavedQueries (Write)
  • redshift:DescribeClusters (List)
  • redshift:DescribeQuery (Read)
  • redshift:DescribeSavedQueries (Read)
  • redshift:DescribeTable (Read)
  • redshift:ExecuteQuery (Write)
  • redshift:FetchResults (Read)
  • redshift:GetClusterCredentials (Write)
  • redshift:ListDatabases (List)
  • redshift:ListSchemas (List)
  • redshift:ListTables (List)
  • redshift:ModifySavedQuery (Write)
  • redshift:ViewQueriesFromConsole (List)
Redshift Data API: 9 actions
  • redshift-data:CancelStatement (Write)
  • redshift-data:DescribeStatement (Read)
  • redshift-data:DescribeTable (Read)
  • redshift-data:ExecuteStatement (Write)
  • redshift-data:GetStatementResult (Read)
  • redshift-data:ListDatabases (Read)
  • redshift-data:ListSchemas (Read)
  • redshift-data:ListStatements (List)
  • redshift-data:ListTables (List)
Secrets Manager: 4 actions
  • secretsmanager:CreateSecret (Write)
  • secretsmanager:GetSecretValue (Read)
  • secretsmanager:ListSecrets (List)
  • secretsmanager:TagResource (Tagging)

Data-plane actions (0)

By access level: none.

This policy grants no actions in this plane.

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 10 write, tagging or permissions-management actions, short of full control of any service.
  • 5 granted write or permissions-management actions have no data-plane classification from AWS, so the data-plane rule cannot assess them.

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": [
        "redshift:GetClusterCredentials",
        "redshift:ListSchemas",
        "redshift:ListTables",
        "redshift:ListDatabases",
        "redshift:ExecuteQuery",
        "redshift:FetchResults",
        "redshift:CancelQuery",
        "redshift:DescribeClusters",
        "redshift:DescribeQuery",
        "redshift:DescribeTable",
        "redshift:ViewQueriesFromConsole",
        "redshift:DescribeSavedQueries",
        "redshift:CreateSavedQuery",
        "redshift:DeleteSavedQueries",
        "redshift:ModifySavedQuery"
      ],
      "Resource": "*"
    },
    {
      "Sid": "DataAPIPermissions",
      "Action": [
        "redshift-data:ExecuteStatement",
        "redshift-data:ListDatabases",
        "redshift-data:ListSchemas",
        "redshift-data:ListTables",
        "redshift-data:DescribeTable"
      ],
      "Effect": "Allow",
      "Resource": "*"
    },
    {
      "Sid": "DataAPIIAMSessionPermissionsRestriction",
      "Action": [
        "redshift-data:GetStatementResult",
        "redshift-data:CancelStatement",
        "redshift-data:DescribeStatement",
        "redshift-data:ListStatements"
      ],
      "Effect": "Allow",
      "Resource": "*",
      "Condition": {
        "StringEquals": {
          "redshift-data:statement-owner-iam-userid": "${aws:userid}"
        }
      }
    },
    {
      "Sid": "SecretsManagerListPermissions",
      "Action": [
        "secretsmanager:ListSecrets"
      ],
      "Effect": "Allow",
      "Resource": "*"
    },
    {
      "Sid": "SecretsManagerCreateGetPermissions",
      "Action": [
        "secretsmanager:CreateSecret",
        "secretsmanager:GetSecretValue",
        "secretsmanager:TagResource"
      ],
      "Effect": "Allow",
      "Resource": "arn:aws:secretsmanager:*:*:secret:*",
      "Condition": {
        "StringEquals": {
          "secretsmanager:ResourceTag/RedshiftQueryOwner": "${aws:userid}"
        }
      }
    }
  ]
}

Version history

Current version v4, edited by AWS on 2021-02-16. 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/AmazonRedshiftQueryEditor
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/AmazonRedshiftQueryEditor
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/AmazonRedshiftQueryEditor

CloudFormation

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

Terraform

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

CDK (TypeScript)

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

Sources

Pending editorial review. No editorial sources are listed yet.