generated from oracle-devrel/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 6
/
variables.tf
149 lines (119 loc) · 3.99 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
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
# Copyright (c) 2019, 2021, Oracle Corporation and/or affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl
# provider identity parameters
variable "region" {
description = "the oci region where resources will be created"
type = string
# no default value, asking user to explicitly set this variable's value. see codingconventions.adoc
# List of regions: https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm#ServiceAvailabilityAcrossRegions
}
variable "tenancy_ocid" {
description = "tenancy ocid where to create the sources"
type = string
# no default value, asking user to explicitly set this variable's value. see codingconventions.adoc
}
variable "api_fingerprint" {
description = "fingerprint of oci api private key"
type = string
default = ""
}
variable "api_private_key_path" {
description = "path to oci api private key used"
type = string
default = ""
}
variable "user_ocid" {
description = "ocid of user that terraform will use to create the resources"
type = string
default = ""
}
# general oci parameters
variable "compartment_ocid" {
description = "compartment ocid where to create all resources"
type = string
default = ""
}
variable "freeform_tags" {
description = "simple key-value pairs to tag the resources created using freeform tags."
type = map(string)
default = {
"terraformed" = "Please do not edit manually",
"app" = "code-server",
"github" = "https://github.com/oracle-devrel/terraform-oci-code-server",
"oci" = "ODE"
}
}
variable "defined_tags" {
description = "predefined and scoped to a namespace to tag the resources created using defined tags."
type = map(string)
default = null
}
# compute instance parameters
variable "shape" {
description = "The shape of an instance."
type = string
default = "VM.Standard.E4.Flex"
}
variable "instance_flex_ocpus" {
type = number
description = "(Updatable) The total number of OCPUs available to the instance."
default = 1
}
variable "instance_flex_memory_in_gbs" {
type = number
description = "(Updatable) The total amount of memory available to the instance, in gigabytes."
default = null
}
variable "instance_display_name" {
description = "(Updatable) A user-friendly name for the instance. Does not have to be unique, and it's changeable."
type = string
default = "oci-code-server"
}
variable "instance_ad_name" {
description = "The availability domain name of the instance. If none is provided will use instance_ad_number instead"
type = string
default = ""
}
variable "instance_ad_number" {
description = "The availability domain number of the instance. (default AD:1)"
type = number
default = 1
}
variable "use_always_free" {
description = "If true, use OCI Always Free instance shape"
type = bool
default = false
}
locals {
always_free_shape = "VM.Standard.E2.1.Micro"
}
# operating system parameters
# if both ssh_public-keys and ssh_public_key_path are provided, ssh_public_keys takes priority
variable "ssh_public_keys" {
description = "Public SSH key(s) provided as string value"
type = string
default = ""
}
variable "ssh_public_key_path" {
description = "Public SSH key file path"
type = string
default = ""
}
# networking parameters
variable "public_ip" {
description = "Whether to create a Public IP to attach to primary vnic and which lifetime. Valid values are NONE, RESERVED or EPHEMERAL."
type = string
default = "EPHEMERAL"
}
variable "vcn_cidr" {
description = "The IPv4 CIDR block the VCN will use."
default = "172.16.0.0/28"
type = string
}
variable "subnets" {
description = "parameters to cidrsubnet function to calculate subnet masks within the VCN."
default = {
vsc = { newbits = 2, netnum = 0 }
}
type = map(any)
}