-
Notifications
You must be signed in to change notification settings - Fork 154
/
Copy pathconstants.ts
45 lines (39 loc) · 918 Bytes
/
constants.ts
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
import { Architecture, Runtime } from 'aws-cdk-lib/aws-lambda';
/**
* The default AWS Lambda runtime to use when none is provided.
*/
const defaultRuntime = 'nodejs20x';
/**
* The AWS Lambda runtimes that are supported by the project.
*/
const TEST_RUNTIMES = {
nodejs18x: Runtime.NODEJS_18_X,
[defaultRuntime]: Runtime.NODEJS_20_X,
} as const;
/**
* The default AWS Lambda architecture to use when none is provided.
*/
const defaultArchitecture = 'x86_64';
/**
* The AWS Lambda architectures that are supported by the project.
*/
const TEST_ARCHITECTURES = {
[defaultArchitecture]: Architecture.X86_64,
arm64: Architecture.ARM_64,
} as const;
/**
* Log level. used for filtering the log
*/
const LogLevel = {
DEBUG: 'DEBUG',
INFO: 'INFO',
WARN: 'WARN',
ERROR: 'ERROR',
} as const;
export {
TEST_RUNTIMES,
defaultRuntime,
TEST_ARCHITECTURES,
defaultArchitecture,
LogLevel,
};