https://github.com/dsb-norge/terraform-azurerm-mgmt-resource-lock
Terraform module to create management locks for resources
https://github.com/dsb-norge/terraform-azurerm-mgmt-resource-lock
dsb-terraform-module
Last synced: about 2 months ago
JSON representation
Terraform module to create management locks for resources
- Host: GitHub
- URL: https://github.com/dsb-norge/terraform-azurerm-mgmt-resource-lock
- Owner: dsb-norge
- License: isc
- Created: 2024-11-26T11:36:11.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-03-24T08:52:30.000Z (2 months ago)
- Last Synced: 2025-03-24T09:41:15.485Z (2 months ago)
- Topics: dsb-terraform-module
- Language: HCL
- Homepage: https://registry.terraform.io/modules/dsb-norge/mgmt-resource-lock
- Size: 52.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Terraform module for resource lock creation
Terraform module for adding [management locks](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/management_lock) to resources.
## Usage
Refer to [examples](https://github.com/dsb-norge/terraform-azurerm-mgmt-resource-lock/tree/main/examples) for usage of module.
## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.7.0, < 2.0.0 |
| [azurerm](#requirement\_azurerm) | >= 3.0.0, < 5.0.0 |## Resources
| Name | Type |
|------|------|
| [azurerm_management_lock.protected_resource_lock](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/management_lock) | resource |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [app\_name](#input\_app\_name) | Name of application/domain using resources | `string` | n/a | yes |
| [created\_by](#input\_created\_by) | The terraform project managing the lock(s) | `string` | n/a | yes |
| [protected\_resources](#input\_protected\_resources) | Map with configuration of what resources to lock and how. |map(object({| n/a | yes |
id : string,
name : string,
lock_level : optional(string),
description : optional(string),
}))## Outputs
| Name | Description |
|------|-------------|
| [management\_lock\_ids](#output\_management\_lock\_ids) | ids of the the management locks created by this module |## Modules
No modules.