forked from allenheltondev/serverless-lambda-log-management
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsst.config.ts
31 lines (30 loc) · 782 Bytes
/
sst.config.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
import * as sst from 'sst/constructs';
import { logManagementStack } from './stacks/log-management-stack';
export default {
config() {
return {
name: 'lambda-log-management',
region: 'eu-west-2',
main: 'stacks/index.ts',
};
},
stacks(app: sst.App) {
// Set default runtime for all functions
app.setDefaultFunctionProps({
runtime: 'nodejs18.x',
architecture: 'arm_64',
memorySize: 768,
nodejs: {
format: 'esm',
sourcemap: true,
},
logRetention: app.stage.includes('prod') ? 'one_month' : 'three_days',
tracing: 'disabled',
environment: {
AWS_NODEJS_CONNECTION_REUSE_ENABLED: '1',
},
timeout: '600 seconds',
});
app.stack(logManagementStack);
},
};