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

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

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({
id : string,
name : string,
lock_level : optional(string),
description : optional(string),
}))
| n/a | yes |

## Outputs

| Name | Description |
|------|-------------|
| [management\_lock\_ids](#output\_management\_lock\_ids) | ids of the the management locks created by this module |

## Modules

No modules.