AWS CLI 2 · Containers and secrets

Read a secret

Read a Secrets Manager secret value.

aws secretsmanager get-secret-value --secret-id prod/db --query SecretString --output text

Caution: This prints the secret in your terminal.

Official AWS CLI 2 documentation

More containers and secrets commands

All containers and secrets commands · AWS CLI 2 cheatsheet

Was this page helpful?