Amazon Redshift federated permissions - 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.

Amazon Redshift federated permissions

Amazon Redshift federated permissions simplifies permissions management across multiple Redshift data warehouses so you can define data permissions once and automatically enforce them across all warehouses in your AWS account. This eliminates the need to redefine, manage permissions and fine grained access control policies across multiple warehouses.

When you register an Redshift warehouse namespace or cluster with Amazon Redshift federated permissions, all databases from registered warehouse namespaces or clusters are automatically mounted in every warehouse, providing seamless data discovery without manual configuration.

You define permissions on database objects using familiar Redshift SQL commands, specifying global identities through AWS Identity and Access Management (IAM), AWS IAM Identity Center, or a person carried through trusted identity propagation for IAM. These permissions are stored with the warehouse data and enforced consistently regardless of which warehouse executes the query.

Key concepts

  • Redshift warehouse with federated permissions: The producer warehouse that is registered with Amazon Redshift multi-warehouse and where data and Redshift permissions are stored.

  • Consuming Redshift warehouse: Any warehouse that queries data from remote warehouse. Consuming warehouse can optionally be enabled for Redshift federated permissions.

  • Global identity: IAM, IAM Identity Center, and trusted identity propagation for IAM provide global identities across warehouses enabled for Redshift federated permissions. Users authenticate once through their identity provider and receive consistent access based on their global identity, regardless of which warehouse they connect to.

  • Auto-mounting: All warehouses enabled for Redshift federated permissions are automatically visible in all warehouses within your account. This auto-mounting capability enables catalog and database discovery for cross-warehouse analytics.

  • Identity propagation: When you run a cross-warehouse query, Redshift propagates your global identity, whether it is an IAM role, an IAM Identity Center user, or a person carried through trusted identity propagation for IAM, to the remote warehouse.

  • Authorization across warehouses: The remote warehouse enabled Redshift federated permissions validates your permissions for cross-warehouse queries and are enforced in the consuming warehouses.

  • Fine grained access control: Policies for Row Level Security (RLS), Column Level Policies (CLP), and Dynamic Data Masking (DDM) that can be enforced across warehouses.

Trusted identity propagation for IAM with federated permissions

When a session carries a user's identity to another warehouse, the warehouse that stores the permissions applies the same user-mapping rules as a direct trusted identity propagation for IAM sign-in. Fine-grained controls evaluate the database user that the warehouse selects for the person.

Mapping on the warehouse that stores permissions

  • Persistently federated user – A user created with an IAMTIP: marker, or federated through CREATE USER or ALTER USER, runs as the person in every identity federation mode.

  • Existing user that can't be mapped – A same-named user owned by another identity provider is never used for the person. The request uses the IAM role user if one exists and is otherwise rejected.

  • Existing unbound same-named user – Under Federate users and Federate users and groups, the request uses that user without recording a persistent association. Under Default, the request uses the IAM role user if one exists and is otherwise rejected.

  • No same-named user – Under Default, the request uses the IAM role user when it exists. Otherwise, in every mode including Default, Redshift creates the person user and stores IAMTIP:subject as its external identity. The forwarded request then runs as that person.

  • Registered AWSIDC provider – A warehouse with a registered AWSIDC identity provider uses that provider's namespace-prefixed user and group mapping instead of trusted identity propagation for IAM associations and account or resource federation modes.

Roles

Group roles come from existing roles on the warehouse that stores permissions whose names exactly match the person's IAM Identity Center groups. Forwarded sessions don't add system roles from groups. Redshift ignores RedshiftDbRoles when the request runs as the person and applies it only when the request falls back to an IAM role user.

Downstream AWS credentials

  • IAM_ROLE 'SESSION' uses the session's own credentials.

  • When a statement uses an explicit IAM role, Redshift attaches the user's identity when it assumes the role. The statement fails if Redshift can't attach that identity.

Grant limitations

Grants to a propagated identity resolve an existing user or role by name and never create the grantee. DEBUG and other grant forms that require a namespaced prefix:name identity don't support trusted identity propagation for IAM subjects.

The following example grants schema access to an existing person user and table access to an existing role that matches an IAM Identity Center group.

GRANT USAGE ON SCHEMA sales TO "alice@example.com"; GRANT SELECT ON ALL TABLES IN SCHEMA sales TO ROLE finance_analysts;

For more information about signing in with trusted identity propagation for IAM, see Workforce identity with trusted identity propagation for IAM.

Benefits

Simplified administration

  • Define permissions once on the warehouse

  • Automatically enforce same permissions across all consuming warehouses

  • Eliminate the need to redefine, manage permissions and fine-grained access control policies across multiple warehouses

  • Reduce administrative overhead and potential for configuration errors

Enhanced security and compliance

  • Maintain consistent security policy enforcement across all warehouses

  • Implement fine-grained access controls at table, and column level

  • Audit permissions from any warehouse

  • Enhanced compliance tooling with additional SHOW commands

Improved user experience

  • Register once and no need to manually create data shares

  • Single sign-on across all warehouses and consistent access based on global identity

  • Seamless namespace discovery without manual catalog configuration

  • No need to manage separate local user accounts in each warehouse

Horizontal scalability

  • Add new warehouses without increasing governance complexity

  • New consuming warehouses automatically enforce permission policies

  • Analysts immediately see all databases from registered warehouses

Use Cases

Workload isolation with Amazon Redshift federated permissions

Separate compute resources for different workloads (ETL, analytics, reporting) while maintaining consistent security policies across all warehouses.

Multi-team data access

Enable multiple teams to access shared data from their own warehouses with appropriate access controls automatically enforced.

Data mesh architecture

Implement a data mesh approach where multiple independent compute resources operate on shared data with Amazon Redshift federated permissions.

Cost optimization

Scale compute resources independently for different use cases while maintaining centralized permission management.