microsoft / azure-pipelines-terraform

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

TerraformInstaller@0 does not support ARM64 builds #116

Closed danieljurek closed 1 year ago

danieljurek commented 1 year ago

When running the terraform installer task (as in this example) on an ARM64 build agent

  - task: ms-devlabs.custom-terraform-tasks.custom-terraform-installer-task.TerraformInstaller@0
    inputs:
      terraformVersion: "latest"

We get the following error:

##[error]Error: Architecture arm64 is not supported

It looks like this can be fixed by adding support for arm64 to this logic: https://github.com/microsoft/azure-pipelines-terraform/blob/main/Tasks/TerraformInstaller/src/terraform-installer.ts#L103-L114

In this case, I would expect os.arch() to return arm64 which would map directly to creating the appropriate filename with the existing logic. https://releases.hashicorp.com/terraform/1.3.6/

mericstam commented 1 year ago

HI, thanks for the finding. I will add this to next release.

rajeshkamal5050 commented 1 year ago

Hi @mericstam Do you have any timelines in getting this fixed?

cc: @savannahostrowski

mericstam commented 1 year ago

Recently did a maintenance release, but did not have a chance to add this into it. Have a pretty low bandwidth to test the PR issued at the moment, but hoping my day job will be a bit less and not spill over into the evenings in near future. I am hoping for next week or so,

mericstam commented 1 year ago

Approved and published. Thanks @NixM0nk3y for the help!