Skip to content

Commit 7d1c218

Browse files
authored
SRE-67: Add AWS GuardDuty configuration for security monitoring (#8006)
1 parent 2808319 commit 7d1c218

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

infra/terraform/hash/security.tf

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# AWS GuardDuty configuration
2+
# Provides threat detection and continuous security monitoring
3+
4+
resource "aws_guardduty_detector" "main" {
5+
enable = true
6+
7+
datasources {
8+
s3_logs {
9+
enable = true
10+
}
11+
kubernetes {
12+
audit_logs {
13+
enable = true
14+
}
15+
}
16+
malware_protection {
17+
scan_ec2_instance_with_findings {
18+
ebs_volumes {
19+
enable = true
20+
}
21+
}
22+
}
23+
}
24+
25+
tags = {
26+
Name = "${local.prefix}-guardduty-detector"
27+
Service = "security"
28+
Purpose = "Threat detection and intrusion monitoring"
29+
}
30+
}

0 commit comments

Comments
 (0)