Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we run synth programmatically? #1467

Closed
rui-ktei opened this issue Jan 2, 2019 · 2 comments
Closed

Can we run synth programmatically? #1467

rui-ktei opened this issue Jan 2, 2019 · 2 comments

Comments

@rui-ktei
Copy link

rui-ktei commented Jan 2, 2019

Hello, first of all, thank you for building this tool. I've been waiting for such tool for a long time.

I do have a TypeScript project that parses our own DSL to CloudFormation. Now with this tool, I can easily generate CloudFormation given our DSL and the generated templates will follow whatever best practices that you guys have built in - fantastic! However, instead of runniny CLI cdk synth everytime, is there any programmatic way to generate CloudFormation?

For example, some API like new cdk.CfnBuilder().Build(app) will return a list of CF stack templates that we declared in the app, this way I can easily integrate this library with our existing tool.

Thank you!

@rix0rrr
Copy link
Contributor

rix0rrr commented Jan 2, 2019

Duplicate of https://github.com/awslabs/aws-cdk/issues/601, so closing this ticket.

This request is on our radar, but at the moment the only supported method of doing this is by running the cdk application in a subprocess.

@rix0rrr rix0rrr closed this as completed Jan 2, 2019
@rix0rrr
Copy link
Contributor

rix0rrr commented Jan 2, 2019

(Please +1 the other ticket as a signal of need to help us prioritize)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants