cloudout
v0.0.8
Published
Code generator for your AWS cloud resources.
Downloads
343
Maintainers
Readme
Cloudout
Code generator for your AWS cloud resource.
Contents
Quick Start
- Install via npm:
npm install -g cloudout
- Create your resource template:
Create the resource file referencing your cloud resources by one of the following - Cloudformation output - SSM Parameter store
Lets create a template file cloudout.yml
S3Buckets:
website: $cf:my_org_website:bucket_name
#$cf - This is for cloudformation
#my_org_website - This the cloudformation stack name
#bucket_name - This is the output key in the stack
Domains:
domain_name: $ssm:/prod/website/domain_name
#$ssm - This is for SSM ParameterStore
#/prod/website/domain_name - This is the parameter name
- Generate code
To generate the python file
cloudout gen -r us-east-1 -t python -i cloudout.yml -o resources.py
Output:
class S3Buckets(str):
website = 'actual_bucket_name'
class Domains(str):
domain_name = 'mydomain.com'