Is it possible to create a REST API that uses terraform scripts and can be used in CI/CD pipeline.
Thanks!
Is it possible to create a REST API that uses terraform scripts and can be used in CI/CD pipeline.
Thanks!
Hi @prnagasushma,
It is possible to do it but not really easy to do.
For example, Terraform Cloud is a HashiCorp-hosted system that can run Terraform remotely using an API, if you use the API-driven workflow. That API will ultimately run Terraform Core in a similar way as you might run it though Terraform CLI, so you could in principle build something similar yourself if you wish.
When Terraform Cloud runs Terraform Core it uses a similar approach as is documented in Running Terraform in Automation.