gruntwork-io / terratest

Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.
https://terratest.gruntwork.io/
Apache License 2.0
7.39k stars 1.32k forks source link

Setting up Terratest in GitHub Actions #1390

Open mostlycloudysky opened 5 months ago

mostlycloudysky commented 5 months ago

Describe the solution you'd like Currently, for setting up terratest in a github actions workflow, terraform cli needs to be installed. Given terraform has come up with custom Docker GitHub Actions that interact with Terraform Cloud API's rather than the traditional Terraform CLI, is there any plan to provide this capability with terratest as well.

Describe alternatives you've considered Currently, we package terraform cli from internet and store it in our on perm artifact repo and pull it down for setting up before running terratest

Additional context Here is terraform;s cloud workflow with GitHub :- https://github.com/hashicorp/tfc-workflows-github

mostlycloudysky commented 4 months ago

Thank you for the awesome work with terratest.

Could anyone please review my github issue and let me know if there is any roadmap to leverage terraform APIs vs cli

denis256 commented 4 months ago

Hi, I'm not sure if will be possible to integrate directly Terraform code in Terratest now because of the license change