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

https://github.com/questopshub/terraform-azurerm-resource-group

Terraform module to create an Azure Resource Group.
https://github.com/questopshub/terraform-azurerm-resource-group

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

Last synced: 3 months ago
JSON representation

Terraform module to create an Azure Resource Group.

Awesome Lists containing this project

README

        

# Azure Resource Group Terraform Module

Terraform module to create an Azure Resource Group.

# 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_resource_group.resource_group](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [location](#input\_location) | (Required) The Azure Region where the Resource Group should exist. Changing this forces a new Resource Group to be created. | `string` | n/a | yes |
| [managed\_by](#input\_managed\_by) | (Optional) The ID of the resource or application that manages this Resource Group. | `string` | `null` | no |
| [name](#input\_name) | (Required) The Name which should be used for this Resource Group. Changing this forces a new Resource Group 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 |
|------|-------------|
| [id](#output\_id) | The ID of the Resource Group. |
| [location](#output\_location) | The Location of the Resource Group. |
| [name](#output\_name) | The Name of the Resource Group. |
| [tags](#output\_tags) | The Tags of the Resource Group. |