Skip to content

Commit 794d582

Browse files
ibersanoMSgithub-actions[bot]
andauthored
feat: add v4 skus to variable pre-condition (#114)
Co-authored-by: github-actions[bot] <tfmod442916@users.noreply.github.com>
1 parent 9e8b6b5 commit 794d582

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

variables.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ variable "lock" {
5757
default = null
5858
description = <<DESCRIPTION
5959
Controls the Resource Lock configuration for this resource. The following properties can be specified:
60-
60+
6161
- `kind` - (Required) The type of lock. Possible values are `\"CanNotDelete\"` and `\"ReadOnly\"`.
6262
- `name` - (Optional) The name of the lock. If not specified, a name will be generated based on the `kind` value. Changing this forces the creation of a new resource.
6363
DESCRIPTION
@@ -100,7 +100,7 @@ variable "role_assignments" {
100100
default = {}
101101
description = <<DESCRIPTION
102102
A map of role assignments to create on the <RESOURCE>. The map key is deliberately arbitrary to avoid issues where map keys maybe unknown at plan time.
103-
103+
104104
- `role_definition_id_or_name` - The ID or name of the role definition to assign to the principal.
105105
- `principal_id` - The ID of the principal to assign the role to.
106106
- `description` - (Optional) The description of the role assignment.
@@ -109,7 +109,7 @@ variable "role_assignments" {
109109
- `condition_version` - (Optional) The version of the condition syntax. Leave as `null` if you are not using a condition, if you are then valid values are `2.0`.
110110
- `delegated_managed_identity_resource_id` - (Optional) The delegated Azure Resource Id which contains a Managed Identity. Changing this forces a new resource to be created. This field is only used in cross-tenant scenario.
111111
- `principal_type` - (Optional) The type of the `principal_id`. Possible values are `User`, `Group` and `ServicePrincipal`. It is necessary to explicitly set this attribute when creating role assignments if the principal creating the assignment is constrained by ABAC rules that filters on the PrincipalType attribute.
112-
112+
113113
> Note: only set `skip_service_principal_aad_check` to true if you are assigning a role to a service principal.
114114
DESCRIPTION
115115
nullable = false
@@ -121,7 +121,7 @@ variable "sku_name" {
121121
description = "The SKU name of the service plan. Defaults to `P1v2`."
122122

123123
validation {
124-
condition = can(regex("B1|B2|B3|D1|F1|I1|I2|I3|I1v2|I2v2|I3v2|I4v2|I5v2|I6v2|P1v2|P2v2|P3v2|P0v3|P1v3|P2v3|P3v3|P1mv3|P2mv3|P3mv3|P4mv3|P5mv3|S1|S2|S3|SHARED|EP1|EP2|EP3|FC1|WS1|WS2|WS3|Y1", var.sku_name))
124+
condition = can(regex("B1|B2|B3|D1|F1|I1|I2|I3|I1v2|I2v2|I3v2|I4v2|I5v2|I6v2|P1v2|P2v2|P3v2|P0v3|P1v3|P2v3|P3v3|P1mv3|P2mv3|P3mv3|P4mv3|P5mv3|P0v4|P1v4|P2v4|P3v4|P1mv4|P2mv4|P3mv4|P4mv4|P5mv4|S1|S2|S3|SHARED|EP1|EP2|EP3|FC1|WS1|WS2|WS3|Y1", var.sku_name))
125125
error_message = "The SKU name must be B1, B2, B3, D1, F1, I1, I2, I3, I1v2, I2v2, I3v2, I4v2, I5v2, I6v2, P1v2, P2v2, P3v2, P0v3, P1v3, P2v3, P3v3, P1mv3, P2mv3, P3mv3, P4mv3, P5mv3, S1, S2, S3, SHARED, EP1, EP2, EP3, FC1, WS1, WS2, WS3, and Y1."
126126
}
127127
}

0 commit comments

Comments
 (0)