PyCharm
 
Get PyCharm
You are viewing the documentation for an earlier version of PyCharm.

Amazon Redshift

Last modified: 20 September 2023

This topic presents a general procedure on how you can create a data source for the connection to your Amazon Redshift database in PyCharm, and run a test connection. It is assumed that you already have the necessary prerequisites and the database is up and running.

In case you want to access a private Amazon Redshift cluster from your local machine, consider using an Amazon Elastic Compute Cloud (Amazon EC2) instance and then creating an SSH tunnel from PyCharm to this instance. For more information about configuring Amazon EC2, refer to this tutorial at aws.amazon.com.

In PyCharm, you can work with shared databases:

  • Shared databases, and the datashares that these databases are created on, can be introspected and displayed in Database tool window.

  • You can modify both datashares and shared databases. To do that, right-click the corresponding object in Database tool window and select Modify <object>. Alternatively, select the object and press CtrlF6.

  • Code editor supports all the related statements.