File tree Expand file tree Collapse file tree 1 file changed +20
-6
lines changed Expand file tree Collapse file tree 1 file changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -43,20 +43,34 @@ module "security_group" {
43
43
description = " Allow PostgreSQL traffic."
44
44
}
45
45
]
46
-
47
46
new_sg_egress_rules_with_cidr_blocks = [
48
47
{
49
48
rule_count = 1
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."
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 ."
55
54
}
56
55
]
57
56
57
+
58
+
59
+ # # EGRESS Rules
60
+ # new_sg_egress_rules_with_cidr_blocks = [
61
+ # {
62
+ # rule_count = 1
63
+ # from_port = 0
64
+ # protocol = "-1"
65
+ # to_port = 0
66
+ # cidr_blocks = ["0.0.0.0/0"]
67
+ # description = "Allow all outbound traffic."
68
+ # }
69
+ # ]
70
+
58
71
}
59
72
73
+
60
74
# Define Subnet module
61
75
module "public_subnet" {
62
76
source = " clouddrove/subnet/aws"
You can’t perform that action at this time.
0 commit comments