Connecting to Amazon Redshift - Amazon Redshift
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Amazon Redshift will no longer support the creation of new Python UDFs starting November 1, 2025. If you would like to use Python UDFs, create the UDFs prior to that date. Existing Python UDFs will continue to function as normal. For more information, see the blog post .

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 Amazon account number in a given Amazon Web Services Region. All clusters created by a given account in a given Amazon Web Services Region have the same account-number.

  • aws-region

    The code for the Amazon Web Services 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 Amazon Web Services Region.

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