terraform/ecc-openstack-018-security_group_ingress_unrestricted_3306/red2/network.tf (18 lines of code) (raw):
resource "openstack_networking_secgroup_v2" "this" {
name = "018-security_group-red2"
description = "018-security_group-red2"
delete_default_rules = true
tags = [
"CustodianRule = ecc-openstack-018-security_group_ingress_unrestricted_3306",
"ComplianceStatus = Red2"
]
}
resource "openstack_networking_secgroup_rule_v2" "this" {
direction = "ingress"
ethertype = "IPv4"
protocol = "tcp"
port_range_min = 445
port_range_max = 8080
remote_ip_prefix = "0.0.0.0/0"
security_group_id = openstack_networking_secgroup_v2.this.id
}