-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
139 lines (120 loc) · 5.57 KB
/
variables.tf
File metadata and controls
139 lines (120 loc) · 5.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
variable "failover_vnet_name" {
type = string
description = "The name of the failover Virtual Network to be used in connecting Power Platform to Azure. Note that failover networks are required for Power Platform's enterprise policy connection."
}
variable "power_platform_billing_policy" {
type = object({
should_create = optional(bool, false)
name = string
})
description = <<DESCRIPTION
- `name`: The name of the Power Platform billing policy.
- `should_create`: If set to false, the billing policy will not be created. Defaults to false.
DESCRIPTION
}
variable "subscription_id" {
description = "The Azure subscription ID to use for billing."
type = string
}
variable "power_platform_environment" {
type = object({
name = string
id = string # Optional. If provided, the module will attempt to use the existing environment. If left blank, a new environment will be created.
language_code = number
currency_code = string
security_group_id = string
environment_type = string
location = string
})
description = <<DESCRIPTION
- `name`: The name of the Power Platform environment to be managed.
- `language_code`: The language code for the Power Platform environment.
- `currency_code`: The currency code for the Power Platform environment.
- `security_group_id`: The ID of the security group to be used for initial access to the Power Platform environment.
- `environment_type`: The type of the Power Platform environment to be managed.
DESCRIPTION
}
variable "power_platform_azure_region" {
type = string
description = "The Azure region to use for the Power Platform environment. This is used to determine the primary Azure region for the Power Platform resources."
default = null
}
variable "power_platform_managed_environment" {
type = object({
id = string # Optional. If provided, the module will attempt to use the existing managed environment. If left blank, a new environment will be created.
is_usage_insights_disabled = bool
is_group_sharing_disabled = bool
limit_sharing_mode = string
max_limit_user_sharing = number
solution_checker_mode = string
suppress_validation_emails = bool
})
description = <<DESCRIPTION
- `is_usage_insights_disabled`: Whether usage insights are disabled for the Power Platform managed environment.
- `is_group_sharing_disabled`: Whether group sharing is disabled for the Power Platform managed environment.
- `limit_sharing_mode`: The sharing mode for the Power Platform managed environment.
- `max_limit_user_sharing`: The maximum limit for user sharing in the Power Platform managed environment.
- `solution_checker_mode`: The solution checker mode for the Power Platform managed environment.
- `suppress_validation_emails`: Whether validation emails are suppressed for the Power Platform managed environment.
DESCRIPTION
}
variable "primary_subnet_id" {
type = string
description = "The ID of the primary subnet. Used in the Power Platform Enterprise Policy network connection."
}
variable "primary_vnet_name" {
type = string
description = "The name of the primary Virtual Network to be used in connecting Power Platform to Azure"
}
variable "failover_subnet_id" {
type = string
description = "The ID of the failover subnet. Used in the Power Platform Enterprise Policy network connection."
}
# required for AVM interface
variable "resource_group_name" {
type = string
description = "The name of the resource group to create this module's resources in"
}
variable "unique_id" {
type = string
description = "The unique ID to include with any resources generated by this module"
}
# tflint-ignore: terraform_unused_declarations
variable "customer_managed_key" {
type = object({
key_vault_resource_id = string
key_name = string
key_version = optional(string, null)
user_assigned_identity = optional(object({
resource_id = string
}), null)
})
default = null
description = <<DESCRIPTION
Customer-managed key encryption is not applicable for this module.
A map describing customer-managed keys to associate with the resource. This includes the following properties:
- `key_vault_resource_id` - The resource ID of the Key Vault where the key is stored.
- `key_name` - The name of the key.
- `key_version` - (Optional) The version of the key. If not specified, the latest version is used.
- `user_assigned_identity` - (Optional) An object representing a user-assigned identity with the following properties:
- `resource_id` - The resource ID of the user-assigned identity.
DESCRIPTION
}
variable "resource_share_user" {
type = set(string)
default = []
description = "A set of Microsoft Entra ID object IDs for interactive users to share the managed resources with. This is used to share resource visibility after a service principal creates resources. If no value is specified, only the service principal will have visibility into the resources."
}
# required for AVM interface
variable "tags" {
type = map(string)
default = null
description = "(Optional) Tags of the resource."
}
variable "pp_environment_user_security_role" {
description = "Power Platform environment user security role, examples of roles can be: System Administrator, System Customizer, basic user and many more."
type = list(string)
default = ["Basic User", "Bot Author", "System Administrator"]
}