-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
68 lines (58 loc) · 1.6 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
variable "compartment_id" {
description = "Compartment ID"
type = string
}
variable "my_public_ip" {
description = "My public IP address"
type = string
validation {
condition = can(cidrnetmask(var.my_public_ip))
error_message = "Public IP address must be a valid IPv4 CIDR."
}
}
variable "id_rsa_pub" {
description = "SSH public key"
type = string
}
variable "vcn_cidr_block" {
description = "VCN CIDR"
type = string
default = "172.16.0.0/20"
}
variable "subnet_cidr_block" {
description = "Subnet CIDR"
type = string
default = "172.16.0.0/24"
}
# https://docs.oracle.com/en-us/iaas/images/ubuntu-2004/
# variable "instance_image" {
# description = "OCID of image for instance"
# type = string
# default = "ocid1.image.oc1.eu-frankfurt-1.aaaaaaaafofmp3otdb5fh3ged2zhsepoh3e2dkaus636uee4vpt7jrgqssma"
# }
variable "instance_shape" {
description = "Shape of instance"
type = string
default = "VM.Standard.A1.Flex"
# default = "VM.Standard.E2.1.Micro"
}
variable "instance_count" {
description = "Number of instances to create"
type = number
default = 4
}
variable "availability_domains" {
description = "Availability domains in which instances are going to be created"
type = list(number)
default = [0, 1, 2, 0]
}
variable "egress_security_rules" {
description = "Egress security rules"
type = list(map(string))
default = []
}
variable "ingress_security_rules" {
description = "Ingress security rules"
type = list(map(string))
default = []
}