Invoke terraform from NodeJS

411 views
Skip to first unread message

Evgeny Faddeenkov

unread,
Jun 10, 2016, 3:43:23 AM6/10/16
to Terraform
Hello everyone,

I am looking for any information about the terraform API for NodeJS.
We need a way to invoke terraform from the existing NodeJS code which at the moment directly works with the AWS API.

Thank you in advance,

Evgeny

James Nugent

unread,
Jun 11, 2016, 8:46:16 AM6/11/16
to Terraform
Hi Evgeny!

There is no JavaScript interface to Teraform - it is written in Go. However, you can child_process in Node to run the Terraform binary from your program: https://nodejs.org/api/child_process.html#child_process_child_process

Thanks,


James
Reply all
Reply to author
Forward
0 new messages