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 📈
- Host: GitHub
- URL: https://github.com/libre-devops/terraform-azuredevops-project
- Owner: libre-devops
- License: mit
- Created: 2024-03-18T15:50:58.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-18T16:52:37.000Z (about 2 years ago)
- Last Synced: 2025-04-08T06:39:51.704Z (about 1 year ago)
- Language: PowerShell
- Size: 23.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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 |