What is the command to install azuredevops provider in cdktf?

276 Views Asked by At

What is the command to install azuredevops provider in cdktf ? Something like ** npm install @cdktf/provider-azuredevops**

2

There are 2 best solutions below

0
On

If you want to use the Azure Devops Provider you need to add the provider to your cdktf.json and then run cdktf get to generate the bindings.

0
On

As of writing (26 June 2022) there doesn't appear to be an npm package like @cdktf/provider-azuredevops or similar yet.

The registry entry for the Terraform provider is located here: https://registry.terraform.io/providers/microsoft/azuredevops/latest/docs

The source code can be found here: https://github.com/microsoft/terraform-provider-azuredevops

Here are two possible work arounds until an appropriate npm package for CDKTF becomes available:

  1. Have a separate Terraform project and use Terraform proper including the Terraform Provider for Azure DevOps (see links above)
  2. Use the Azure DevOps REST API, see https://learn.microsoft.com/en-us/rest/api/azure/devops/?view=azure-devops-rest-7.1

In case any reader has come across an npm package for CDKTF, please consider adding a new answer to this SO question.