Im using terraform to deploy the infrastructure.Infra is already deployed and up an running. So I wanted to run the CICD pipeline for the Infrasturcture.
But I get the error – Terraform encountered an error while generating this plan. Specifically, when its reading the access connector resource API throws the bed request (400), Identity not found.
I tried to terraform plan
in vscode and it did not produce any error.
Im not sure what causes the problem.
If you need more information that might be crucial and I missed to say it (Im new to CICD and terraform), happy to add it to my description.
2
Answers
Remember that you need a concrete provider for Azure DevOps, apart of Azure
So once checked it, define a
terraform init
and thenterraform validate
to see if not return any other messageJust for clarification:
In the pipeline do you have terraform init and terraform plan?
This error can happen when the terraform is not able to find the configuration file.
Your terraform init should look like this if you’re using a config file:
Can you share with us your init properties?
In the terraform config file what azurerm version are you using?