sparse-intern-71089
03/01/2021, 6:54 AMwhite-balloon-205
<http://secret.id|secret.id>
or similar. If you have a code snippet of what you are trying - happy to provide more concrete suggestion.enough-leather-70274
03/01/2021, 7:33 AMconst secret = new Secret(construct, 'my-secret-name', {
generateSecretString: {
excludePunctuation: true,
generateStringKey: 'password',
},
});
enough-leather-70274
03/01/2021, 7:34 AMenough-leather-70274
03/01/2021, 7:35 AMenough-leather-70274
03/01/2021, 7:37 AMthe same value you used as an input to the SecretValueThis is what I want to avoid - I'd like to let SecretsManager generate the password, then have Pulumi fetch it, maybe via GetSecretVersion
enough-leather-70274
03/01/2021, 7:41 AMbillowy-army-68599
pulumi.Random
to generate the password:
https://www.pulumi.com/docs/reference/pkg/random/randompassword/
this marks it as secret and encrypts it in the Pulumi state, then I store that password in secrets managerbillowy-army-68599
GetRandomPassword
api (https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_GetRandomPassword.html) isn't declarative. CDK works around that by only calling that value when required, but pulumi random provider will do basically the same thing and is also declerativeenough-leather-70274
03/01/2021, 7:47 AMbillowy-army-68599
billowy-army-68599
enough-leather-70274
03/01/2021, 7:50 AM