-
Notifications
You must be signed in to change notification settings - Fork 0
/
cdk.json
64 lines (64 loc) · 2.31 KB
/
cdk.json
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"app": "python3 app.py",
"watch": {
"include": [
"**"
],
"exclude": [
"README.md",
"cdk*.json",
"requirements*.txt",
"source.bat",
"**/__init__.py",
"python/__pycache__",
"tests"
]
},
"context": {
"@aws-cdk/aws-apigateway:usagePlanKeyOrderInsensitiveId": true,
"@aws-cdk/core:stackRelativeExports": true,
"@aws-cdk/aws-rds:lowercaseDbIdentifier": true,
"@aws-cdk/aws-lambda:recognizeVersionProps": true,
"@aws-cdk/aws-cloudfront:defaultSecurityPolicyTLSv1.2_2021": true,
"@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true,
"@aws-cdk/core:target-partitions": [
"aws",
"aws-cn"
],
"environments": {
"default": {
"interval": 5,
"log_level":"INFO",
"log_group_name": "your.organization.cloudtrail.logs",
"slack_secret_name": "aws_status_slack_webhook",
"namespace": "CloudTrail Alert Metrics",
"sns": {
"name":"CloudTrail-Alerts",
"subscribers": [
]
},
"alerts": [
{
"name": "BreakGlass-User-Activity",
"pattern": "{$.userIdentity.userName=\"Administrator\"}",
"description": "Triggers when the 'Administrator' user in any account is used",
"threshold": 1
},
{
"name": "Console-Login-By-IAMUser",
"pattern": "{( $.eventName= \"ConsoleLogin\") && ($.userIdentity.type=\"IAMUser\")}",
"description": "Triggers when an IAM user in any account logs into the console",
"threshold": 1
},
{
"name": "IAMUser-GetKeySession",
"pattern": "{( $.eventName= \"GetSessionToken\") && ($.userIdentity.type=\"IAMUser\")}",
"description": "Triggers when an IAM user in any account starts a session with a key",
"threshold": 1
}
]
}
}
}
}