This repository has been archived by the owner on Oct 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
.projenrc.js
42 lines (37 loc) · 1.18 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
const { AwsCdkTypeScriptApp, DependenciesUpgradeMechanism } = require('projen');
const AUTOMATION_TOKEN = 'PROJEN_GITHUB_TOKEN';
const project = new AwsCdkTypeScriptApp({
cdkVersion: '1.83.0',
name: 'serverless-refarch-for-proxysql',
cdkDependencies: [
'@aws-cdk/aws-ec2',
'@aws-cdk/aws-ecs',
'@aws-cdk/aws-ecs-patterns',
'@aws-cdk/aws-rds',
'@aws-cdk/aws-lambda',
'@aws-cdk/aws-apigatewayv2',
'@aws-cdk/aws-apigatewayv2-integrations',
'@aws-cdk/aws-route53',
'@aws-cdk/aws-route53-targets',
'@aws-cdk/aws-secretsmanager',
'@aws-cdk/aws-elasticloadbalancingv2',
'@aws-cdk/aws-secretsmanager',
],
minNodeVersion: '12.20.0',
depsUpgrade: DependenciesUpgradeMechanism.githubWorkflow({
ignoreProjen: false,
workflowOptions: {
labels: ['auto-approve', 'auto-merge'],
secret: AUTOMATION_TOKEN,
},
}),
autoApproveOptions: {
secret: 'GITHUB_TOKEN',
allowedUsernames: ['pahud'],
},
defaultReleaseBranch: 'main',
});
const common_exclude = ['cdk.out', 'cdk.context.json', 'yarn-error.log'];
project.npmignore.exclude('images', ...common_exclude);
project.gitignore.exclude(...common_exclude);
project.synth();