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
Restricting an IAM role to an Amazon Region
You can restrict an IAM role to only be accessible in a certain Amazon Region. By default, IAM roles for Amazon Redshift are not restricted to any single region.
To restrict use of an IAM role by region, take the following steps.
To identify permitted regions for an IAM role
-
Open the IAM console
at https://console.amazonaws.cn/ . -
In the navigation pane, choose Roles.
-
Choose the role that you want to modify with specific regions.
-
Choose the Trust Relationships tab and then choose Edit Trust Relationship. A new IAM role that allows Amazon Redshift to access other Amazon services on your behalf has a trust relationship as follows:
-
Modify the
Servicelist for thePrincipalwith the list of the specific regions that you want to permit use of the role for. Each region in theServicelist must be in the following format:redshift..region.amazonaws.comFor example, the following edited trust relationship permits the use of the IAM role in the
us-east-1andus-west-2regions only. -
Choose Update Trust Policy