Trying to retrieve a secret using aws.secretsmanag...
# typescript
d
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
Can you share the code you’re using to grab the secret?
d
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.