Skip to content

CloudNationHQ/terraform-azure-rg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Resource Groups

This terraform module enables the efficient creation and management of azure resource groups. By offering customizable options for the name, location, management locks and tags, it brings granular control over your azure environment. Resource groups, functioning as logical containers, are essential for managing workloads and deploying accelerators.

Goals

The main objective is to create a more logic data structure, achieved by combining and grouping related resources together in a complex object.

The structure of the module promotes reusability. It's intended to be a repeatable component, simplifying the process of building diverse workloads and platform accelerators consistently.

A primary goal is to utilize keys and values in the object that correspond to the REST API's structure. This enables us to carry out iterations, increasing its practical value as time goes on.

A last key goal is to separate logic from configuration in the module, thereby enhancing its scalability, ease of customization, and manageability.

Features

  • provides support for both single and multiple resource groups, allowing flexible resource management.
  • implements optional management locks for enhanced security
  • supports leveraging existing resource groups

Requirements

Name Version
terraform ~> 1.0
azurerm ~> 3.61

Providers

Name Version
azurerm ~> 3.61

Resources

Name Type
azurerm_resource_group resource
azurerm_management_lock resource
azurerm_resource_group data source

Inputs

Name Description Type Required
groups describes resource groups object yes
use_existing_groups use existing resource groups globally bool no
region default azure region to be used string no
tags tags to be added to the resource string no

Outputs

Name Description
groups contains all resource group config
groups_existing contains all resource groups considered existing based on global and local flags.

Testing

Authors

Module is maintained by these awesome contributors.

License

MIT Licensed. See LICENSE for full details.