cloudout

Code generator for your AWS cloud resources.

Usage no npm install needed!

<script type="module">
  import cloudout from 'https://cdn.skypack.dev/cloudout';
</script>

README

Cloudout

Code generator for your AWS cloud resource.

Contents

Quick Start

  1. Install via npm:
npm install -g cloudout
  1. 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

  1. 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'