generated from terraform-ibm-modules/terraform-ibm-module-template
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathvariables.tf
107 lines (100 loc) · 2.41 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
variable "ibmcloud_api_key" {
type = string
description = "The IBM Cloud API key"
sensitive = true
}
variable "region" {
type = string
description = "The region where the Event Streams are created."
default = "us-south"
}
variable "prefix" {
type = string
description = "The prefix to apply to all resources created by this example."
default = "event-streams-com"
}
variable "resource_group" {
type = string
description = "An existing resource group name to use for this example. If not specified, a new resource group is created."
default = null
}
variable "resource_tags" {
type = list(string)
description = "The list of tags associated with the Event Steams instance."
default = []
}
variable "access_tags" {
type = list(string)
description = "The list of access tags associated with the Event Steams instance."
default = []
}
variable "schemas" {
type = list(object(
{
schema_id = string
schema = object({
type = string
name = string
fields = optional(list(object({
name = string
type = string
})))
})
}
))
description = "The list of schema objects. Includes the `schema_id` and the `type` and `name` of the schema in the `schema` object."
default = [{
schema_id = "my-es-schema_1"
schema = {
type = "string"
name = "name_1"
}
},
{
schema_id = "my-es-schema_2"
schema = {
type = "string"
name = "name_2"
}
},
{
schema_id = "my-es-schema_3"
schema = {
type = "string"
name = "name_3"
}
}
]
}
variable "topics" {
type = list(object(
{
name = string
partitions = number
config = object({})
}
))
description = "The list of topics to apply to resources. Only one topic is allowed for Lite plan instances."
default = [
{
name = "topic-1"
partitions = 1
config = {
"cleanup.policy" = "delete"
"retention.ms" = "86400000"
"retention.bytes" = "10485760"
"segment.bytes" = "10485760"
}
},
{
name = "topic-2"
partitions = 1
config = {
"cleanup.policy" = "compact,delete"
"retention.ms" = "86400000"
"retention.bytes" = "1073741824"
"segment.bytes" = "536870912"
}
}
]
}