IssueRaiser

API to interact with terraform cli

<!--- Please keep this note for the community ---> ### Community Note * Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request * Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request * If you are interested in working on this issue or have submitted a pull request, please leave a comment <!--- Thank you for keeping this note for the community ---> ### Description It would be very useful to have an API to interact with terraform cli (not cloud) from cdk. Example below: ```python app = App() MyStack(app, "automate-everything") synth = app.synth() plan = app.plan(synth) if plan.changes is not None: if len(plan.changes.module.custom.fruits) > 4: app.apply(synth, target='module.custom.fruits') ``` <!--- Please leave a helpful description of the feature request here. ---> <!--- Information about code formatting: https://help.github.com/articles/basic-writing-and-formatting-syntax/#quoting-code ---> ### References https://github.com/hashicorp/terraform-cdk/issues/225 <!--- Information about referencing Github Issues: https://help.github.com/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests Are there any other GitHub issues (open or clo

Posted by JayDoubleu on Jul 23, 2020, 11:03 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments

github (SaaS)

API to interact with terraform cli

JayDoubleuJul 23, 2020, 11:03 AM

<!--- Please keep this note for the community ---> ### Community Note * Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request * Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request * If you are interested in working on this issue or have submitted a pull request, please leave a comment <!--- Thank you for keeping this note for the community ---> ### Description It would be very useful to have an API to interact with terraform cli (not cloud) from cdk. Example below: ```python app = App() MyStack(app, "automate-everything") synth = app.synth() plan = app.plan(synth) if plan.changes is not None: if len(plan.changes.module.custom.fruits) > 4: app.apply(synth, target='module.custom.fruits') ``` <!--- Please leave a helpful description of the feature request here. ---> <!--- Information about code formatting: https://help.github.com/articles/basic-writing-and-formatting-syntax/#quoting-code ---> ### References https://github.com/hashicorp/terraform-cdk/issues/225 <!--- Information about referencing Github Issues: https://help.github.com/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests Are there any other GitHub issues (open or clo

Comments (0)

No comments yet. Start the discussion.

Comment on this issue