This message was deleted.
# general
s
This message was deleted.
e
I'm doing something similar for Cloudflare zones. If you use the AWS library (i.e. boto3 in python) you can get a list of secrets, and conditionally create the secret resource if it doesn't exist or do getsecret (https://www.pulumi.com/docs/reference/pkg/aws/secretsmanager/getsecret/) to retrieve info if it does
m
I was hoping to avoid also using the AWS SDK, but if that’s our only solution, I guess it will have to do. Thank you.
e
you can try
GetSecret
with a try catch around it but not sure if that'll work if it doesnt exist - pulumi might just error