microsoft / azure-pipelines-terraform

Azure Pipelines tasks for installing Terraform and running Terraform commands in a build or release pipeline.
MIT License
95 stars 59 forks source link

Using the main.tfplan as an artifact in the release pipeline throws error #175

Open vineet-007 opened 10 months ago

vineet-007 commented 10 months ago

I'm creating a terraform build and release pipeline, producing the main.tfplan build artifact in the terraform plan step. This tfplan file is to be consumed in the release pipeline, but it throws the below error.

image

I'm thinking there is conflict with the provider credentials issue between tfplan file and the service connection logic. Can anyone please help me with this ?

mericstam commented 10 months ago

Hi, My guess is that the apply step can not find the main.tfplan file. If you supply your YAML code or if you use classic pipelines take some images of the ui of the pipeline so I can assist you.

BR

Manuel

vineet-007 commented 10 months ago

Hey @mericstam, my issue is related to https://github.com/microsoft/azure-pipelines-terraform/issues/145. I can close this one for now if someone's working on it.