Resource: azurerm_resourcegroup
Creates an Azure resource group using recommended abbreviation for Azure Resources, given a name, location and tags (optional). Will use module terraform_azurerm_regions_version1 to ensure proper name consistency.
Name |
Source |
Version |
region |
github.com/rmsmatos/terraform_azurerm_regions_version1 |
n/a |
Name |
Description |
Type |
Default |
Required |
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 |
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 |
environmentShortname |
(Optional) If set, this string will be appended to Resource Group Name. |
string |
null |
no |
managed_by |
(Optional) The ID of the resource or application that manages this Resource Group. |
string |
null |
no |
tags |
(Optional) A mapping of tags which should be assigned to the Resource Group. |
map(string) |
null |
no |
Name |
Description |
id |
Returns Resource Group ID. |
location |
Returns Resource Group Location. |
managed_by |
Returns the ID of the resource or application that manages this Resource Group. |
name |
Returns Resource Group Name. |
tags |
Returns Resource Group Tags. |
module "azurerm_resourcegroup_version3" {
source = "github.com/rmsmatos/terraform_azurerm_resourcegroup_version3"
name = "just-a-test"
environmentShortname = "dev"
location = "westeurope"
tags = {
environment = "production"
costcentre = "cost center"
}
}
Created and maintained by Rui Matos.
©Rui Matos 2023
This source code is licensed under the Apache-2.0 license found in the
LICENSE file in the root directory of this source tree license (./LICENSE.md).