File tree Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ resource "aws_security_group_rule" "nat_instance_egress" {
33
33
from_port = 0
34
34
to_port = 0
35
35
protocol = " -1"
36
- cidr_blocks = [" 0.0.0.0/0" ] # tfsec:ignore:AWS007
36
+ cidr_blocks = [" 0.0.0.0/0" ] # tfsec:ignore:aws-ec2-no-public-egress-sgr
37
37
security_group_id = join (" " , aws_security_group. nat_instance [* ]. id )
38
38
type = " egress"
39
39
}
Original file line number Diff line number Diff line change @@ -100,10 +100,10 @@ resource "aws_network_acl_rule" "private4_ingress" {
100
100
rule_number = var. open_network_acl_ipv4_rule_number
101
101
102
102
egress = false
103
- cidr_block = " 0.0.0.0/0"
103
+ cidr_block = " 0.0.0.0/0" # tfsec:ignore:aws-ec2-no-public-ingress-acl
104
104
from_port = 0
105
105
to_port = 0
106
- protocol = " -1"
106
+ protocol = " -1" # tfsec:ignore:aws-ec2-no-excessive-port-access
107
107
}
108
108
109
109
resource "aws_network_acl_rule" "private4_egress" {
@@ -117,7 +117,7 @@ resource "aws_network_acl_rule" "private4_egress" {
117
117
cidr_block = " 0.0.0.0/0"
118
118
from_port = 0
119
119
to_port = 0
120
- protocol = " -1"
120
+ protocol = " -1" # tfsec:ignore:aws-ec2-no-excessive-port-access
121
121
}
122
122
123
123
resource "aws_network_acl_rule" "private6_ingress" {
@@ -128,10 +128,10 @@ resource "aws_network_acl_rule" "private6_ingress" {
128
128
rule_number = var. open_network_acl_ipv6_rule_number
129
129
130
130
egress = false
131
- ipv6_cidr_block = " ::/0"
131
+ ipv6_cidr_block = " ::/0" # tfsec:ignore:aws-ec2-no-public-ingress-acl
132
132
from_port = 0
133
133
to_port = 0
134
- protocol = " -1"
134
+ protocol = " -1" # tfsec:ignore:aws-ec2-no-excessive-port-access
135
135
}
136
136
137
137
resource "aws_network_acl_rule" "private6_egress" {
@@ -142,8 +142,8 @@ resource "aws_network_acl_rule" "private6_egress" {
142
142
rule_number = var. open_network_acl_ipv6_rule_number
143
143
144
144
egress = true
145
- ipv6_cidr_block = " ::/0"
145
+ ipv6_cidr_block = " ::/0" # tfsec:ignore:aws-ec2-no-excessive-port-access
146
146
from_port = 0
147
147
to_port = 0
148
- protocol = " -1"
148
+ protocol = " -1" # tfsec:ignore:aws-ec2-no-excessive-port-access
149
149
}
Original file line number Diff line number Diff line change @@ -111,10 +111,10 @@ resource "aws_network_acl_rule" "public4_ingress" {
111
111
rule_number = var. open_network_acl_ipv4_rule_number
112
112
113
113
egress = false
114
- cidr_block = " 0.0.0.0/0"
114
+ cidr_block = " 0.0.0.0/0" # tfsec:ignore:aws-ec2-no-public-ingress-acl
115
115
from_port = 0
116
116
to_port = 0
117
- protocol = " -1"
117
+ protocol = " -1" # tfsec:ignore:aws-ec2-no-excessive-port-access
118
118
}
119
119
120
120
resource "aws_network_acl_rule" "public4_egress" {
@@ -128,7 +128,7 @@ resource "aws_network_acl_rule" "public4_egress" {
128
128
cidr_block = " 0.0.0.0/0"
129
129
from_port = 0
130
130
to_port = 0
131
- protocol = " -1"
131
+ protocol = " -1" # tfsec:ignore:aws-ec2-no-excessive-port-access
132
132
}
133
133
134
134
resource "aws_network_acl_rule" "public6_ingress" {
@@ -139,10 +139,10 @@ resource "aws_network_acl_rule" "public6_ingress" {
139
139
rule_number = var. open_network_acl_ipv6_rule_number
140
140
141
141
egress = false
142
- ipv6_cidr_block = " ::/0"
142
+ ipv6_cidr_block = " ::/0" # tfsec:ignore:aws-ec2-no-public-ingress-acl
143
143
from_port = 0
144
144
to_port = 0
145
- protocol = " -1"
145
+ protocol = " -1" # tfsec:ignore:aws-ec2-no-excessive-port-access
146
146
}
147
147
148
148
resource "aws_network_acl_rule" "public6_egress" {
@@ -156,5 +156,5 @@ resource "aws_network_acl_rule" "public6_egress" {
156
156
ipv6_cidr_block = " ::/0"
157
157
from_port = 0
158
158
to_port = 0
159
- protocol = " -1"
159
+ protocol = " -1" # tfsec:ignore:aws-ec2-no-excessive-port-access
160
160
}
You can’t perform that action at this time.
0 commit comments