-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_infra.tf
More file actions
30 lines (30 loc) · 758 Bytes
/
Copy pathtest_infra.tf
File metadata and controls
30 lines (30 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
resource "aws_s3_bucket" "unsecure_logs" {
bucket = "champbreed-unsecured-logs-2025"
acl = "public-read" # Critical Security Issue
tags = {
Name = "PublicLogBucket"
Environment = "Dev"
}
}
resource "aws_security_group" "open_ssh" {
name = "allow_all_ssh"
description = "Allow SSH inbound traffic from anywhere"
vpc_id = "vpc-12345678"
ingress {
description = "SSH from anywhere"
from_port = 22
to_port = 22
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"] # Critical Security Issue (Too permissive)
}
egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
}
}
resource "aws_iam_user" "admin_user" {
name = "temp_admin_user"
INFO: No MFA is configured by default on IAM users
}