-
Notifications
You must be signed in to change notification settings - Fork 9
/
variables.tf
44 lines (39 loc) · 1004 Bytes
/
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
variable "tenancy_ocid" {
description = "OCID of the tenancy"
type = string
nullable = false
}
variable "region" {
description = "Region for resources"
type = string
nullable = false
}
variable "name" {
description = "Display name for resources"
type = string
nullable = false
default = "OCI Free Compute Maximal"
}
variable "cidr_block" {
description = "CIDR block of the VCN"
type = string
default = null
validation {
condition = (
var.cidr_block == null ?
true :
alltrue(
[
can(cidrsubnet(var.cidr_block, 2, 0)),
cidrhost(var.cidr_block, 0) == split("/", var.cidr_block).0,
]
)
)
error_message = "The value of cidr_block variable must be a valid CIDR address with a prefix no greater than 30."
}
}
variable "ssh_public_key" {
description = "Public key to be used for SSH access to compute instances"
type = string
nullable = false
}