Skip to content

How to use native user to connect to redshift serverless #171

Answered by Brooke-white
mdeshmu asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mdeshmu , If you're looking to use native authentication (user/password), you can do so as follows:

connect_args = {
host='my-serverless-endpoint',
port=5439,
user='my_user',
password='my_password'
}

When performing IAM authentication, redshift-connector uses this boto3 API endpoint for retrieving temporary credentials. This API endpoint returns a database user and temporary database password used for authentication with Redshift.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Brooke-white
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants