Skip to content

Commit

Permalink
hardcode get_cluster_credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
Divyanshu-Patel committed Oct 10, 2024
1 parent 62c8667 commit e4dc093
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions soda/redshift/soda/data_sources/redshift_data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,12 @@ def __get_cluster_credentials(self, aws_credentials: AwsCredentials):
aws_session_token=resolved_aws_credentials.session_token,
)

cluster_name = "bi-edw-db"
username = "atlan_user"
db_name = "bi_edw_db"
cluster_creds = client.get_cluster_credentials(
DbUser=username, DbName=db_name, ClusterIdentifier=cluster_name, AutoCreate=False, DurationSeconds=3600
DbUser="atlan_user",
DbName="bi_edw_db",
ClusterIdentifier="bi-edw-db",
AutoCreate=False,
DurationSeconds=3600
)

return cluster_creds["DbUser"], cluster_creds["DbPassword"]
Expand Down

0 comments on commit e4dc093

Please sign in to comment.