aws-cfn-custom-resource-resolve-parser-0.2.2
توضیحات
AWS CFN Custom Resource parser for dynamic values
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aws-cfn-custom-resource-resolve-parser-0.2.2 |
| نام | aws-cfn-custom-resource-resolve-parser |
| نسخه کتابخانه | 0.2.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | John Preston |
| ایمیل نویسنده | john@ews-network.net |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/aws-cfn-custom-resource-resolve-parser/ |
| مجوز | MPL-2.0 |
======================================
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
نیازمندی
| مقدار | نام |
|---|---|
| >=1.26,<2.0 | boto3 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl aws-cfn-custom-resource-resolve-parser-0.2.2:
pip install aws-cfn-custom-resource-resolve-parser-0.2.2.whl
نصب پکیج tar.gz aws-cfn-custom-resource-resolve-parser-0.2.2:
pip install aws-cfn-custom-resource-resolve-parser-0.2.2.tar.gz