GitLab + Terraform

Hello to you all.

I have a problem and I don’t know how to solve it.

I have my project and within my project I created several folders for different Stacks, example:

Project 01 (my project)

VPC
EC2 site (folder within the project)
ECS

As we know terraform must be started and run in the current directory.

but whenever I run the pipeline the terraform init returns me error, saying that the directory is empty (it runs at the root of the project)

I would like to know if there is any way for the pipeline to identify which folder I’m working on and when to commit and merge it into the stack folder.

Thank you