redshift:GetClusterCredentialsWithIAM

Write

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

Resource types

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

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

Condition keys

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

redshift:DbName String

Filters access by the database 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:GetClusterCredentialsWithIAM. Replace "Resource": "*" with a specific ARN to follow least privilege.

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

Related actions in redshift

View all redshift actions →