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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1e8c2f5291a331e6999a91ad7e1d8ba5c7d3387c3f5c2524a30d511146d4c3d |
|
MD5 | b701ef30adc038e929f37f8fe692cdf3 |
|
BLAKE2b-256 | d17aab62e0b9452652408932bffdb37a9303289730f11292632a2ed7cfb33be8 |
Hashes for aws_cfn_custom_resource_resolve_parser-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d84bc2ae017817213d6c0d9af38753d1a627ea6880f5c13e2d4c26660f6a677b |
|
MD5 | 0dfeb4704ba498aed9036907880f50a5 |
|
BLAKE2b-256 | f2a03227948972f29a4d5873d7e454eeee4405f5663c7859baca1ea9cf7c4b9c |