-
Go inside that directory: example:- cd env-dev
-
Run terraform comand from there: terraform init terraform plan terraform apply (it should create 24 resources)
====================================================================== HOW TO DEPLOY TERRAFORM CODE USING JENKINS PIPELINE
-
Install "Terraform" plugin in Jenkins: Jenkins Home --> Manage Jenkins ---> Manage Plugins ---> Available Plugins --> Search for Terraform plugin and install it.
-
Install Terraform Binary: Navigate to Dashboard > Manage Jenkins > Global Tool Configuration” page, and scroll to the Terraform section