We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13f845b commit 87e2f2eCopy full SHA for 87e2f2e
modules/network/nsgs.tf
@@ -102,6 +102,20 @@ resource "oci_core_network_security_group_security_rule" "cp_ingress_additional_
102
}
103
104
105
+ count = length(var.control_plane_allowed_cidrs)
106
+
107
+}
108
109
+resource "oci_core_network_security_group_security_rule" "cp_ingress_additional_cidrs_icmp" {
110
+ network_security_group_id = oci_core_network_security_group.cp.id
111
+ description = "Allow additional CIDR block access to control plane. Required for kubectl/helm."
112
+ direction = "INGRESS"
113
+ protocol = local.icmp_protocol
114
+ source = element(var.control_plane_allowed_cidrs, count.index)
115
+ source_type = "CIDR_BLOCK"
116
117
+ stateless = false
118
119
icmp_options {
120
type = 3
121
code = 4
0 commit comments