-
Notifications
You must be signed in to change notification settings - Fork 2
/
variable.tf
169 lines (141 loc) · 4.97 KB
/
variable.tf
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
#########################################################
# #
# DO NOT MODIFY ANYTHING IN THIS FILE #
# #
#########################################################
variable "private_key_path" {
type = string
default = ""
description = "Private Key Path of Administrator."
}
variable "user_ocid" {
type = string
default = ""
description = "OCID of the Administrator."
}
variable "fingerprint" {
type = string
default = ""
description = "Fingerprint of the Administrator."
}
variable "tenancy_ocid" {
type = string
default = ""
description = "OCID of the Administrator's Tenancy."
}
variable "region" {
description = "Region of the Administrator"
validation {
condition = length(trim(var.region, "")) > 0
error_message = "Validation failed for region: value is required."
}
}
variable "namespace_service_endpoint" {
type = string
default = ""
description = "If Access Governance instance needs to be created in a namespace."
}
variable "should_create_connected_system" {
type = bool
default = true
description = "If Namespace endpoint is given, select this option to add or skip OCI connected system."
}
####################################### Required Variables ############################################################
variable "admin_domain_name" {
default = "Default"
description = "Administrator's Identity Domain Name."
}
variable "admin_domain_compartment_ocid" {
default = ""
description = "Administrator's Identity Domain's Compartment."
}
variable "ag_license_type" {
description = "Access Governance Instance License Type."
validation {
condition = can(regex("^(Access Governance Premium|Access Governance for Oracle Workloads|Access Governance for Oracle Cloud Infrastructure)$", var.ag_license_type))
error_message = "Please select any value among Access Governance Premium, Access Governance for Oracle Workloads, Access Governance for Oracle Cloud Infrastructure."
}
}
variable "service_instance_display_name" {
description = "Access Governance Instance Display Name."
default = "access-governance-instance"
validation {
condition = can(regex("^[a-zA-Z0-9-_]+$", var.service_instance_display_name))
error_message = "Must be unique, start with a letter and contain only alphanumeric characters without any space. Hyphen (-) and underscore ( _ ) are allowed only."
}
}
variable "service_instance_description" {
default = "Access Governance Service Instance."
description = "Access Governance Instance Description."
}
variable "service_instance_compartment_ocid" {
description = "Compartment OCID for Access Governance Instance."
}
variable "use_existing_agcs_user" {
type = bool
default = false
description = "Set this value to either use existing Access Governance user or create new one."
}
variable "agcs_user_private_key_path" {
sensitive = true
type = string
default = ""
description = "Private Key Path for Access Governance User."
}
variable "agcs_user_private_key" {
sensitive = true
type = string
default = ""
description = "Private Key for Access Governance User"
}
variable "agcs_user_ocid_oci_system" {
type = string
default = ""
description = "Access Governance User's OCID."
}
variable "agcs_user_tenancy_ocid_oci_system" {
type = string
default = ""
description = "Access Governance User's Tenancy OCID."
}
variable "agcs_user_fingerprint_oci_system" {
type = string
default = ""
description = "Access Governance User's Fingerprint."
}
variable "agcs_user_region_oci_system" {
type = string
default = ""
description = "Region of the Access Governance User."
}
variable "oci_system_name" {
type = string
default = "Local-OCI-System"
description = "OCI Connected System Name."
}
variable "oci_system_description" {
type = string
default = "Local OCI Connected System."
description = "OCI Connected System Description."
}
####################### New AG User ###############################
variable "agcs_user_domain_name" {
default = "Default"
description = "Domain where Access Governance User will be created."
}
variable "agcs_user_group_display_name" {
description = "Group to create for Access Governance User."
default = "agcs_group"
}
variable "agcs_user_name" {
default = "agcs_user"
description = "New Access Governance User's name."
}
variable "agcs_user_email" {
default = "[email protected]"
description = "Email address for the user."
validation {
condition = can(regex("^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$", var.agcs_user_email))
error_message = "Must be unique, start with a letter and contain only alphanumeric characters without any space. Hyphen (-) and underscore ( _ ) are allowed only."
}
}