limited-army-96747
12/21/2021, 2:14 PMconst rdsPassword = new random.RandomPassword('rds-password', {
length: 20,
special: true,
overrideSpecial: '_%@',
})
const rdsUsername = new random.RandomPassword('rds-username', {
length: 20,
special: false,
})
const rdsSecretVersion = new aws.secretsmanager.SecretVersion('rds-secret-version', {
secretId: rdsSecret.id,
secretString: JSON.stringify({
AURORA_USERNAME: rdsUsername.result.apply((value) => JSON.stringify(value)),
AURORA_PASSWORD: rdsPassword.result.apply((value) => JSON.stringify(value)),
}),
})