Skip to content

Latest commit

 

History

History
100 lines (77 loc) · 1.7 KB

azuredevops_project_permissions.md

File metadata and controls

100 lines (77 loc) · 1.7 KB

azuredevops_project_permissions

back

Index

Terraform

terraform {
  required_providers {
    azuredevops = ">= 0.1.3"
  }
}

top

Example Usage

module "azuredevops_project_permissions" {
  source = "./modules/azuredevops/r/azuredevops_project_permissions"

  # permissions - (required) is a type of map of string
  permissions = {}
  # principal - (required) is a type of string
  principal = null
  # project_id - (required) is a type of string
  project_id = null
  # replace - (optional) is a type of bool
  replace = null
}

top

Variables

variable "permissions" {
  description = "(required)"
  type        = map(string)
}

variable "principal" {
  description = "(required)"
  type        = string
}

variable "project_id" {
  description = "(required)"
  type        = string
}

variable "replace" {
  description = "(optional)"
  type        = bool
  default     = null
}

top

Resource

resource "azuredevops_project_permissions" "this" {
  # permissions - (required) is a type of map of string
  permissions = var.permissions
  # principal - (required) is a type of string
  principal = var.principal
  # project_id - (required) is a type of string
  project_id = var.project_id
  # replace - (optional) is a type of bool
  replace = var.replace
}

top

Outputs

output "id" {
  description = "returns a string"
  value       = azuredevops_project_permissions.this.id
}

output "this" {
  value = azuredevops_project_permissions.this
}

top