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

TerraformInstaller@1 fails with ambiguous identifier #205

Closed fheinonen closed 6 months ago

fheinonen commented 6 months ago

Using the TerraformInstaller@1 fails with the following error


Job Build: Step  task reference is invalid. The task name TerraformInstaller is ambiguous. Specify one of the following identifiers to resolve the ambiguity: ms-devlabs.custom-terraform-tasks.custom-terraform-installer-task.TerraformInstaller, charleszipp.azure-pipelines-tasks-terraform.azure-pipelines-tasks-terraform-installer.TerraformInstaller
mericstam commented 6 months ago

it is because you have two extensions that have the same tasktames. either reference by full name or remove one or the other. br Manuel

fheinonen commented 6 months ago

Why does this issue happen, haven't seen this any other tasks?

fheinonen commented 6 months ago

The original issue I was trying to solve was that the ubuntu-latest image gave me different terraform versions for plan and deploy, which fails the apply.

mericstam commented 6 months ago

Hi. ambiguous names can occur because different extensions can have the same task names. extension names have to unique but not the underlying tasks. The same can happen when you reference different third party libraries from different sources. I would say it is pretty common.