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

https://github.com/telekom-mms/terraform-azuredevops-serviceendpoint

A Terraform module that manages the serviceendpoint resources from the azuredevops provider.
https://github.com/telekom-mms/terraform-azuredevops-serviceendpoint

azuredevops serviceendpoint-azurecr serviceendpoint-azurerm serviceendpoint-dockerregistry serviceendpoint-generic-git terraform

Last synced: 2 months ago
JSON representation

A Terraform module that manages the serviceendpoint resources from the azuredevops provider.

Awesome Lists containing this project

README

        

# serviceendpoint

This module manages the microsoft/azuredevops serviceendpoint resources, see https://registry.terraform.io/providers/microsoft/azuredevops/latest/docs.

For more information about the module structure see https://telekom-mms.github.io/terraform-template.

_<-- This file is autogenerated, please do not change. -->_

## Requirements

| Name | Version |
|------|---------|
| terraform | >=1.5 |
| azuredevops | >=0.6.0 |

## Providers

| Name | Version |
|------|---------|
| azuredevops | >=0.6.0 |

## Resources

| Name | Type |
|------|------|
| azuredevops_serviceendpoint_azurecr.serviceendpoint_azurecr | resource |
| azuredevops_serviceendpoint_azurerm.serviceendpoint_azurerm | resource |
| azuredevops_serviceendpoint_dockerregistry.serviceendpoint_dockerregistry | resource |
| azuredevops_serviceendpoint_generic_git.serviceendpoint_generic_git | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| serviceendpoint_azurecr | Resource definition, default settings are defined within locals and merged with var settings. For more information look at [Outputs](#Outputs). | `any` | `{}` | no |
| serviceendpoint_azurerm | Resource definition, default settings are defined within locals and merged with var settings. For more information look at [Outputs](#Outputs). | `any` | `{}` | no |
| serviceendpoint_dockerregistry | Resource definition, default settings are defined within locals and merged with var settings. For more information look at [Outputs](#Outputs). | `any` | `{}` | no |
| serviceendpoint_generic_git | Resource definition, default settings are defined within locals and merged with var settings. For more information look at [Outputs](#Outputs). | `any` | `{}` | no |

## Outputs

| Name | Description |
|------|-------------|
| serviceendpoint_azurecr | Outputs all attributes of resource_type. |
| serviceendpoint_azurerm | Outputs all attributes of resource_type. |
| serviceendpoint_dockerregistry | Outputs all attributes of resource_type. |
| serviceendpoint_generic_git | Outputs all attributes of resource_type. |
| variables | Displays all configurable variables passed by the module. __default__ = predefined values per module. __merged__ = result of merging the default values and custom values passed to the module |

## Examples

Minimal configuration to install the desired resources with the module

```hcl
data "azurerm_subscription" "current" {}

module "container" {
source = "registry.terraform.io/telekom-mms/container/azurerm"
container_registry = {
crmms = {
location = "westeurope"
resource_group_name = "rg-mms-github"
}
}
}

module "core" {
source = "registry.terraform.io/telekom-mms/core/azuredevops"
project = {
mms = {}
}
}

module "serviceendpoint" {
source = "registry.terraform.io/telekom-mms/serviceendpoint/azuredevops"
serviceendpoint_azurerm = {
mms = {
project_id = module.core.project["mms"].id
azurerm_subscription_id = data.azurerm_subscription.current.subscription_id
azurerm_subscription_name = data.azurerm_subscription.current.display_name
azurerm_spn_tenantid = data.azurerm_subscription.current.tenant_id
}
}
serviceendpoint_azurecr = {
crmms = {
project_id = module.core.project["mms"].id
resource_group = module.container.container_registry["crmms"].resource_group_name
azurecr_spn_tenantid = data.azurerm_subscription.current.tenant_id
azurecr_name = module.container.container_registry["crmms"].name
azurecr_subscription_id = data.azurerm_subscription.current.subscription_id
azurecr_subscription_name = data.azurerm_subscription.current.display_name
}
}
serviceendpoint_dockerregistry = {
crdocker = {
project_id = module.core.project["mms"].id
}
}
serviceendpoint_generic_git = {
github = {
project_id = module.core.project["mms"].id
repository_url = "https://github.com/telekom-mms/terraform-template"
}
}
}
```

Advanced configuration to install the desired resources with the module

```hcl
data "azurerm_subscription" "current" {}

module "container" {
source = "registry.terraform.io/telekom-mms/container/azurerm"
container_registry = {
crmms = {
location = "westeurope"
resource_group_name = "rg-mms-github"
}
}
}

module "core" {
source = "registry.terraform.io/telekom-mms/core/azuredevops"
project = {
mms = {}
}
}

module "serviceendpoint" {
source = "../terraform-azuredevops-serviceendpoint"
serviceendpoint_azurerm = {
mms = {
project_id = module.core.project["mms"].id
azurerm_subscription_id = data.azurerm_subscription.current.subscription_id
azurerm_subscription_name = data.azurerm_subscription.current.display_name
azurerm_spn_tenantid = data.azurerm_subscription.current.tenant_id
description = "Azure Resource Manager Connection"
}
}
serviceendpoint_azurecr = {
crmms = {
project_id = module.core.project["mms"].id
resource_group = module.container.container_registry["crmms"].resource_group_name
azurecr_spn_tenantid = data.azurerm_subscription.current.tenant_id
azurecr_name = module.container.container_registry["crmms"].name
azurecr_subscription_id = data.azurerm_subscription.current.subscription_id
azurecr_subscription_name = data.azurerm_subscription.current.display_name
description = "Azure Container Registry Connection"
}
}
serviceendpoint_dockerregistry = {
docker = {
project_id = module.core.project["mms"].id
description = "Docker Registry Connection"
}
}
serviceendpoint_generic_git = {
github = {
project_id = module.core.project["mms"].id
repository_url = "https://github.com/telekom-mms/terraform-template"
description = "GitHub Repository Connection for terraform template"
enable_pipelines_access = "true"
}
}
}
```