generated from oracle-quickstart/oci-quickstart-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
75 lines (65 loc) · 2.76 KB
/
variables.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
# -----------------------------------------------------------------------------
# Baseline Landing Zone variable file - see service-specific variable files where they exist
# -----------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# Optional suffix string to prevent naming collision with tenancy level resources
# ---------------------------------------------------------------------------------------------------------------------
resource "random_id" "suffix" {
byte_length = 8
}
# -----------------------------------------------------------------------------
# Provider specific variables
# -----------------------------------------------------------------------------
variable "region" {
type = string
description = "the OCI region"
}
variable "tenancy_ocid" {
type = string
description = "The OCID of tenancy"
}
variable "current_user_ocid" {
type = string
description = "OCID of the current user"
}
variable "api_fingerprint" {
type = string
description = "The fingerprint of API"
default = ""
}
variable "api_private_key_path" {
type = string
description = "The local path to the API private key"
default = ""
}
# -----------------------------------------------------------------------------
# Required inputs
# -----------------------------------------------------------------------------
variable "tag_cost_center" {
type = string
description = "CostCenter tag value"
validation {
condition = can(regex("^[!-~]{1,100}$", var.tag_cost_center))
error_message = "Must be a valid CostCenter tag value. Allows printable ASCII, excluding periods (.) and spaces and max 100 characters."
}
}
variable "tag_geo_location" {
type = string
description = "GeoLocation tag value"
validation {
condition = can(regex("^[!-~]{1,100}$", var.tag_geo_location))
error_message = "Must be a valid Geolocation tag value. Allows printable ASCII, excluding periods (.) and spaces and max 100 characters."
}
}
variable "deploy_global_resources" {
type = bool
description = "Whether to deploy global resources, including tenancy level IAM service and Security service (Cloud Guard, VSS, Flow Log). Choose false if extend your Landing Zone to another region."
default = true
}
# ---------------------------------------------------------------------------------------------------------------------
# Sandbox Mode
# ---------------------------------------------------------------------------------------------------------------------
variable "is_sandbox_mode_enabled" {
type = bool
description = "Do you want to run the stack in Sandbox mode?"
}