/terraform_azurerm_resourcegroup_version3

Terraform Module to create Resource Groups. Makes use of terraform_azurerm_regions_type1 to validate location.

Primary LanguageHCLApache License 2.0Apache-2.0

Terraform

README

This is the link to Cloud This is the CHANGELOG file This is the NOTICE file This is the LICENSE file

Overview

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.

Requirements

Name Version
azurerm >= 2.98

Providers

Name Version
azurerm >= 2.98

Modules

Name Source Version
region github.com/rmsmatos/terraform_azurerm_regions_version1 n/a

Resources

Name Type
azurerm_resource_group.resourcegroup resource

Inputs

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

Outputs

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.

Example

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"
  }
}

Limitations

Known Issues

Documentation

Related documentation

Authors

Created and maintained by Rui Matos.
©Rui Matos 2023

License

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).