-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.projenrc.js
52 lines (48 loc) · 1.39 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
const { awscdk } = require('projen');
const project = new awscdk.AwsCdkTypeScriptApp({
cdkVersion: '2.57.0',
defaultReleaseBranch: 'main',
name: 'amazon-chime-sdk-meeting-with-with-transcribe',
appEntrypoint: 'amazon-chime-sdk-meeting-with-transcribe.ts',
devDeps: ['esbuild'],
deps: [
'fs-extra',
'@types/fs-extra',
'@aws-sdk/client-chime-sdk-meetings',
'@aws-sdk/client-chime-sdk-media-pipelines',
'@aws-sdk/lib-dynamodb',
'@aws-sdk/client-dynamodb',
'@types/aws-lambda',
'aws-lambda',
],
autoApproveOptions: {
secret: 'GITHUB_TOKEN',
allowedUsernames: ['schuettc'],
},
depsUpgradeOptions: {
ignoreProjen: false,
workflowOptions: {
labels: ['auto-approve', 'auto-merge'],
},
},
scripts: {
launch:
'yarn && yarn projen && yarn build && yarn cdk bootstrap && yarn cdk deploy && yarn configLocal',
},
});
const common_exclude = [
'cdk.out',
'cdk.context.json',
'yarn-error.log',
'dependabot.yml',
'*.drawio',
'.DS_Store',
];
project.addTask('getBucket', {
exec: "aws cloudformation describe-stacks --stack-name AmazonChimeSDKWithTranscribe --query 'Stacks[0].Outputs[?OutputKey==`siteBucket`].OutputValue' --output text",
});
project.addTask('configLocal', {
exec: 'aws s3 cp s3://$(yarn run --silent getBucket)/config.json site/public/',
});
project.gitignore.exclude(...common_exclude);
project.synth();