AmazonRedshiftQueryEditorV2ReadWriteSharing

Last Modified

Mar 12, 2026

March 12, 2026 at 09:28 PM UTC

Version

v9

Total Versions

11

Created

Feb 21, 2024

Actions

93

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "RedshiftPermissions",
          "Effect": "Allow",
          "Action": [
            "redshift:DescribeClusters",
            "redshift-serverless:ListNamespaces",
            "redshift-serverless:ListWorkgroups"
          ],
          "Resource": "*"
        },
        {
          "Sid": "SecretsManagerPermissions",
          "Effect": "Allow",
          "Action": [
            "secretsmanager:CreateSecret",
            "secretsmanager:GetSecretValue",
            "secretsmanager:DeleteSecret",
            "secretsmanager:TagResource"
          ],
          "Resource": "arn:aws:secretsmanager:*:*:sqlworkbench!*",
          "Condition": {
            "StringEquals": {
              "secretsmanager:ResourceTag/sqlworkbench-resource-owner": "${aws:userid}"
            }
          }
        },
        {
          "Sid": "ResourceGroupsTaggingPermissions",
          "Effect": "Allow",
          "Action": [
            "tag:GetResources"
          ],
          "Resource": "*",
          "Condition": {
            "StringEquals": {
              "aws:CalledViaLast": "sqlworkbench.amazonaws.com"
            }
          }
        },
        {
          "Sid": "AmazonRedshiftQueryEditorV2NonResourceLevelPermissions",
          "Effect": "Allow",
          "Action": [
            "sqlworkbench:CreateFolder",
            "sqlworkbench:PutTab",
            "sqlworkbench:BatchDeleteFolder",
            "sqlworkbench:DeleteTab",
            "sqlworkbench:GenerateSession",
            "sqlworkbench:GetAccountInfo",
            "sqlworkbench:GetAccountSettings",
            "sqlworkbench:GetUserInfo",
            "sqlworkbench:GetUserWorkspaceSettings",
            "sqlworkbench:PutUserWorkspaceSettings",
            "sqlworkbench:ListConnections",
            "sqlworkbench:ListFiles",
            "sqlworkbench:ListTabs",
            "sqlworkbench:UpdateFolder",
            "sqlworkbench:ListRedshiftClusters",
            "sqlworkbench:DriverExecute",
            "sqlworkbench:ListTaggedResources",
            "sqlworkbench:ListQueryExecutionHistory",
            "sqlworkbench:GetQueryExecutionHistory",
            "sqlworkbench:ListNotebooks",
            "sqlworkbench:GetSchemaInference",
            "sqlworkbench:GetAutocompletionMetadata",
            "sqlworkbench:GetAutocompletionResource"
          ],
          "Resource": "*"
        },
        {
          "Sid": "AmazonRedshiftQueryEditorV2CreateOwnedResourcePermissions",
          "Effect": "Allow",
          "Action": [
            "sqlworkbench:CreateConnection",
            "sqlworkbench:CreateSavedQuery",
            "sqlworkbench:CreateChart",
            "sqlworkbench:CreateNotebook",
            "sqlworkbench:DuplicateNotebook",
            "sqlworkbench:CreateNotebookFromVersion",
            "sqlworkbench:ImportNotebook"
          ],
          "Resource": "*",
          "Condition": {
            "StringEquals": {
              "aws:RequestTag/sqlworkbench-resource-owner": "${aws:userid}"
            }
          }
        },
        {
          "Sid": "AmazonRedshiftQueryEditorV2OwnerSpecificPermissions",
          "Effect": "Allow",
          "Action": [
            "sqlworkbench:DeleteChart",
            "sqlworkbench:DeleteConnection",
            "sqlworkbench:DeleteSavedQuery",
            "sqlworkbench:GetChart",
            "sqlworkbench:GetConnection",
            "sqlworkbench:GetSavedQuery",
            "sqlworkbench:ListSavedQueryVersions",
            "sqlworkbench:UpdateChart",
            "sqlworkbench:UpdateConnection",
            "sqlworkbench:UpdateSavedQuery",
            "sqlworkbench:AssociateConnectionWithTab",
            "sqlworkbench:AssociateQueryWithTab",
            "sqlworkbench:AssociateConnectionWithChart",
            "sqlworkbench:AssociateNotebookWithTab",
            "sqlworkbench:UpdateFileFolder",
            "sqlworkbench:ListTagsForResource",
            "sqlworkbench:GetNotebook",
            "sqlworkbench:UpdateNotebook",
            "sqlworkbench:DeleteNotebook",
            "sqlworkbench:DuplicateNotebook",
            "sqlworkbench:CreateNotebookCell",
            "sqlworkbench:DeleteNotebookCell",
            "sqlworkbench:UpdateNotebookCellContent",
            "sqlworkbench:UpdateNotebookCellLayout",
            "sqlworkbench:BatchGetNotebookCell",
            "sqlworkbench:ListNotebookVersions",
            "sqlworkbench:CreateNotebookVersion",
            "sqlworkbench:GetNotebookVersion",
            "sqlworkbench:DeleteNotebookVersion",
            "sqlworkbench:RestoreNotebookVersion",
            "sqlworkbench:CreateNotebookFromVersion",
            "sqlworkbench:ExportNotebook",
            "sqlworkbench:ImportNotebook"
          ],
          "Resource": "*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/sqlworkbench-resource-owner": "${aws:userid}"
            }
          }
        },
        {
          "Sid": "AmazonRedshiftQueryEditorV2TagOnlyUserIdPermissions",
          "Effect": "Allow",
          "Action": "sqlworkbench:TagResource",
          "Resource": "*",
          "Condition": {
            "ForAllValues:StringEquals": {
              "aws:TagKeys": "sqlworkbench-resource-owner"
            },
            "StringEquals": {
              "aws:ResourceTag/sqlworkbench-resource-owner": "${aws:userid}",
              "aws:RequestTag/sqlworkbench-resource-owner": "${aws:userid}"
            }
          }
        },
        {
          "Sid": "AmazonRedshiftQueryEditorV2TeamReadWriteAccessPermissions",
          "Effect": "Allow",
          "Action": [
            "sqlworkbench:GetChart",
            "sqlworkbench:GetConnection",
            "sqlworkbench:GetSavedQuery",
            "sqlworkbench:ListSavedQueryVersions",
            "sqlworkbench:ListTagsForResource",
            "sqlworkbench:UpdateChart",
            "sqlworkbench:UpdateConnection",
            "sqlworkbench:UpdateSavedQuery",
            "sqlworkbench:AssociateConnectionWithTab",
            "sqlworkbench:AssociateQueryWithTab",
            "sqlworkbench:AssociateConnectionWithChart",
            "sqlworkbench:AssociateNotebookWithTab",
            "sqlworkbench:GetNotebook",
            "sqlworkbench:DuplicateNotebook",
            "sqlworkbench:BatchGetNotebookCell",
            "sqlworkbench:ListNotebookVersions",
            "sqlworkbench:GetNotebookVersion",
            "sqlworkbench:CreateNotebookFromVersion",
            "sqlworkbench:ExportNotebook"
          ],
          "Resource": "*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/sqlworkbench-team": "${aws:PrincipalTag/sqlworkbench-team}"
            }
          }
        },
        {
          "Sid": "AmazonRedshiftQueryEditorV2TagOnlyTeamPermissions",
          "Effect": "Allow",
          "Action": "sqlworkbench:TagResource",
          "Resource": "*",
          "Condition": {
            "ForAllValues:StringEquals": {
              "aws:TagKeys": "sqlworkbench-team"
            },
            "StringEquals": {
              "aws:ResourceTag/sqlworkbench-resource-owner": "${aws:userid}",
              "aws:RequestTag/sqlworkbench-team": "${aws:PrincipalTag/sqlworkbench-team}"
            }
          }
        },
        {
          "Sid": "AmazonRedshiftQueryEditorV2UntagOnlyTeamPermissions",
          "Effect": "Allow",
          "Action": "sqlworkbench:UntagResource",
          "Resource": "*",
          "Condition": {
            "ForAllValues:StringEquals": {
              "aws:TagKeys": "sqlworkbench-team"
            },
            "StringEquals": {
              "aws:ResourceTag/sqlworkbench-resource-owner": "${aws:userid}"
            }
          }
        }
      ]
    },
    "VersionId": "v9",
    "IsDefaultVersion": true,
    "CreateDate": "2024-02-21T17:30:28+00:00"
  }
}

Version History (14 recorded)

Raw history

AmazonRedshiftQueryEditorV2ReadWriteSharing - Policy Version v9

No recorded action delta - this version predates the change index. View the raw diff.

Mar 12, 2026

feee53c

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 18, 2024

aafbae9

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

May 13, 2024

1b36617

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Feb 21, 2024

06e35c7

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Aug 16, 2023

b0ac855

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Mar 21, 2023

d79593c

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Feb 1, 2023

aa7da05

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Feb 1, 2023

f45e19f

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Oct 17, 2022

58287e0

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Aug 31, 2022

e78aa74

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Aug 31, 2022

4c719f6

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Jun 15, 2022

3357898

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Feb 23, 2022

28f9237

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 24, 2021

5a67541