Use AWS RDS IAM secrets from duckdb-aws#467
Merged
Merged
Conversation
2 tasks
This PR builds on top of the following PR in duckdb-aws: - duckdb/duckdb-aws#144 With the RDS IAM token generation done in `duckdb-aws`, now two secrets are required for IAM auth: 1. secret of type `rds` that contains all the details used to generate the IAM token 2. secret of type `postgres` that contains all other connection details except the IAM token; the `rds` secret name is specified in this secret Example: ```sql LOAD aws; LOAD postgres; CREATE SECRET aws_rds_secret1 ( TYPE rds, PROVIDER credential_chain, PROFILE 'DatabaseAdministrator-<account_id>', CHAIN 'env;sso;', REGION 'eu-west-1', RDS_USER 'postgres', RDS_HOST 'database-1-instance-1.xxxxxxxxxxxx.eu-west-1.rds.amazonaws.com', RDS_PORT '5432' ); CREATE SECRET pg_rds_secret1 ( TYPE postgres, HOST 'database-1-instance-1.xxxxxxxxxxxx.eu-west-1.rds.amazonaws.com', PORT '5432', USER 'postgres', DATABASE 'postgres', SSLMODE require, AWS_RDS_SECRET aws_rds_secret1 ); ``` Testing: tested locally with Aurora using both `sso` and `env` providers. Ref: duckdb#464
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR builds on top of the following PR in duckdb-aws:
With the RDS IAM token generation done in
duckdb-aws, now two secretsare required for IAM auth:
rdsthat contains all the details used to generate the IAM tokenpostgresthat contains all other connection details except the IAM token; therdssecret name is specified in this secretExample:
Testing: tested locally with Aurora using both
ssoandenvproviders.Ref: #464