File tree 5 files changed +27
-3
lines changed
5 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
variables :
3
3
TF_MIN_VERSION : " 1.8"
4
- AZURERM_PROVIDER_MIN_VERSION : " 4.0 "
4
+ AZURERM_PROVIDER_MIN_VERSION : " 4.19 "
5
5
6
6
include :
7
7
- project : ' claranet/projects/cloud/azure/terraform/ci'
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ module "app_configuration" {
72
72
| Name | Version |
73
73
| ------| ---------|
74
74
| azurecaf | ~ > 1.2.28 |
75
- | azurerm | ~ > 4.0 |
75
+ | azurerm | ~ > 4.19 |
76
76
77
77
## Modules
78
78
@@ -95,6 +95,8 @@ module "app_configuration" {
95
95
| client\_ name | Client name/account used in naming. | ` string ` | n/a | yes |
96
96
| custom\_ name | Custom App Configuration, generated if not set. | ` string ` | ` "" ` | no |
97
97
| custom\_ replica | Create one or multiple custom AppConfig replica. | <pre >list(object({<br /> location = string<br /> name = string<br /> }))</pre > | ` [] ` | no |
98
+ | data\_ plane\_ proxy\_ authentication\_ mode | The data plane proxy authentication mode. | ` string ` | ` "Local" ` | no |
99
+ | data\_ plane\_ proxy\_ private\_ link\_ delegation\_ enabled | Whether data plane proxy private link delegation is enabled. | ` bool ` | ` false ` | no |
98
100
| default\_ tags\_ enabled | Option to enable or disable default tags. | ` bool ` | ` true ` | no |
99
101
| diagnostic\_ settings\_ custom\_ name | Custom name of the diagnostics settings, name will be ` default ` if not set. | ` string ` | ` "default" ` | no |
100
102
| environment | Project environment. | ` string ` | n/a | yes |
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ terraform {
2
2
required_providers {
3
3
azurerm = {
4
4
source = " hashicorp/azurerm"
5
- version = " ~> 4.0 "
5
+ version = " ~> 4.19 "
6
6
}
7
7
azurecaf = {
8
8
source = " claranet/azurecaf"
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ resource "azurerm_app_configuration" "main" {
11
11
soft_delete_retention_days = var. soft_delete_retention_days
12
12
local_auth_enabled = var. local_auth_enabled
13
13
14
+ data_plane_proxy_authentication_mode = var. data_plane_proxy_authentication_mode
15
+ data_plane_proxy_private_link_delegation_enabled = var. data_plane_proxy_private_link_delegation_enabled
16
+
14
17
dynamic "identity" {
15
18
for_each = var. identity [* ]
16
19
content {
@@ -36,6 +39,13 @@ resource "azurerm_app_configuration" "main" {
36
39
}
37
40
38
41
tags = merge (local. default_tags , var. extra_tags )
42
+
43
+ lifecycle {
44
+ precondition {
45
+ condition = (var. data_plane_proxy_authentication_mode == " Local" && ! var. data_plane_proxy_private_link_delegation_enabled ) || (var. data_plane_proxy_authentication_mode == " Pass-through" )
46
+ error_message = " `data_plane_proxy_private_link_delegation_enabled` cannot be set to `true` when `data_plane_proxy_authentication_mode` is set to `Local`"
47
+ }
48
+ }
39
49
}
40
50
41
51
moved {
Original file line number Diff line number Diff line change @@ -63,3 +63,15 @@ variable "custom_replica" {
63
63
default = []
64
64
nullable = false
65
65
}
66
+
67
+ variable "data_plane_proxy_authentication_mode" {
68
+ description = " The data plane proxy authentication mode."
69
+ type = string
70
+ default = " Local"
71
+ }
72
+
73
+ variable "data_plane_proxy_private_link_delegation_enabled" {
74
+ description = " Whether data plane proxy private link delegation is enabled."
75
+ type = bool
76
+ default = false
77
+ }
You can’t perform that action at this time.
0 commit comments