File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,26 @@ resource "aws_security_group" "default" {
121
121
tags = " ${ module . label . tags } "
122
122
}
123
123
124
+ resource "aws_security_group_rule" "udp_dns_egress_from_lambda" {
125
+ description = " Allow outbound UDP traffic from Lambda Elasticsearch cleanup to DNS"
126
+ type = " egress"
127
+ from_port = 53
128
+ to_port = 53
129
+ protocol = " udp"
130
+ cidr_blocks = [" 0.0.0.0/0" ]
131
+ security_group_id = " ${ aws_security_group . default . id } "
132
+ }
133
+
134
+ resource "aws_security_group_rule" "tcp_dns_egress_from_lambda" {
135
+ description = " Allow outbound TCP traffic from Lambda Elasticsearch cleanup to DNS"
136
+ type = " egress"
137
+ from_port = 53
138
+ to_port = 53
139
+ protocol = " tcp"
140
+ cidr_blocks = [" 0.0.0.0/0" ]
141
+ security_group_id = " ${ aws_security_group . default . id } "
142
+ }
143
+
124
144
resource "aws_security_group_rule" "egress_from_lambda_to_es_cluster" {
125
145
description = " Allow outbound traffic from Lambda Elasticsearch cleanup SG to Elasticsearch SG"
126
146
type = " egress"
You can’t perform that action at this time.
0 commit comments