Skip to content

Commit 0ed2971

Browse files
Merge pull request #5 from redpanda-data/sarah/comment_cidr_ranges
Add comments explaining where the cidr blocks are coming from
2 parents fa02f35 + 7f7f622 commit 0ed2971

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

customer-managed/aws/terraform/security_groups.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,22 @@ resource "aws_security_group" "redpanda_node_group" {
6464

6565
locals {
6666
rp_node_group_cidr_blocks = var.public_cluster ? [
67+
68+
// only used in the event that you want a public cluster, when the variable public_cluster is true
6769
"0.0.0.0/0"
70+
6871
] : [
72+
73+
// RFC 6598 reserved prefix for shared address space
74+
// https://datatracker.ietf.org/doc/html/rfc6598
6975
"100.64.0.0/10",
76+
77+
// RFC 1918 reserved IP address space for private internets
78+
// https://datatracker.ietf.org/doc/html/rfc1918
7079
"172.16.0.0/12",
7180
"192.168.0.0/16",
7281
"10.0.0.0/8",
82+
7383
]
7484
}
7585
resource "aws_security_group_rule" "redpanda_node_group" {

0 commit comments

Comments
 (0)