Using trusted identity propagation for IAM with enhanced VPC routing - Amazon Redshift
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Amazon Redshift will no longer support the use of Python UDFs after June 30, 2026. We will start enforcing it in phases. For more information on the details of Python end of life and migration options, see the blog post that was published on June 30, 2025.

Using trusted identity propagation for IAM with enhanced VPC routing

Some trusted identity propagation for IAM features require Amazon Redshift to call IAM Identity Center and AWS STS. When you turn on enhanced VPC routing, Amazon Redshift routes this traffic through your virtual private cloud (VPC). If your VPC can't reach these services, the features that depend on them fail.

Important

If you use the Federate users and groups mode, or set any user to WITH GROUPS, Amazon Redshift must be able to reach the default IAM Identity Center instance for your account. If it can't, sign-in fails for those users. The default instance is the organization instance if one exists, otherwise the account instance, and it can change, for example when your account joins or leaves an organization. Make sure your VPC can reach IAM Identity Center in the AWS Region of that instance, and that the instance you associate with your IAM identity provider for group-based access is the same instance. The IAM console selects the organization instance by default.

Features that require IAM Identity Center access

Feature When Amazon Redshift calls IAM Identity Center If IAM Identity Center is unreachable
Directory groups (Federate users and groups, or a user set to WITH GROUPS) At sign-in, to read group membership Sign-in fails
System roles federation At sign-in, as part of group membership Sign-in fails
Credentials from an IAM identity provider that has group-based access configured, so the session carries the associated identity store At sign-in, to confirm that the identity store matches the account's default instance Sign-in fails, even when no groups are needed
Definer views and procedures owned by users with groups In the background, to refresh the owner's groups After a bounded period, group-derived permissions are withheld. Direct grants still apply.
Sign-in without groups (Default or Federate users, with the user not set to WITH GROUPS) Not required Sign-in succeeds

When an identity administrator selects Allow granting permissions to groups on the IAM identity provider, IAM associates an IAM Identity Center instance with the provider, and role sessions carry that instance's identity store. Amazon Redshift then confirms the identity store at sign-in, even for users who don't need groups. For the IAM configuration, see Configure group-based access for trusted identity propagation in the IAM User Guide.

Features that require AWS STS access

Feature When Amazon Redshift calls AWS STS If AWS STS is unreachable
Explicit IAM_ROLE '<role-arn>' in a session that carries a user's identity for COPY, UNLOAD, or an external schema When the statement runs, to attach the user's identity The statement fails. Sign-in isn't affected.
IAM_ROLE 'SESSION' Not required Not affected

Configure your VPC

To allow Amazon Redshift to reach IAM Identity Center when enhanced VPC routing is on, create interface VPC endpoints (AWS PrivateLink) in the VPC where your cluster or workgroup runs. The setup follows the same rules as the Amazon Redshift integration with IAM Identity Center: turn on the DNS hostnames and DNS resolution attributes for the VPC, turn on private DNS names for each endpoint, create the endpoints in the IAM Identity Center Region, use the cross-Region endpoint option if your cluster runs in another Region and you don't use multi-Region replication, choose subnets in the Availability Zones your cluster or workgroup uses, allow inbound HTTPS (TCP 443) from those subnets, and keep the default endpoint policy or scope it by principal. For the complete procedure and the AWS Network Firewall alternative, see Using AWS IAM Identity Center authentication with enhanced VPC routing.

To use explicit IAM roles with a user's identity, also make sure that the VPC can reach AWS STS, for example through an AWS STS interface VPC endpoint for the com.amazonaws.<region>.sts service.

Verify connectivity

  1. In the IAM console, open the identity provider and choose the Identity propagation tab. Confirm that Propagation status is Configured, Allow granting permissions to groups is Set, and Connected IAM Identity Center instance is your account's default instance.

  2. In the IAM Identity Center console, confirm that the test user exists with a Username that matches the trusted identity propagation Subject and that the user is a member of the expected group.

  3. Sign in as the test user, with groups turned on, and connect to the cluster or workgroup.

  4. Run SELECT * FROM pg_get_session_roles(); and confirm that the group role is present.

  5. If the sign-in fails, check SYS_CONNECTION_LOG for an authentication failure row, and then check your VPC endpoints, private DNS, security groups, and endpoint policies.