Commit e5b97b6e authored by Johan Ruuskanen's avatar Johan Ruuskanen
Browse files

Forgot security rule

parent bdde7cd0
......@@ -60,6 +60,16 @@ resource "openstack_networking_secgroup_rule_v2" "icmp_rule" {
security_group_id = "${openstack_networking_secgroup_v2.secgroup.id}"
}
resource "openstack_networking_secgroup_rule_v2" "port_rule" {
direction = "ingress"
ethertype = "IPv4"
protocol = "tcp"
port_range_min = 5000
port_range_max = 5000
remote_ip_prefix = "0.0.0.0/0"
security_group_id = "${openstack_networking_secgroup_v2.secgroup.id}"
}
resource "openstack_compute_instance_v2" "instance" {
name = "${var.instance_name}"
image_id = "${var.image_id}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment