View a markdown version of this page

Python コネクタのインポート - Amazon Redshift

Amazon Redshift は、2026 年 6 月 30 日以降、Python UDF の使用をサポートしなくなります。これは段階的に実施されます。Python のサポート終了と移行オプションの詳細については、2025 年 6 月 30 日に公開されたブログ記事を参照してください。

Python コネクタのインポート

Python コネクタをインポートするには、次のコマンドを実行します。

>>> import redshift_connector

AWS認証情報を使用して Amazon Redshift クラスターに接続するには、以下のコマンドを実行します。

conn = redshift_connector.connect( host='examplecluster.abc123xyz789.us-west-1.redshift.amazonaws.com', port=5439, database='dev', user='awsuser', password='my_password' )