https://pulumi.com logo
Title
c

creamy-knife-93354

05/03/2021, 3:13 PM
Newbie question coming up 🙂 In my stack definition, I'm generating some passwords using Pulumi.Random, which I'm then storing in AWS Secrets Manager. Back in my app, I now want to retrieve said secrets from Secrets Manager, e.g. using
Kralizek.Extensions.Configuration.AWSSecretsManager
. However, because Pulumi appends a generated ID to the secret names, I'm not sure what the best way is to map the secrets to .NET POCOs, since my app won't know the exact secret name.. Has anyone got some pro tips on this matter?
Just noticed that providing a
Name
in the SecretArgs actually removes the generated ID, which makes life a whole lot easier 🥳
b

bored-oyster-3147

05/03/2021, 3:44 PM
I tend to let pulumi control the name, I might provide a prefix with
NamePrefix
, and then I use the
ARN
in the output to refer to it from then on instead of relying on a static name.