File tree Expand file tree Collapse file tree 1 file changed +24
-5
lines changed Expand file tree Collapse file tree 1 file changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -45,16 +45,35 @@ module "security_group" {
45
45
]
46
46
47
47
# # EGRESS Rules
48
+ # new_sg_egress_rules_with_cidr_blocks = [
49
+ # {
50
+ # rule_count = 1
51
+ # from_port = 0
52
+ # protocol = "-1"
53
+ # to_port = 0
54
+ # cidr_blocks = ["0.0.0.0/0"]
55
+ # description = "Allow all outbound traffic."
56
+ # }
57
+ # ]
48
58
new_sg_egress_rules_with_cidr_blocks = [
49
59
{
50
60
rule_count = 1
51
- from_port = 0
52
- protocol = " -1"
53
- to_port = 0
54
- cidr_blocks = [" 0.0.0.0/0" ]
55
- description = " Allow all outbound traffic."
61
+ from_port = 80
62
+ protocol = " tcp"
63
+ to_port = 80
64
+ cidr_blocks = [" 0.0.0.0/0" ] # Allow only HTTP outbound
65
+ description = " Allow outbound HTTP traffic."
66
+ },
67
+ {
68
+ rule_count = 1
69
+ from_port = 443
70
+ protocol = " tcp"
71
+ to_port = 443
72
+ cidr_blocks = [" 0.0.0.0/0" ] # Allow only HTTPS outbound
73
+ description = " Allow outbound HTTPS traffic."
56
74
}
57
75
]
76
+
58
77
}
59
78
60
79
You can’t perform that action at this time.
0 commit comments