Skip to content

Converts a Cloudformation Registry provider schema to a CDK typescript library.

License

Notifications You must be signed in to change notification settings

RenovoSolutions/cfn-provider-to-cdk-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cfn-provider-to-cdk-library

  • Create a virtual environment python3 -m venv venv and activate it source venv/bin/activate
  • Install requirements pip install -r requirements.txt
  • Run python3 convert.py --schema-url <url> where the URL is the provider JSON schema file for a Cloudformation Registry resource. This python code will convert that provider schema to a CDK typescript library using cfn2ts from the aws-cdk tools in the aws-cdk code repo.
  • Inside the resulting directory run:
    • npm install
    • tsc
    • npm publish

This is hacky. Results not guaranteed. Currently doesn't support a locally stored schema but could easily be converted to do so.

About

Converts a Cloudformation Registry provider schema to a CDK typescript library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages