An open API service indexing awesome lists of open source software.

https://github.com/libre-devops/terraform-azurerm-rg

A module used to create a resource group with a management lock in Azure :closed_lock_with_key:
https://github.com/libre-devops/terraform-azurerm-rg

azure azurerm azurerm-terraform-provider module terraform terraform-module

Last synced: 2 months ago
JSON representation

A module used to create a resource group with a management lock in Azure :closed_lock_with_key:

Awesome Lists containing this project

README

        

# Example Usage

```hcl
module "rg" {
source = "registry.terraform.io/libre-devops/rg/azurerm"

rg_name = "rg-${var.short}-${var.loc}-${terraform.workspace}-build" // rg-ldo-euw-dev-build
location = local.location // compares var.loc with the var.regions var to match a long-hand name, in this case, "euw", so "westeurope"
tags = local.tags

# lock_level = "CanNotDelete" // Do not set this value to skip lock
}
```

For a full example build, check out the [Libre DevOps Website](https://www.libredevops.org/quickstart/utils/terraform/using-lbdo-tf-modules-example.html)

## Requirements

No requirements.

## Providers

| Name | Version |
|------|---------|
| [azurerm](#provider\_azurerm) | n/a |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [azurerm_management_lock.rg_lock](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/management_lock) | resource |
| [azurerm_resource_group.main_rg](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [location](#input\_location) | The location for this resource to be put in | `string` | n/a | yes |
| [lock\_level](#input\_lock\_level) | Specifies the Level to be used for this RG Lock. Possible values are Empty (no lock), CanNotDelete and ReadOnly. | `string` | `""` | no |
| [rg\_name](#input\_rg\_name) | The name of the resource group, this module does not create a resource group, it is expecting the value of a resource group already exists | `string` | n/a | yes |
| [tags](#input\_tags) | The tags to associate with your network and subnets. | `map(string)` | n/a | yes |

## Outputs

| Name | Description |
|------|-------------|
| [rg\_id](#output\_rg\_id) | Resource group generated id |
| [rg\_location](#output\_rg\_location) | Resource group location (region) |
| [rg\_lock\_id](#output\_rg\_lock\_id) | The id of the resource group lock |
| [rg\_lock\_level](#output\_rg\_lock\_level) | The lock-level of the resource group lock |
| [rg\_name](#output\_rg\_name) | Resource group name |
| [rg\_tags](#output\_rg\_tags) | The tags of the resource group |