An open API service indexing awesome lists of open source software.

https://github.com/libre-devops/terraform-azuredevops-project

A module used to deploy projects 📈
https://github.com/libre-devops/terraform-azuredevops-project

Last synced: 7 months ago
JSON representation

A module used to deploy projects 📈

Awesome Lists containing this project

README

          

```hcl
locals {
date = formatdate("YYYYMM.DD.HHmmss", timestamp())
}

resource "azuredevops_project" "projects" {
for_each = { for k in var.azdo_projects : k.name => k }

name = each.value.name
description = each.value.description != null ? each.value.description : "Azure DevOps project created by terraform on ${local.date}"
visibility = each.value.visibility
version_control = each.value.version_control
work_item_template = each.value.work_item_template
features = {
boards = each.value.enable_boards == true ? "enabled" : "disabled"
testplans = each.value.enable_testplans == true ? "enabled" : "disabled"
pipelines = each.value.enable_pipelines == true ? "enabled" : "disabled"
repositories = each.value.enable_repositories == true ? "enabled" : "disabled"
artifacts = each.value.enable_artifacts == true ? "enabled" : "disabled"
}
}

```
## Requirements

No requirements.

## Providers

| Name | Version |
|------|---------|
| [azuredevops](#provider\_azuredevops) | n/a |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [azuredevops_project.projects](https://registry.terraform.io/providers/microsoft/azuredevops/latest/docs/resources/project) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [azdo\_projects](#input\_azdo\_projects) | The Azure DevOps projects to configure |

list(object({
name = string
description = optional(string)
visibility = optional(string)
version_control = optional(string)
work_item_template = optional(string, "")
enable_boards = optional(bool, false)
enable_repositories = optional(bool, true)
enable_pipelines = optional(bool, true)
enable_testplans = optional(bool, false)
enable_artifacts = optional(bool, false)
}))
| n/a | yes |

## Outputs

| Name | Description |
|------|-------------|
| [project\_description](#output\_project\_description) | The project description |
| [project\_id](#output\_project\_id) | The project id |
| [project\_name](#output\_project\_name) | The project name |
| [project\_process\_template\_id](#output\_project\_process\_template\_id) | The process template id |