Skip to content

Commit 708b9b7

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

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

example/complete/example.tf

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,16 @@ module "security_group" {
4646
new_sg_egress_rules_with_cidr_blocks = [
4747
{
4848
rule_count = 1
49-
from_port = 443
50-
protocol = "tcp"
51-
to_port = 443
52-
cidr_blocks = ["0.0.0.0/0"] # Allow only HTTPS outbound traffic
53-
description = "Allow outbound HTTPS traffic."
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."
5454
}
5555
]
5656

5757

58+
5859
## EGRESS Rules
5960
# new_sg_egress_rules_with_cidr_blocks = [
6061
# {

0 commit comments

Comments
 (0)