Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant