Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/questopshub/terraform-azurerm-user-assigned-identity

Terraform module to create a User Assigned Managed Identity.
https://github.com/questopshub/terraform-azurerm-user-assigned-identity

azure azure-infrastructure iac infrastructure-as-code terraform terraform-module

Last synced: 9 days ago
JSON representation

Terraform module to create a User Assigned Managed Identity.

Awesome Lists containing this project

README

        

# Azure User Assigned Managed Identity Terraform Module

Terraform module to create a User Assigned Managed Identity.

# Table of Contents

- [Azure Resource Naming Convention](#azure-resource-naming-convention)
- [Format](#Format)
- [Components](#Components)
- [Requirements](#requirements)
- [Providers](#providers)
- [Modules](#modules)
- [Resources](#resources)
- [Inputs](#inputs)
- [Outputs](#outputs)

## Azure Resource Naming Convention

Resource names should clearly indicate their type, workload, environment, and region. Using a consistent naming convention ensures clarity, uniformity, and easy identification across all repositories.

#### Format

```
----
```

#### Components

| **Component** | **Description** | **Example** |
|--------------------------|--------------------------------------------------------------------------------------|-------------------------|
| `resource_prefix` | Short abbreviation for the resource type. | `rg` (Resource Group) |
| `app_or_project` | Identifier for the application or project. | `qoh` |
| `environment` | Environment where the resource is deployed (`prod`, `dev`, `test`, etc.). | `prod` |
| `region` | Azure region where the resource resides (e.g., `cus` for `centralus`). | `cus` |
| `optional_unique_suffix` | Optional unique string for ensuring name uniqueness, often random or incremental. | `abcd`, `a42n` |

## Requirements

| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >=0.13 |
| [azurerm](#requirement\_azurerm) | >=4.0.0 |

## Providers

| Name | Version |
|------|---------|
| [azurerm](#provider\_azurerm) | >=4.0.0 |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [azurerm_user_assigned_identity.user_assigned_identity](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/user_assigned_identity) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [location](#input\_location) | (Required) The Azure Region where the User Assigned Identity should exist. Changing this forces a new User Assigned Identity to be created. | `string` | n/a | yes |
| [name](#input\_name) | (Required) Specifies the name of this User Assigned Identity. Changing this forces a new User Assigned Identity to be created. | `string` | n/a | yes |
| [resource\_group\_name](#input\_resource\_group\_name) | (Required) Specifies the name of the Resource Group within which this User Assigned Identity should exist. Changing this forces a new User Assigned Identity to be created. | `string` | n/a | yes |
| [tags](#input\_tags) | (Optional) A mapping of tags to assign to the resource. | `map(any)` | `{}` | no |

## Outputs

| Name | Description |
|------|-------------|
| [client\_id](#output\_client\_id) | The ID of the app associated with the Identity. |
| [id](#output\_id) | The ID of the User Assigned Identity. |
| [name](#output\_name) | The Name of the User Assigned Identity. |
| [principal\_id](#output\_principal\_id) | The ID of the Service Principal object associated with the created Identity. |
| [tenant\_id](#output\_tenant\_id) | The ID of the Tenant which the Identity belongs to. |