redshift-serverless:GetCredentials

Write

redshift-serverless:GetCredentials is a Write access-level action in the redshift-serverless service. Grants permission to get a database user name and temporary password with temporary authorization to log on to Amazon Redshift Serverless

Resource types

ARNs that redshift-serverless:GetCredentials can be scoped to in an IAM policy.

arn:${Partition}:redshift-serverless:${Region}:${Account}:workgroup/${WorkgroupId}
workgroup

Condition keys

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

aws:ResourceTag/${TagKey} String

Filters access by the tags associated with the resource

Example IAM policy

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

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

Related actions in redshift-serverless

View all redshift-serverless actions →