Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Terraform init not working as expected #672

Open
rahul-santosh7 opened this issue May 30, 2023 · 1 comment
Open

Terraform init not working as expected #672

rahul-santosh7 opened this issue May 30, 2023 · 1 comment

Comments

@rahul-santosh7
Copy link

##[error]Error: There was an error when attempting to execute the process 'C:\hostedtoolcache\windows\terraform\1.4.6\x64\terraform.exe'. This may indicate the process failed to start. Error: spawn C:\hostedtoolcache\windows\terraform\1.4.6\x64\terraform.exe ENOENT
image

yaml task

  • task: TerraformInstaller@1
    inputs:
    terraformVersion: 'latest'

    • task: TerraformTaskV1@0
      displayName: 'init'
      inputs:
      provider: 'azurerm'
      command: init
      workingDirectory: '$(System.DefaultWorkingDirectory)/_Terraform/05_Keyvault/vm.tf'
      backendServiceArm: 'Pipeline acess'
      backendAzureRmResourceGroupName: 'DefaultResourceGroup-EUS'
      backendAzureRmStorageAccountName: 'statefile123'
      backendAzureRmContainerName: 'rahul'
      backendAzureRmKey: 'terraform.tfstate'
@rahul-santosh7
Copy link
Author

This is happening with only yaml pipeline and I did not observe an issue with the classic pipeline. I have defined yaml correctly still its showing something is missing
image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant