Skip to content

Commit 052f56b

Browse files
authored
Slot locks (#93)
* module version update * locks, outputs, and pre-commit
1 parent 0e4e77b commit 052f56b

33 files changed

Lines changed: 179 additions & 36 deletions

File tree

README.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ The following resources are used by this module:
3939
- [azurerm_linux_web_app.this](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/linux_web_app) (resource)
4040
- [azurerm_linux_web_app_slot.this](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/linux_web_app_slot) (resource)
4141
- [azurerm_management_lock.pe](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/management_lock) (resource)
42+
- [azurerm_management_lock.slot](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/management_lock) (resource)
4243
- [azurerm_management_lock.storage_account](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/management_lock) (resource)
4344
- [azurerm_management_lock.this](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/management_lock) (resource)
4445
- [azurerm_monitor_diagnostic_setting.this](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/monitor_diagnostic_setting) (resource)
@@ -1038,6 +1039,11 @@ map(object({
10381039
value = optional(string)
10391040
})), {})
10401041
1042+
lock = optional(object({
1043+
kind = string
1044+
name = optional(string, null)
1045+
}), null)
1046+
10411047
logs = optional(map(object({
10421048
application_logs = optional(map(object({
10431049
azure_blob_storage = optional(object({
@@ -1242,6 +1248,14 @@ map(object({
12421248

12431249
Default: `{}`
12441250

1251+
### <a name="input_deployment_slots_inherit_lock"></a> [deployment\_slots\_inherit\_lock](#input\_deployment\_slots\_inherit\_lock)
1252+
1253+
Description: Whether to inherit the lock from the parent resource for the deployment slots.
1254+
1255+
Type: `bool`
1256+
1257+
Default: `true`
1258+
12451259
### <a name="input_diagnostic_settings"></a> [diagnostic\_settings](#input\_diagnostic\_settings)
12461260

12471261
Description: A map of diagnostic settings to create on the Key Vault. The map key is deliberately arbitrary to avoid issues where map keys maybe unknown at plan time.
@@ -1354,6 +1368,14 @@ Type: `string`
13541368

13551369
Default: `null`
13561370

1371+
### <a name="input_function_app_storage_account_inherit_lock"></a> [function\_app\_storage\_account\_inherit\_lock](#input\_function\_app\_storage\_account\_inherit\_lock)
1372+
1373+
Description: Should the Storage Account inherit the lock from the parent resource? Defaults to `true`.
1374+
1375+
Type: `bool`
1376+
1377+
Default: `true`
1378+
13571379
### <a name="input_function_app_storage_account_name"></a> [function\_app\_storage\_account\_name](#input\_function\_app\_storage\_account\_name)
13581380

13591381
Description: The name of the Storage Account to deploy the Function App in.
@@ -1969,14 +1991,22 @@ The following outputs are exported:
19691991

19701992
Description: The application insights resource.
19711993

1994+
### <a name="output_deployment_slot_locks"></a> [deployment\_slot\_locks](#output\_deployment\_slot\_locks)
1995+
1996+
Description: The locks of the deployment slots.
1997+
19721998
### <a name="output_identity_principal_id"></a> [identity\_principal\_id](#output\_identity\_principal\_id)
19731999

1974-
Description: value
2000+
Description: The object principal id of the resource.
19752001

19762002
### <a name="output_name"></a> [name](#output\_name)
19772003

19782004
Description: The name of the resource.
19792005

2006+
### <a name="output_private_endpoint_locks"></a> [private\_endpoint\_locks](#output\_private\_endpoint\_locks)
2007+
2008+
Description: The locks of the deployment slots.
2009+
19802010
### <a name="output_resource"></a> [resource](#output\_resource)
19812011

19822012
Description: This is the full output for the resource.
@@ -1985,6 +2015,10 @@ Description: This is the full output for the resource.
19852015

19862016
Description: This is the full output for the resource.
19872017

2018+
### <a name="output_resource_lock"></a> [resource\_lock](#output\_resource\_lock)
2019+
2020+
Description: The locks of the resources.
2021+
19882022
### <a name="output_resource_private_endpoints"></a> [resource\_private\_endpoints](#output\_resource\_private\_endpoints)
19892023

19902024
Description: A map of private endpoints. The map key is the supplied input to var.private\_endpoints. The map value is the entire azurerm\_private\_endpoint resource.
@@ -2001,6 +2035,10 @@ Description: The service plan resource.
20012035

20022036
Description: The storage account resource.
20032037

2038+
### <a name="output_storage_account_lock"></a> [storage\_account\_lock](#output\_storage\_account\_lock)
2039+
2040+
Description: The locks of the resources.
2041+
20042042
### <a name="output_system_assigned_mi_principal_id"></a> [system\_assigned\_mi\_principal\_id](#output\_system\_assigned\_mi\_principal\_id)
20052043

20062044
Description: value

examples/auto_heal_enabled/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ module "test" {
8686
source = "../../"
8787
8888
# source = "Azure/avm-res-web-site/azurerm"
89-
# version = "0.7.1"
89+
# version = "0.7.2"
9090
9191
enable_telemetry = var.enable_telemetry
9292

examples/auto_heal_enabled/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ module "test" {
8080
source = "../../"
8181

8282
# source = "Azure/avm-res-web-site/azurerm"
83-
# version = "0.7.1"
83+
# version = "0.7.2"
8484

8585
enable_telemetry = var.enable_telemetry
8686

examples/basic_auth/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ module "test" {
8787
source = "../../"
8888
8989
# source = "Azure/avm-res-web-site/azurerm"
90-
# version = "0.7.1"
90+
# version = "0.7.2"
9191
9292
enable_telemetry = var.enable_telemetry
9393

examples/basic_auth/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ module "test" {
8080
source = "../../"
8181

8282
# source = "Azure/avm-res-web-site/azurerm"
83-
# version = "0.7.1"
83+
# version = "0.7.2"
8484

8585
enable_telemetry = var.enable_telemetry
8686

examples/custom_domain/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ module "test" {
9595
source = "../../"
9696
9797
# source = "Azure/avm-res-web-site/azurerm"
98-
# version = "0.7.1"
98+
# version = "0.7.2"
9999
100100
enable_telemetry = var.enable_telemetry
101101

examples/custom_domain/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ module "test" {
9191
source = "../../"
9292

9393
# source = "Azure/avm-res-web-site/azurerm"
94-
# version = "0.7.1"
94+
# version = "0.7.2"
9595

9696
enable_telemetry = var.enable_telemetry
9797

examples/default/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ module "test" {
8686
source = "../../"
8787
8888
# source = "Azure/avm-res-web-site/azurerm"
89-
# version = "0.7.1"
89+
# version = "0.7.2"
9090
9191
enable_telemetry = var.enable_telemetry
9292

examples/default/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ module "test" {
8080
source = "../../"
8181

8282
# source = "Azure/avm-res-web-site/azurerm"
83-
# version = "0.7.1"
83+
# version = "0.7.2"
8484

8585
enable_telemetry = var.enable_telemetry
8686

examples/deployment_slot/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ module "test" {
8686
source = "../../"
8787
8888
# source = "Azure/avm-res-web-site/azurerm"
89-
# version = "0.7.1"
89+
# version = "0.7.2"
9090
9191
enable_telemetry = var.enable_telemetry
9292

0 commit comments

Comments
 (0)