Skip to content

Commit 7990b18

Browse files
Checkov files
1 parent ef04b8d commit 7990b18

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

checkov/test.tf

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
provider "aws" {
2+
region = "us-east-1"
3+
}
4+
5+
resource "aws_s3_bucket" "bad_bucket" {
6+
bucket = "my-insecure-bucket"
7+
acl = "public-read"
8+
}
9+
10+
resource "aws_security_group" "bad_sg" {
11+
name = "open-sg"
12+
description = "Security group with open ingress"
13+
ingress {
14+
from_port = 22
15+
to_port = 22
16+
protocol = "tcp"
17+
cidr_blocks = ["0.0.0.0/0"]
18+
}
19+
egress {
20+
from_port = 0
21+
to_port = 0
22+
protocol = "-1"
23+
cidr_blocks = ["0.0.0.0/0"]
24+
}
25+
}
26+

0 commit comments

Comments
 (0)