Skip to main content

Overview

Manage secrets vaults in AWS Secrets Manager.

This module helps to manage secrets in AWS Secrets Manager. The secrets are stored as dictionaries, allowing for each secret to have multiple key-value pairs. There is the option to use default AWS KMS keys for encryption or create / specify a Customer-Manager Key (CMK).

aws_authenticate module is used to authenticate with AWS Security Token Service (STS) using AWS IAM access key credentials for the interactive mode. You can customize this to use named profiles or Single Sign-On (SSO) instead.

The following functions are available:

  • get_caller_identity
    • Get user identity from AWS Security Token Service (STS).

  • list_kms_keys
    • List all keys in AWS Key Management Service (KMS).

  • create_kms_key
    • Create key in AWS Key Management Service (KMS).

  • delete_kms_key
    • Delete key in AWS Key Management Service (KMS).

  • create_secrets_vault
    • Create secrets vault in AWS Secrets Manager.

  • list_secrets_vaults
    • List all secrets vaults in AWS Secrets Manager.

  • check_secrets_vault
    • Check if secrets vault exists in AWS Secrets Manager.

  • get_secrets_vault
    • Get secrets from AWS Secrets Manager.

  • update_secrets_vault
    • Update secrets vault in AWS Secrets Manager.

  • delete_secrets_vault
    • Delete secrets vault from AWS Secrets Manager.

  • create_secrets_dictionary
    • Create secrets dictionary from interactive inputs.

  • create_secrets_vault_arn
    • Create secrets vault Amazon Resource Name (ARN) from vault name.

Usage

Installation:

pip3 install aws_secrets_vault
# or
python3 -m pip install aws_secrets_vault

To use the included CLI tool interactively:

  • Set environment variables in BASH.

export AWS_ACCESS_KEY_ID = <AWS_access_key_id>
export AWS_SECRET_ACCESS_KEY = <AWS_secret_access_key>
export AWS_SESSION_TOKEN = <AWS_session_token, default is None>
export AWS_REGION = <AWS_region, default is us-east-1>
export AWS_PARTITION = <AWS_partition, default is aws>

aws_vault

Release files for aws_secrets_vault 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aws_secrets_vault 1.1.0
File Size Uploaded
aws_secrets_vault-1.1.0.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aws_secrets_vault 1.1.0
File Interpreter ABI Platform
aws_secrets_vault-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.0 kB

Release files / aws_secrets_vault-1.1.0.tar.gz

Download URL aws_secrets_vault-1.1.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d1f5c09f582d3ead2de3b4ef91245e5675f4935bbd01ca02e0e37401988966e2
BLAKE2b-256 checksum
How to use checksums
832dd45c98ac600e54a0936345786864deddcbcb5fa5c4e0d9fcec5aed3da2a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.3 Linux/5.15.154+

Release files / aws_secrets_vault-1.1.0-py3-none-any.whl

Download URL aws_secrets_vault-1.1.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
abd348f0a817608648e39bddd9f0bc136692ccafa9af6bb28793d5d1d474bd9e
BLAKE2b-256 checksum
How to use checksums
6ea91ddb58fe9945f3191e5938c1cebc8806f81099f97493a9411b78590ec01c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.3 Linux/5.15.154+

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page