https://pulumi.com logo
#typescript
Title
# typescript
d

damp-painting-47843

11/28/2022, 6:27 PM
Trying to retrieve a secret using aws.secretsmanager.getSecretVersionOutput but keep getting:
Copy code
Secrets Manager Secret "my-secret-name" Version "AWSCURRENT" not found
The secret exists with friendly name ‘my-secret-name’ and I have confirmed with
aws secretsmanager list-secrets
v

victorious-church-57397

11/28/2022, 6:31 PM
Can you share the code you’re using to grab the secret?
d

damp-painting-47843

11/28/2022, 6:33 PM
Ugh. Nevermind. I just tried the ARN and it worked, and then I realized I misspelled the name because I’m an idiot.
The error was a little confusing because I thought the secret existed, but not the version, but in reality it just couldn’t find any secret by that name.