aws-parsecf-1.1.0
توضیحات
Parse AWS CloudFormation's intrinsic functions in the template
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aws-parsecf-1.1.0 |
| نام | aws-parsecf |
| نسخه کتابخانه | 1.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Oded Niv |
| ایمیل نویسنده | oded.niv@gmail.com |
| آدرس صفحه اصلی | https://github.com/puresec/aws-parsecf |
| آدرس اینترنتی | https://pypi.org/project/aws-parsecf/ |
| مجوز | MIT |
aws-parsecf
===========
(Tries to) parse AWS CloudFormation's intrinsic functions in the
template.
Quick Start
-----------
First, install the library:
.. code:: bash
pip install aws-parsecf
Then, from a Python interpreter:
.. code:: python
import aws_parsecf
with open('/path/to/cloudformation.json', 'r') as f:
print(aws_parsecf.load_json(f))
**Note** that some of the intrinsic functions require a configured
environment (like ``"Fn::GetAZs"``), so if you don't have it set:
.. code:: bash
aws configure
Usage
-----
3 simple methods:
.. code:: python
aws_parsecf.load_json(stream, region)
aws_parsecf.loads_json(string, region)
aws_parsecf.load_yaml(stream_or_string, region)
``region`` is optional, and defaults to the region you specified when using
``aws configure``. If you didn't specify a default region in
``aws configure``, or you want to override it, you should specify your
region:
.. code:: python
aws_parsecf.load_json(stream, region='us-west-1')
If your stack is parameterized, the default values will be used along with
possibly supplying parameters:
.. code:: python
aws_parsecf.load_json(stream, region, {'DomainName': "aws.parsecf.com"})
Contributing
------------
Running tests:
.. code:: bash
./setup.py test
Missing pieces:
- Support YAML short form.
You know the drill, PR!
نحوه نصب
نصب پکیج whl aws-parsecf-1.1.0:
pip install aws-parsecf-1.1.0.whl
نصب پکیج tar.gz aws-parsecf-1.1.0:
pip install aws-parsecf-1.1.0.tar.gz