https://github.com/Azure-Terraform/terraform-azurerm-resource-group
Terraform Resource Group Module
https://github.com/Azure-Terraform/terraform-azurerm-resource-group
Last synced: about 1 month ago
JSON representation
Terraform Resource Group Module
- Host: GitHub
- URL: https://github.com/Azure-Terraform/terraform-azurerm-resource-group
- Owner: Azure-Terraform
- License: mit
- Created: 2020-05-13T09:53:29.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-04-14T15:25:38.000Z (2 months ago)
- Last Synced: 2025-04-14T16:36:25.107Z (2 months ago)
- Language: HCL
- Homepage:
- Size: 22.5 KB
- Stars: 5
- Watchers: 5
- Forks: 19
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- jimsghstars - Azure-Terraform/terraform-azurerm-resource-group - Terraform Resource Group Module (HCL)
README
# Azure - Resource Group Module
## Introduction
This module will create a new Resource Group in Azure.
Naming for this resource is as follows, based on published RBA naming convention (https://github.com/openrba/python-azure-naming).
----
## Providers
| Name | Version |
|------|---------|
| azurerm | >= 2.0.0 |
| random | >= 2.0.0 |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:-----:|
| location | Azure Region | `string` | n/a | yes |
| names | Names to be applied to resources (inclusive) |object({| n/a | yes |
environment = string
location = string
market = string
product_name = string
resource_group_type = string
})
| tags | Tags to be applied to resources (inclusive) | `map(string)` | n/a | yes |
| unique\_name | Freeform input to append to resource group name. Set to 'true', to append 5 random integers | `string` | n/a | yes |## Outputs
| Name | Description |
|------|-------------|
| id | Resource group id |
| location | Resource group location |
| name | Resource group name |
| rg | Resource group resource |## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.0 |
| [azurerm](#requirement\_azurerm) | >= 2.0.0 |
| [random](#requirement\_random) | >= 2.0.0 |## Providers
| Name | Version |
|------|---------|
| [azurerm](#provider\_azurerm) | >= 2.0.0 |
| [random](#provider\_random) | >= 2.0.0 |## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [azurerm_resource_group.rg](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group) | resource |
| [random_integer.suffix](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/integer) | resource |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [location](#input\_location) | Azure Region | `string` | n/a | yes |
| [name\_suffix](#input\_name\_suffix) | name suffix e.g rg, blue etc | `string` | `""` | no |
| [names](#input\_names) | Names to be applied to resources (inclusive) |object({| n/a | yes |
environment = string
location = string
market = string
product_name = string
resource_group_type = string
})
| [tags](#input\_tags) | Tags to be applied to resources (inclusive) | `map(string)` | n/a | yes |
| [unique\_name](#input\_unique\_name) | Freeform input to append to resource group name. Set to 'true', to append 5 random integers | `string` | `null` | no |## Outputs
| Name | Description |
|------|-------------|
| [id](#output\_id) | Resource group id |
| [location](#output\_location) | Resource group location |
| [name](#output\_name) | Resource group name |
| [rg](#output\_rg) | Resource group resource |