-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.projenrc.js
59 lines (53 loc) · 1.47 KB
/
.projenrc.js
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
const { awscdk } = require("projen");
const { NodePackageManager } = require("projen/lib/javascript");
const project = new awscdk.AwsCdkTypeScriptApp({
name: "dynamodb-s3-export",
description:
"Export data from DynamoDB table to S3 bucket everyday at 2:00 AM UTC time",
release: true,
majorVersion: 1,
defaultReleaseBranch: "main",
gitignore: [".idea"],
packageManager: NodePackageManager.NPM,
cdkVersion: "2.69.0",
deps: [
"@aws-sdk/client-dynamodb",
"@aws-sdk/client-s3",
"@aws-sdk/lib-storage",
"@aws-lambda-powertools/commons",
"@aws-lambda-powertools/logger",
"@aws-lambda-powertools/tracer",
"@aws-lambda-powertools/metrics",
"@aws-prototyping-sdk/aws-arch",
"@aws-prototyping-sdk/cdk-graph",
"@aws-prototyping-sdk/cdk-graph-plugin-diagram",
"@aws-prototyping-sdk/pdk-nag",
"@middy/core",
"csv-stringify",
"cdk-nag",
"cdk-pipelines-github",
"fs-extra",
],
devDeps: ["@types/aws-lambda"],
prettier: true,
appEntrypoint:
"main.ts && mkdir -p docs/diagram && cp -r cdk.out/cdkgraph/diagram.png docs/diagram",
workflowBootstrapSteps: [
{
name: "Setup Node.js",
uses: "actions/setup-node@v3",
with: {
"node-version": "18",
cache: "npm",
},
},
],
lambdaOptions: {
runtime: awscdk.LambdaRuntime.NODEJS_18_X,
bundlingOptions: {
sourcemap: true,
externals: ["@aws-sdk/*", "@aws-lambda-powertools/*"],
},
},
});
project.synth();