forked from PinSpace-Org/GistPin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiam-alerts.yml
More file actions
48 lines (44 loc) · 1.64 KB
/
Copy pathiam-alerts.yml
File metadata and controls
48 lines (44 loc) · 1.64 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
groups:
- name: iam-analysis
interval: 30s
rules:
- alert: IAMUnusedAccess
expr: iam_analyzer_unused_access_total > 0
for: 5m
labels:
severity: warning
annotations:
summary: "Unused access found in IAM Analyzer"
description: "Found {{ $value }} unused access findings for account {{ $labels.account_id }}"
- alert: IAMExternalAccess
expr: iam_analyzer_external_access_total > 0
for: 1m
labels:
severity: critical
annotations:
summary: "External access detected by IAM Access Analyzer"
description: "External access finding for resource {{ $labels.resource_arn }}"
- alert: IAMCrossAccountAccess
expr: iam_analyzer_cross_account_total > 0
for: 2m
labels:
severity: high
annotations:
summary: "Cross-account access detected"
description: "Cross-account access from {{ $labels.source_account }} to {{ $labels.target_resource }}"
- alert: IAMAnalyzerHighSeverity
expr: iam_analyzer_high_severity_total > 0
for: 0s
labels:
severity: critical
annotations:
summary: "High severity IAM Analyzer finding"
description: "{{ $labels.finding_type }} — {{ $labels.resource_arn }}"
- alert: IAMAnalyzerActiveFindings
expr: iam_analyzer_active_findings > 10
for: 15m
labels:
severity: warning
annotations:
summary: "Elevated active IAM Analyzer findings"
description: "{{ $value }} active findings across account {{ $labels.account_id }}"