If you try to follow GitLab's guide about Terraform you can be pretty confused by part of
include: - template: Terraform.gitlab-ci.yml ...
which seems to be doing most of the work in the example. Great that there is some way of having configuration templates, and great that they provided one for Terraform set up. The problem is that in the current state of the doc, it's pretty counter-intuitive to find the location of the files that we are including inside our configuration.
The files we are interested in are:
- Terraform.gitlab-ci.yml - the file we reference, and which imports:
I hope it will help some of you - I was really relieved to find those, and it removed one of the obstacles I had for getting Terraform managed deployment up & running in GitLab.