I have 3 Terraform directories:
test_1
test_2
test_3
I would like to run terraform init in each of these directories. Is there a way to do this with a loop instead of specifying it 3 individual times?
I have the below code that runs it once inside only test_1 directory.
defaults:
run:
working-directory: test_1
jobs:
terraform-plan:
name: "Terraform"
runs-on: ubuntu-latest
steps:
- name: "Run - Terraform Init"
run: terraform init