View a markdown version of this page

Connecting to Amazon Redshift - Amazon Redshift

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.

Connecting to Amazon Redshift

You can connect to your database using the following syntax.

cluster-name.account-number.aws-region.redshift.amazonaws.com/database-name

The syntax elements are defined as follows.

  • cluster-name

    Your cluster's name.

  • account-number

    The unique identifier associated with your AWS account number in a given AWS Region. All clusters created by a given account in a given AWS Region have the same account-number.

  • aws-region

    The code for the AWS Region that the cluster is in.

  • database-name

    Your database's name.

For example, the following connection string specifies the my-db database in the my-cluster cluster in the us-east-1 AWS Region.

my-cluster.123456789012.us-east-1.redshift.amazonaws.com/my-db