Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 2.77 KB

File metadata and controls

43 lines (32 loc) · 2.77 KB

Requirements

Name Version
terraform >= 1.6.3
azuredevops 1.12.0

Providers

Name Version
azuredevops 1.12.0
azurerm 4.55.0

Modules

No modules.

Resources

Name Type
azuredevops_git_repository.main resource
azuredevops_project.main data source
azurerm_client_config.current data source

Inputs

Name Description Type Default Required
azuredevops_project The name of the Azure DevOps project where repositories will be created. string n/a yes
init_type Defines how the repository should be initialized:
- Uninitialized: Creates an empty repository
- Clean: Creates a repository with a README
- Import: Imports content from an existing repository
string "Clean" no
repo_enabled Boolean flag to control whether repositories should be created. bool true no
repositories Map of repositories to create. Each repository can have its own default branch.

Example:
repositories = {
repo1 = {
name = "repo1"
default_branch = "main"
}
repo2 = {
name = "repo2"
default_branch = "master"
}
}
map(object({
name = string
default_branch = optional(string)
}))
n/a yes

Outputs

Name Description
repository_branches Default branches of the created repositories.
repository_ids IDs of the created repositories.
repository_names Names of the created repositories.
repository_urls Remote URLs of the created repositories.