======================================
AWS CFN Custom resource Resolve parser
======================================
.. image:: https://img.shields.io/pypi/v/aws_cfn_custom_resource_resolve_parser.svg
:target: https://pypi.python.org/pypi/aws_cfn_custom_resource_resolve_parser
.. image:: https://readthedocs.org/projects/aws-cfn-custom-resource-resolve-parser/badge/?version=latest
:target: https://aws-cfn-custom-resource-resolve-parser.readthedocs.io/en/latest/?version=latest
:alt: Documentation Status
----------------------------------------------------------------------------------------------------
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
=======
.. code-block:: python
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.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
Raw data
{
"_id": null,
"home_page": "",
"name": "aws_cfn_custom_resource_resolve_parser",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "John Preston",
"author_email": "john@ews-network.net",
"download_url": "https://files.pythonhosted.org/packages/d1/7a/ab62e0b9452652408932bffdb37a9303289730f11292632a2ed7cfb33be8/aws_cfn_custom_resource_resolve_parser-0.3.2.tar.gz",
"platform": null,
"description": "======================================\nAWS CFN Custom resource Resolve parser\n======================================\n\n\n.. image:: https://img.shields.io/pypi/v/aws_cfn_custom_resource_resolve_parser.svg\n :target: https://pypi.python.org/pypi/aws_cfn_custom_resource_resolve_parser\n\n.. image:: https://readthedocs.org/projects/aws-cfn-custom-resource-resolve-parser/badge/?version=latest\n :target: https://aws-cfn-custom-resource-resolve-parser.readthedocs.io/en/latest/?version=latest\n :alt: Documentation Status\n\n\n----------------------------------------------------------------------------------------------------\nSmall lib to parse and retrieve secret from AWS Secrets manager using the CFN resolve format string\n----------------------------------------------------------------------------------------------------\n\nIntent\n=======\n\nCurrently in AWS CloudFormation, using **{{resolve}}** does not work for custom resources. Pending the feature being\nreleased, when the use of private resource types is not possible for the use-case, this small lib aims to allow\nparsing secrets so that you can today write your CFN templates with resolve.\n\nRequirements\n=============\n\nSadly, this means the lambda function using this library will still need IAM access directly, and cannot use the role\nused by CloudFormation on create/update currently.\n\nUsage\n=======\n\n.. code-block:: python\n\n from aws_cfn_custom_resource_resolve_parser import handle\n secret_string = r\"{{resolve:secretsmanager:mysecret:SecretString:password}}\"\n secret_value = handle(secret_string)\n\n\n* Documentation: https://aws-cfn-custom-resource-resolve-parser.readthedocs.io.\n\nCredits\n-------\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n",
"bugtrack_url": null,
"license": "MPL-2.0",
"summary": "AWS CFN Custom Resource parser for dynamic values",
"version": "0.3.2",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f2a03227948972f29a4d5873d7e454eeee4405f5663c7859baca1ea9cf7c4b9c",
"md5": "0dfeb4704ba498aed9036907880f50a5",
"sha256": "d84bc2ae017817213d6c0d9af38753d1a627ea6880f5c13e2d4c26660f6a677b"
},
"downloads": -1,
"filename": "aws_cfn_custom_resource_resolve_parser-0.3.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0dfeb4704ba498aed9036907880f50a5",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 9133,
"upload_time": "2024-01-03T23:26:11",
"upload_time_iso_8601": "2024-01-03T23:26:11.299719Z",
"url": "https://files.pythonhosted.org/packages/f2/a0/3227948972f29a4d5873d7e454eeee4405f5663c7859baca1ea9cf7c4b9c/aws_cfn_custom_resource_resolve_parser-0.3.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d17aab62e0b9452652408932bffdb37a9303289730f11292632a2ed7cfb33be8",
"md5": "b701ef30adc038e929f37f8fe692cdf3",
"sha256": "a1e8c2f5291a331e6999a91ad7e1d8ba5c7d3387c3f5c2524a30d511146d4c3d"
},
"downloads": -1,
"filename": "aws_cfn_custom_resource_resolve_parser-0.3.2.tar.gz",
"has_sig": false,
"md5_digest": "b701ef30adc038e929f37f8fe692cdf3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 8660,
"upload_time": "2024-01-03T23:26:12",
"upload_time_iso_8601": "2024-01-03T23:26:12.543743Z",
"url": "https://files.pythonhosted.org/packages/d1/7a/ab62e0b9452652408932bffdb37a9303289730f11292632a2ed7cfb33be8/aws_cfn_custom_resource_resolve_parser-0.3.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-03 23:26:12",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "aws_cfn_custom_resource_resolve_parser"
}