From a8119221c62e1bdfb8a32a589e27c3c30a29fce4 Mon Sep 17 00:00:00 2001 From: Dipti Pai Date: Mon, 26 Aug 2024 22:24:39 -0700 Subject: [PATCH] If applied, this commit adds devops terraform module that takes creates azure devops project and repository. Signed-off-by: Dipti Pai --- tf-modules/azure/devops/README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/tf-modules/azure/devops/README.md b/tf-modules/azure/devops/README.md index 470f7db..75199fe 100644 --- a/tf-modules/azure/devops/README.md +++ b/tf-modules/azure/devops/README.md @@ -1,9 +1,27 @@ # DevOps Module -Configuration in this directory creates an Azure DevOps Project and repository. +Configuration in this directory creates an Azure DevOps Project and repository. ## Usage +Legacy shared modules with their own provider configurations are not compatible +with new features like for_each, count and depends_on as described +[here](https://developer.hashicorp.com/terraform/language/modules/develop/providers#legacy-shared-modules-with-provider-configurations). +To use these features by passing provider configuration to the legacy module, +create version.tf file with the following content - + +```hcl +terraform { + required_providers { + azuredevops = { + source = "microsoft/azuredevops" + } + } +} +``` + +In main.tf, create the provider configuration and pass it to the devops module. + ```hcl provider "azuredevops" { org_service_url = "https://dev.azure.com/azuredevops_org" @@ -20,3 +38,5 @@ module "devops" { repository_name = local.repo_name } ``` + +