File tree Expand file tree Collapse file tree 1 file changed +11
-18
lines changed Expand file tree Collapse file tree 1 file changed +11
-18
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,17 @@ module "security_group" {
43
43
description = " Allow PostgreSQL traffic."
44
44
}
45
45
]
46
+ new_sg_egress_rules_with_cidr_blocks = [
47
+ {
48
+ 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."
54
+ }
55
+ ]
56
+
46
57
47
58
# # EGRESS Rules
48
59
# new_sg_egress_rules_with_cidr_blocks = [
@@ -55,24 +66,6 @@ module "security_group" {
55
66
# description = "Allow all outbound traffic."
56
67
# }
57
68
# ]
58
- new_sg_egress_rules_with_cidr_blocks = [
59
- {
60
- rule_count = 1
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."
74
- }
75
- ]
76
69
77
70
}
78
71
You can’t perform that action at this time.
0 commit comments