This Python example shows you how to retrieve the decrypted secret value from an AWS Secrets Manager secret. The secret could be created using either the Secrets Manager console or the CLI/SDK.
The code uses the AWS SDK for Python to retrieve a decrypted secret value.
To set up and run this example, you must first set up the following:
- Configure your AWS credentials, as described in Quickstart.
- Create a secret with the AWS Secrets Manager, as described in the AWS Secrets Manager Developer Guide
The following example shows how to:
- Retrieve a secret value using
get_secret_value
.