-
Notifications
You must be signed in to change notification settings - Fork 0
/
rules.json
33 lines (32 loc) · 1.22 KB
/
rules.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
[
{
"description": "When writing a CDK stack unless otherwise specified, adhere to the following best practices for construct selection",
"labels": [
"cdk",
"lambda",
"rest",
"api"
],
"rules": [
"For lambda functions, use the @aws-cdk/aws-lambda-nodejs library and the NodejsFunction construct.",
"Use the latest nodejs runtime available (e.g. nodejs20)",
"For REST apis, use the LambdaRestApi construct"
]
},
{
"description": "When writing a lambda function using CDK unless otherwise specified, adhere to the following best practices",
"labels": [
"cdk",
"lambda",
"rest",
"api"
],
"rules": [
"Use the AWS v3 SDK",
"Use @types/lambda to annotate the expected input and output types",
"All lambdas are a single typescript file, with a single handler function",
"Write unit tests for the lambda function, to validate behavior before pushing",
"If Docker-related build issues occur when running tests, then install the development dependency esbuild"
]
}
]