-
Notifications
You must be signed in to change notification settings - Fork 4
/
variables.tf
67 lines (61 loc) · 2.01 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
# Copyright (c) 2020 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
# Global variables
variable "default_compartment_id" {
type = string
description = "The default compartment OCID to use for resources (unless otherwise specified)."
}
variable "vcn_id" {
type = string
description = "The VCN ID where the Subnet(s) should be created."
}
variable "vcn_cidr" {
type = string
description = "The CIDR of the VCN (used when dynamically generating subnet CIDRs, if a specific CIDR is not otherwise given)."
}
variable "default_defined_tags" {
type = map(string)
description = "The different defined tags that are applied to each object by default."
default = {}
}
variable "default_freeform_tags" {
type = map(string)
description = "The different freeform tags that are applied to each object by default."
default = {}
}
# Subnet-specific variables
variable "subnets" {
type = map(object({
compartment_id = string,
defined_tags = map(string),
freeform_tags = map(string),
dynamic_cidr = bool,
cidr = string,
cidr_len = number,
cidr_num = number,
enable_dns = bool,
dns_label = string,
private = bool,
ad = number,
dhcp_options_id = string,
route_table_id = string,
security_list_ids = list(string)
}))
description = "Parameters for each subnet to be created/managed."
default = {
compartment_id = null
defined_tags = null
freeform_tags = null
dynamic_cidr = null
cidr = null
cidr_len = null
cidr_num = null
enable_dns = null
dns_label = null
private = null
ad = null
dhcp_options_id = null
route_table_id = null
security_list_ids = null
}
}