curved-account-29261
01/17/2024, 6:47 AMsecret
and secretversion
and then retrieve the credentials (username
and password
) and then injecting them in the connection definition but it is not what I am looking for. I end up with a connection using Credential Type
Username and password. I want to use AWS Secrets Manager. The documentation doesn't provide much explanation on how to achieve it.
my Typescript code look like:
const redshiftConnection = new aws.glue.Connection("redshiftConnection", {
connectionProperties: {
JDBC_CONNECTION_URL: interpolate`jdbc:redshift://${redshiftWorkgroup.workgroupName}.${awsAccountId}.${region}.<http://redshift-serverless.amazonaws.com:${redshiftWorkgroup.port}/${dbname}|redshift-serverless.amazonaws.com:${redshiftWorkgroup.port}/${dbname}>`,
USERNAME: redshiftSecret.name.apply((name) => name as string),
PASSWORD: redshiftSecretVersion.secretString.apply((secret) => secret as string),
},
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by