When there are multiple TF files within the project
Proposal
The lib/gitlab/ci/templates/Terraform/Base.latest.gitlab-ci.yml
template consider that the project contains only one TF file within the TF_ROOT
directory.
It would be good ideia enhance this template to consider a project contains multiple TF files within diferent directories, for example:
├── prod
│ ├── app
│ │ ├── main.tf
│ │ └── outputs.tf
│ ├── mysql
│ │ ├── main.tf
│ │ └── outputs.tf
│ └── vpc
│ ├── main.tf
│ └── outputs.tf
├── qa
│ ├── app
│ │ ├── main.tf
│ │ └── outputs.tf
│ ├── mysql
│ │ ├── main.tf
│ │ └── outputs.tf
│ └── vpc
│ ├── main.tf
│ └── outputs.tf
└── stage
├── app
│ ├── main.tf
│ └── outputs.tf
├── mysql
│ ├── main.tf
│ └── outputs.tf
└── vpc
├── main.tf
└── outputs.tf
Edited by Selmison Campelo de Miranda