Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 851 Bytes

File metadata and controls

18 lines (10 loc) · 851 Bytes

AWS Secrets Manager

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.

Prerequisite tasks

To set up and run this example, you must first set up the following:

  1. Configure your AWS credentials, as described in Quickstart.
  2. Create a secret with the AWS Secrets Manager, as described in the AWS Secrets Manager Developer Guide

Retrieve the secret value

The following example shows how to:

  1. Retrieve a secret value using get_secret_value.