AWS CFN Custom Resource parser for dynamic values
Project description
Small lib to parse and retrieve secret from AWS Secrets manager using the CFN resolve format string
Intent
Currently in AWS CloudFormation, using {{resolve}} does not work for custom resources. Pending the feature being released, when the use of private resource types is not possible for the use-case, this small lib aims to allow parsing secrets so that you can today write your CFN templates with resolve.
Requirements
Sadly, this means the lambda function using this library will still need IAM access directly, and cannot use the role used by CloudFormation on create/update currently.
Usage
from aws_cfn_custom_resource_resolve_parser import handle
secret_string = r"{{resolve:secretsmanager:mysecret:SecretString:password}}"
secret_value = handle(secret_string)
Documentation: https://aws-cfn-custom-resource-resolve-parser.readthedocs.io.
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for aws_cfn_custom_resource_resolve_parser-0.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 794d3ac31e1129ee0598481ef688dec8dea7b83adbed77801185309569a6da9a |
|
MD5 | ea0135c5eb743270d93c4da5239b6123 |
|
BLAKE2b-256 | 9e39e6c6fbae003b55f3940142c7668d48398b907fb67d5515ae59add661adda |
Hashes for aws_cfn_custom_resource_resolve_parser-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28f2cbaa6ab354928fd73e02874b02e6fd7355f5e181c268355290cac4157657 |
|
MD5 | 56a3149e628f3d4e765a1333a70e1aab |
|
BLAKE2b-256 | 7b5affedeb07354576189f0f42616937d260beee7d28e1ad3a3bfa28baa8227c |