Skip to content

Commit 478e000

Browse files
author
rakeshclouddevops
committed
updated sg
1 parent 708b9b7 commit 478e000

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

example/complete/example.tf

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,18 @@ module "security_group" {
4343
description = "Allow PostgreSQL traffic."
4444
}
4545
]
46+
4647
new_sg_egress_rules_with_cidr_blocks = [
4748
{
4849
rule_count = 1
49-
from_port = 0
50-
protocol = "-1"
51-
to_port = 0
52-
cidr_blocks = [module.vpc.vpc_cidr_block] # Allow all outbound traffic within the VPC
53-
description = "Allow all outbound traffic within the VPC."
50+
from_port = 443
51+
protocol = "tcp"
52+
to_port = 443
53+
cidr_blocks = ["0.0.0.0/0"] # Allow only HTTPS outbound traffic
54+
description = "Allow outbound HTTPS traffic."
5455
}
5556
]
57+
5658

5759

5860

0 commit comments

Comments
 (0)