redshift:GetClusterCredentials

Write

redshift:GetClusterCredentials is a Write access-level action in the redshift service. Grants permission to get temporary credentials to access an Amazon Redshift database by the specified AWS account

Resource types

ARNs that redshift:GetClusterCredentials can be scoped to in an IAM policy.

arn:${Partition}:redshift:${Region}:${Account}:dbname:${ClusterName}/${DbName}
dbname
arn:${Partition}:redshift:${Region}:${Account}:dbuser:${ClusterName}/${DbUser} required
dbuser

Condition keys

Keys you can use in the Condition block of a policy that grants redshift:GetClusterCredentials.

redshift:DbName String

Filters access by the database name

redshift:DbUser String

Filters access by the database user name

redshift:DurationSeconds String

Filters access by the number of seconds until a temporary credential set expires

Example IAM policy

A minimal policy that allows redshift:GetClusterCredentials. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowRedshiftGetClusterCredentials",
      "Effect": "Allow",
      "Action": "redshift:GetClusterCredentials",
      "Resource": "*"
    }
  ]
}

Related actions in redshift

View all redshift actions →