Skip to content

Latest commit

 

History

History
211 lines (173 loc) · 5.04 KB

azuredevops_serviceendpoint_azurecr.md

File metadata and controls

211 lines (173 loc) · 5.04 KB

azuredevops_serviceendpoint_azurecr

back

Index

Terraform

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

top

Example Usage

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

  # authorization - (optional) is a type of map of string
  authorization = {}
  # azurecr_name - (required) is a type of string
  azurecr_name = null
  # azurecr_spn_tenantid - (required) is a type of string
  azurecr_spn_tenantid = null
  # azurecr_subscription_id - (required) is a type of string
  azurecr_subscription_id = null
  # azurecr_subscription_name - (required) is a type of string
  azurecr_subscription_name = null
  # description - (optional) is a type of string
  description = null
  # project_id - (required) is a type of string
  project_id = null
  # resource_group - (required) is a type of string
  resource_group = null
  # service_endpoint_name - (required) is a type of string
  service_endpoint_name = null

  timeouts = [{
    create = null
    delete = null
    read   = null
    update = null
  }]
}

top

Variables

variable "authorization" {
  description = "(optional)"
  type        = map(string)
  default     = null
}

variable "azurecr_name" {
  description = "(required) - The AzureContainerRegistry registry which should be used."
  type        = string
}

variable "azurecr_spn_tenantid" {
  description = "(required) - The service principal tenant id which should be used."
  type        = string
}

variable "azurecr_subscription_id" {
  description = "(required) - The Azure subscription Id which should be used."
  type        = string
}

variable "azurecr_subscription_name" {
  description = "(required) - The Azure subscription name which should be used."
  type        = string
}

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

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

variable "resource_group" {
  description = "(required) - Scope Resource Group"
  type        = string
}

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

variable "timeouts" {
  description = "nested block: NestingSingle, min items: 0, max items: 0"
  type = set(object(
    {
      create = string
      delete = string
      read   = string
      update = string
    }
  ))
  default = []
}

top

Resource

resource "azuredevops_serviceendpoint_azurecr" "this" {
  # authorization - (optional) is a type of map of string
  authorization = var.authorization
  # azurecr_name - (required) is a type of string
  azurecr_name = var.azurecr_name
  # azurecr_spn_tenantid - (required) is a type of string
  azurecr_spn_tenantid = var.azurecr_spn_tenantid
  # azurecr_subscription_id - (required) is a type of string
  azurecr_subscription_id = var.azurecr_subscription_id
  # azurecr_subscription_name - (required) is a type of string
  azurecr_subscription_name = var.azurecr_subscription_name
  # description - (optional) is a type of string
  description = var.description
  # project_id - (required) is a type of string
  project_id = var.project_id
  # resource_group - (required) is a type of string
  resource_group = var.resource_group
  # service_endpoint_name - (required) is a type of string
  service_endpoint_name = var.service_endpoint_name

  dynamic "timeouts" {
    for_each = var.timeouts
    content {
      # create - (optional) is a type of string
      create = timeouts.value["create"]
      # delete - (optional) is a type of string
      delete = timeouts.value["delete"]
      # read - (optional) is a type of string
      read = timeouts.value["read"]
      # update - (optional) is a type of string
      update = timeouts.value["update"]
    }
  }

}

top

Outputs

output "app_object_id" {
  description = "returns a string"
  value       = azuredevops_serviceendpoint_azurecr.this.app_object_id
}

output "authorization" {
  description = "returns a map of string"
  value       = azuredevops_serviceendpoint_azurecr.this.authorization
}

output "az_spn_role_assignment_id" {
  description = "returns a string"
  value       = azuredevops_serviceendpoint_azurecr.this.az_spn_role_assignment_id
}

output "az_spn_role_permissions" {
  description = "returns a string"
  value       = azuredevops_serviceendpoint_azurecr.this.az_spn_role_permissions
}

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

output "service_principal_id" {
  description = "returns a string"
  value       = azuredevops_serviceendpoint_azurecr.this.service_principal_id
}

output "spn_object_id" {
  description = "returns a string"
  value       = azuredevops_serviceendpoint_azurecr.this.spn_object_id
}

output "this" {
  value = azuredevops_serviceendpoint_azurecr.this
}

top