

 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 ](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/) 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
<a name="redshift-iam-access-control-tip-evr-idc"></a>


| 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](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_tip_federation_configure_group_access.html) in the *IAM User Guide*.

## Features that require AWS STS access
<a name="redshift-iam-access-control-tip-evr-sts"></a>


| 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
<a name="redshift-iam-access-control-tip-evr-configure"></a>

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](redshift-iam-access-control-idp-connect-evr.md).

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
<a name="redshift-iam-access-control-tip-evr-verify"></a>

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.

1. 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.

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

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

1. 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.

## Related topics
<a name="redshift-iam-access-control-tip-evr-related"></a>
+ [Using AWS IAM Identity Center authentication with enhanced VPC routing](redshift-iam-access-control-idp-connect-evr.md)
+ [Controlling network traffic with Redshift enhanced VPC routing](enhanced-vpc-routing.md)
+ [Turning on enhanced VPC routing](enhanced-vpc-enabling-cluster.md). Changing enhanced VPC routing restarts a provisioned cluster.
+ [Controlling database traffic with VPC endpoints](enhanced-vpc-working-with-endpoints.md)
+ [Configure group-based access for trusted identity propagation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_tip_federation_configure_group_access.html) in the *IAM User Guide*
+ [Organization instances of IAM Identity Center](https://docs.aws.amazon.com/singlesignon/latest/userguide/organization-instances-identity-center.html) and [Account instances of IAM Identity Center](https://docs.aws.amazon.com/singlesignon/latest/userguide/account-instances-identity-center.html)
+ [Create a VPC endpoint](https://docs.aws.amazon.com/vpc/latest/userguide/vpce-interface.html#create-interface-endpoint) in the *Amazon VPC User Guide*
+ [Mapping identity provider groups to Redshift roles](redshift-iam-access-control-tip-groups.md)