-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
61 lines (53 loc) · 1.39 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
#####################################################
# Security Group Parameters
# Copyright 2020 IBM
#####################################################
variable "create_security_group" {
description = "True to create new security group. False if security group is already existing and security group rules are to be added"
type = bool
}
#####################################################
# Optional Parameters
#####################################################
variable "name" {
description = "Name of the new Security Group"
type = string
default = null
}
variable "vpc_id" {
description = "VPC ID of the new security group"
type = string
default = null
}
variable "resource_group_id" {
description = "Resource group ID"
type = string
default = null
}
variable "security_group" {
description = "Existing Security Group's name to which rules are to be attached."
type = string
default = null
}
variable "security_group_rules" {
description = "Security Group rules"
type = list(object({
name = string
direction = string
remote = string
ip_version = string
icmp = object({
code = number
type = number
})
tcp = object({
port_max = number
port_min = number
})
udp = object({
port_max = number
port_min = number
})
}))
default = []
}