skip to Main Content

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


  1. Remember that you need a concrete provider for Azure DevOps, apart of Azure

    So once checked it, define a terraform init and then terraform validate to see if not return any other message

    Login or Signup to reply.
  2. Just 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: enter image description here

    Can you share with us your init properties?
    In the terraform config file what azurerm version are you using?

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search