You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"dome9_cloud_security_group_rule" {
source="./modules/dome9/r/dome9_cloud_security_group_rule"# dome9_security_group_id - (required) is a type of stringdome9_security_group_id=nullservices=[{
inbound = [{
description =null
name =null
open_for_all =null
port =null
protocol_type =null
scope = [{
data = {}
type =null
}]
}]
outbound = [{
description =null
name =null
open_for_all =null
port =null
protocol_type =null
scope = [{
data = {}
type =null
}]
}]
}]
}
resource"dome9_cloud_security_group_rule""this" {
# dome9_security_group_id - (required) is a type of stringdome9_security_group_id=var.dome9_security_group_iddynamic"services" {
for_each=var.servicescontent {
dynamic"inbound" {
for_each=services.value.inboundcontent {
# description - (optional) is a type of stringdescription=inbound.value["description"]
# name - (optional) is a type of stringname=inbound.value["name"]
# open_for_all - (optional) is a type of boolopen_for_all=inbound.value["open_for_all"]
# port - (optional) is a type of stringport=inbound.value["port"]
# protocol_type - (optional) is a type of stringprotocol_type=inbound.value["protocol_type"]
dynamic"scope" {
for_each=inbound.value.scopecontent {
# data - (required) is a type of map of stringdata=scope.value["data"]
# type - (required) is a type of stringtype=scope.value["type"]
}
}
}
}
dynamic"outbound" {
for_each=services.value.outboundcontent {
# description - (optional) is a type of stringdescription=outbound.value["description"]
# name - (optional) is a type of stringname=outbound.value["name"]
# open_for_all - (optional) is a type of boolopen_for_all=outbound.value["open_for_all"]
# port - (optional) is a type of stringport=outbound.value["port"]
# protocol_type - (optional) is a type of stringprotocol_type=outbound.value["protocol_type"]
dynamic"scope" {
for_each=outbound.value.scopecontent {
# data - (optional) is a type of map of stringdata=scope.value["data"]
# type - (optional) is a type of stringtype=scope.value["type"]
}
}
}
}
}
}
}