Skip to content

Commit

Permalink
remove ipv6 cidr blocks from all the security groups in network module
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitPhulera committed Dec 19, 2024
1 parent 061ec4f commit d0f9a89
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/commcare_cloud/terraform/modules/network/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -284,15 +284,13 @@ resource "aws_security_group" "alb-sg" {
to_port = "80"
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
ipv6_cidr_blocks = ["::/0"]
}

ingress {
protocol = "tcp"
to_port = "443"
from_port = "443"
cidr_blocks = ["0.0.0.0/0"]
ipv6_cidr_blocks = ["::/0"]
}

ingress {
Expand Down Expand Up @@ -504,7 +502,6 @@ resource "aws_security_group" "rds" {
to_port = "5432"
protocol = "tcp"
cidr_blocks = flatten([aws_subnet.subnet-app-private.*.cidr_block, aws_subnet.subnet-db-private.*.cidr_block])
ipv6_cidr_blocks = ["::/0"]
}

dynamic "egress" {
Expand Down Expand Up @@ -547,7 +544,6 @@ resource "aws_security_group" "elasticache" {
to_port = "6379"
protocol = "tcp"
cidr_blocks = flatten([aws_subnet.subnet-app-private.*.cidr_block, aws_subnet.subnet-public.*.cidr_block])
ipv6_cidr_blocks = ["::/0"]
}

dynamic "egress" {
Expand Down

0 comments on commit d0f9a89

Please sign in to comment.