Description
If multiple instances of this repo are used in the same environment for testing, the hardcoded name does not provide the flexibility to deploy multiple copies.
Original
resource "crusoe_vpc_firewall_rule" "rke_rule" {
network = local.ingress_interface.network
name = "rke-pub-access"
action = "allow"
direction = "ingress"
protocols = "tcp"
source = "0.0.0.0/0"
source_ports = "1-65535"
destination = "${local.ingress_interface.private_ipv4.address}/32"
destination_ports = "6443"
}
Updated:
resource "crusoe_vpc_firewall_rule" "rke_rule" {
network = local.ingress_interface.network
name = "${var.instance_name_prefix}-rke-pub-access"
action = "allow"
direction = "ingress"
protocols = "tcp"
source = "0.0.0.0/0"
source_ports = "1-65535"
destination = "${local.ingress_interface.private_ipv4.address}/32"
destination_ports = "6443"
}
Activity