```const rdsPassword = new random.RandomPassword('...
# general
l
Copy code
const 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)),
  }),
})