News for hackers. Stuff that matters.
Re:Ways to trigger Terraform cloud runs from GitHub by theteapot on Friday September 24, 2021 @01:34AM (#28638958)
> As opposed to just running it ad-hoc when a change is made?

Yes. I worked at a shop that made a terrible mess (at least IMHO) of things by using Terraform from Jenkins for everything. So build and rollout new Docker image -> `terraform apply` entire infrastructure from Jenkins.

To me use Terraform for Day-0 to build your infrastructure and CI/CD pipeline then occasional updates. CI/CD for the day-to-day, if you can get away with it.

I have read lots of people are doing Terraform from Jenkins. I guess there is a use case, just saying, probably best to think first.

Re:Ways to trigger Terraform cloud runs from GitHub by BrendanThompson on Friday September 24, 2021 @02:08AM (#28639125)
Absolutely does depend on what your use case is. I find for very self contained terraform code it’s fine just to use the VCS-driven workflow, but when you have either a lot of inter-dependency or template driven terraform code using something like API/CLI-driven is ideal.