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:
- Host: GitHub
- URL: https://github.com/libre-devops/terraform-azurerm-rg
- Owner: libre-devops
- License: mit
- Created: 2022-04-17T19:36:36.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-17T21:14:18.000Z (almost 3 years ago)
- Last Synced: 2024-12-26T16:12:12.847Z (4 months ago)
- Topics: azure, azurerm, azurerm-terraform-provider, module, terraform, terraform-module
- Language: HCL
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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 |