Terraform and Azure DevOps pipelines

0 votes

I am accessing the terraform module through the terraform code as shown below.

module "resourcegroup" {

  source = "git::https://github.com/hashicorp/example.git//azure-modules/resourcegroup"

}

I did the Terraform development through VS Code. I'm creating a build and release pipeline to automate the terraform tasks.

The release pipeline contains the Terraform tasks created using the Microsoft DevLabs extension:

  • Install Terraform task.
  • Terraform Init task which reads the Configuration Directory from the folder where the Build Pipeline places it.
  • The Terraform plan and apply tasks.

The issue that I'm having is:

  • The terraform files point to GitHub for building the modules, the release pipeline hangs in the task - Terraform Init.
  • The error message is: 
Waiting for console output from an agent... (-input=false was also provided in the Terraform Init task under Additional command arguments but it didn't resolve the issue)
  • There is no option to mention the Service Connection in the Release pipeline.

Apr 22, 2022 in Other DevOps Questions by Kichu
• 19,040 points
1,000 views

1 answer to this question.

0 votes

This error message is normal. Usually, the logs pop up after the completion of the pipeline. IF you want to view detailed logs please set "system. debug" as true in pipeline variables and re-run the pipeline.
Reference: https://github.com/microsoft/azure-pipelines-extensions/issues/805
I hope this helps.

Also, check that Terraform initialization fails in the Azure DevOps Pipeline. What could be the reasons?

answered Apr 23, 2022 by narikkadan
• 63,600 points

Related Questions In Other DevOps Questions

0 votes
1 answer
0 votes
1 answer

Create an automatic PR and complete it Azure DevOps

You can retrieve the creator ID after ...READ MORE

answered Feb 9, 2022 in Other DevOps Questions by Bhavitha
• 1,000 points
2,441 views
0 votes
1 answer

How to configure and execute Azure Devops classic editor pipeline after commit in Github?

If you're looking for CI/CD triggers, all ...READ MORE

answered Feb 10, 2022 in Other DevOps Questions by Bhavitha
• 1,000 points
1,064 views
0 votes
0 answers
0 votes
1 answer
0 votes
2 answers

Which is better azure devops or aws devops?

Azure DevOps, a part of Microsoft's cloud ...READ MORE

answered Jan 8 in Cloud Computing by anonymous
• 700 points
2,260 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP