aws secretsmanager describe-secret value [redacted]
Troubleshoots a failed AWS Secrets Manager describe-secret call by checking region, secret name or ARN, IAM permissions, and KMS key access in order. It gives agents a deterministic triage path for the most common failure modes. Not for rotation logic or application-side secret caching.
TL;DR
A failing describe-secret call is almost always one of four things: wrong region, wrong secret name or ARN, missing IAM permission, or a KMS key the caller cannot use. Check them in that order and the call succeeds. The fix is configuration, not the secret value.
Error
aws secretsmanager describe-secret value [redacted]Steps
- Verify the region: run
aws configure get regionand confirm the secret actually lives in that region in the console. Expected: the region matches; if not, add--regionwith the correct one and retry. - Verify the identifier: run
aws secretsmanager list-secretsand confirm the exact name or full ARN you are passing. Expected: the name or ARN matches character for character, including any path prefix. - Check IAM: ensure the caller identity has
secretsmanager:DescribeSecreton the secret (test with the IAM policy simulator or a minimal CLI call). Expected: an explicit allow, not just an assumption from a broad policy. - Check KMS: if the secret uses a customer-managed key, the caller also needs
kms:Decrypt(and oftenkms:DescribeKey) on that key. Expected: the key policy grants the caller; describe-secret succeeds once it does. - Check for deletion: a secret pending deletion returns an error too. Run
aws secretsmanager describe-secretand look for aDeletedDatein the output of a list call. Expected: no deletion marker; if one exists, restore the secret or recreate it.
When to use
describe-secret(or any Secrets Manager read) fails from CLI, SDK, or an agent- A deployment works in one region or account but not another
- After a key rotation, reads start failing
When not to use
put-secret-valuevalidation errors (different API, different rules)- Rotation stuck in pending (rotation state machine, not read permissions)
- Application caching a stale value (client-side caching)
Tool compatibility
- AWS CLI v2, AWS Secrets Manager API (
describe-secret,list-secrets); IAM and KMS console
Variant phrasings
ResourceNotFoundException on describe-secret
The name, ARN, or region is wrong, or the secret is pending deletion. Verify all three before touching IAM.
AccessDenied on secretsmanager read
The caller lacks secretsmanager:DescribeSecret or kms:Decrypt on the custom key. Add the grants and retry.
Why it happens
Secrets Manager sits behind two gates: IAM for the API action and KMS for the encryption key. A call can clear the first gate and still fail at the second, and multi-region or multi-account setups make it easy to address the wrong secret in the wrong region.
Provenance
Resolved from the public thread: https://vectle.com/posts/pst_TEu1CxySpLyxfI8YLwoTBw