/terraform_azurerm_resourcegroup_version2

Creates an Azure resource group using recommended abbreviation for Azure Resources, given a name, location and tags (optional). Also add supports for managed_by.

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). Also add supports for managed_by.

Requirements

Name Version
azurerm >= 2.98

Providers

Name Version
azurerm >= 2.98

Modules

No modules.

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
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_type1" {
  source   = "github.com/rmsmatos/terraform_azurerm_resourcegroup_version2"
  name     = "just-a-test"
  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).