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
Prerequisites
IAM policy requirements for Amazon Redshift federated permissions setup
With Amazon Redshift federated permissions, you can centrally manage data access across your analytics workloads, with permissions managed by the Redshift warehouse directly.
To enable Amazon Redshift federated permissions, specific IAM permissions are required beyond the standard permissions needed for creating Redshift provisioned clusters and serverless namespaces.
For Redshift provisioned warehouse to enable Redshift federated permissions:
redshift:ModifyLakehouseConfigurationredshift:RegisterNamespace
For Redshift Serverless warehouse to enable Redshift federated permissions:
redshift-serverless:UpdateLakehouseConfigurationredshift:RegisterNamespace
If you register with the Amazon Glue Data Catalog instead of Amazon Redshift multi-warehouse, additional IAM permissions and setup are required. See Amazon Glue Data Catalog Prerequisites.
IAM Identity Center application configuration for Redshift warehouse with federated permissions
Amazon Redshift supports identity center identity propagation to seamlessly pass user identities between Redshift instances and Amazon Lake Formation and Amazon Glue services. This capability requires configuring dedicated IdC applications.
Required IAM Permissions
To create and manage the identity center application for identity center identity propagation, make sure your IAM permissions include the following permissions:
For Amazon Redshift IdC application management:
redshift:CreateRedshiftIdcApplicationredshift:ModifyRedshiftIdcApplicationredshift:DescribeRedshiftIdcApplications
Create corresponding IdC applications and configuration
To establish identity propagation for your analytics workloads, create an Amazon Redshift IdC application of type Lakehouse. It manages permissions without requiring explicit user assignments. Redshift warehouses linked to this application require CONNECT privileges for IdC users to authenticate connections.
You can create only one Amazon Redshift IdC application of type Lakehouse per Amazon Web Services account. This application handles identity propagation across all Redshift warehouses enabled for federated permissions.
Prepare the IAM role assumed by Redshift and used by IdC identity propagation
Redshift Lakehouse IdC application creation requires an IAM role from your account with certain IAM permissions. Your IAM role used in your Redshift IdC Applications should have the following trust relationship to allow Redshift to assume it and set context for IdC identity propagation.
{ "Version": "2012-10-17", "Statement": [ { "Sid": "Statement1", "Effect": "Allow", "Principal": { "Service": [ "redshift-serverless.amazonaws.com", "redshift.amazonaws.com" ] }, "Action": [ "sts:AssumeRole", "sts:SetContext" ] } ] }
And below permissions for your IdC IAM role to support IdC identity propagation.
-
AmazonRedshiftFederatedAuthorization – This policy enables Amazon Redshift to query Amazon Glue Data Catalog databases through federated permissions.
-
AWSIDC Set Context Policy
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "sts:SetContext" ], "Resource": "*" } ] } -
Setting up Redshift as an Amazon managed application with Amazon IAM Identity Center.
-
AWSIDC identity center SSO IAM policy:
-
sso:DescribeApplication– Required to create an identity provider (IdP) entry in the catalog. -
sso:DescribeInstance– Used to manually create IdP federated roles or users.{ "Sid": "VisualEditor1", "Effect": "Allow", "Action": [ "sso:DescribeApplication", "sso:DescribeInstance" ], "Resource": [ "arn:aws:sso:::instance/<IAM Identity Center Instance ID>", "arn:aws:sso::<Amazon-account-id>:application/<IAM Identity Center Instance ID>/*" ] }
-
Create a new Lakehouse type Redshift IdC application
Modify an existing Redshift IdC application
If you have an existing Redshift IdC application that doesn't have the required service integrations enabled, you can update it to support identity propagation between services and clusters/namespaces.
If you register with the Amazon Glue Data Catalog instead of Amazon Redshift multi-warehouse, you must also create or update a Lake Formation identity center configuration. See Amazon Glue Data Catalog Prerequisites.
Network configuration for enhanced VPC routing
If enhanced VPC routing is turned on, your VPC must be able to reach the Amazon IAM Identity Center services. Otherwise, identity propagation fails. For more information about the network requirements, see Using Amazon IAM Identity Center with enhanced VPC routing.
Connect privileges
As part of Amazon Redshift federated permissions, Amazon Redshift has introduced CONNECT privileges to manage Amazon IAM Identity Center federated users' access to Amazon Redshift workgroups or clusters. This feature is available when Amazon Redshift federated permissions are enabled on the workgroup or cluster.
This privilege enables administrators to control user access through granular permissions at each Amazon Redshift workgroup(s) or clusters(s) where Amazon Redshift federated permissions are enabled. Amazon Redshift administrator can specify which Amazon IAM Identity Center federated user(s) or group(s) have access to directly connect to the Amazon Redshift workgroup or cluster, providing fine-grained control over the Amazon IAM Identity Center user access at each workgroup or cluster.
Syntax
GRANT CONNECT [ON WORKGROUP] TO <prefix>:<username> | ROLE <prefix>:<rolename> | PUBLIC;
- CONNECT [ON WORKGROUP]
-
Grants permission to connect to a workgroup. The CONNECT permission is applicable only for Amazon IAM Identity Center identities (users and roles).
- TO <prefix>:<username>
-
Indicates the Amazon IAM Identity Center federated user receiving the permissions.
- TO ROLE <prefix>:<rolename>
-
Indicates the Amazon IAM Identity Center federated group receiving the permissions.
- PUBLIC
-
Grants the CONNECT permissions to all Amazon IAM Identity Center federated users, including users created later.