-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.projenrc.ts
65 lines (65 loc) · 2.07 KB
/
.projenrc.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import { awscdk, javascript } from 'projen';
const project = new awscdk.AwsCdkConstructLibrary({
author: 'yicr',
authorAddress: 'yicr@users.noreply.github.com',
authorOrganization: true,
cdkVersion: '2.120.0',
defaultReleaseBranch: 'main',
typescriptVersion: '5.7.x',
jsiiVersion: '5.7.x',
name: '@gammarers/aws-sns-slack-message-lambda-subscription',
description: 'This AWS CDK Construct is designed to post messages sent from an SNS topic to a Slack Webhook via a Lambda function.',
keywords: ['aws', 'cdk', 'aws-cdk', 'sns', 'lambda', 'slack', 'webhook'],
projenrcTs: true,
repositoryUrl: 'https://github.com/gammarers/aws-sns-slack-message-lambda-subscription.git',
deps: [
'@gammarers/aws-resource-naming@0.10.1',
],
devDeps: [
'@gammarers/jest-aws-cdk-asset-filename-renamer@^0.5.21',
'@slack/webhook@^7.0.3',
'@types/aws-lambda@^8.10.145',
'axios@^1.6.7',
'aws-sdk-client-mock@^4.1.0',
'aws-sdk-client-mock-jest@^4.1.0',
],
peerDeps: [
'@gammarers/aws-resource-naming@^0.10.1',
],
releaseToNpm: true,
npmAccess: javascript.NpmAccess.PUBLIC,
jestOptions: {
jestConfig: {
snapshotSerializers: ['<rootDir>/node_modules/@gammarers/jest-aws-cdk-asset-filename-renamer'],
},
extraCliOptions: ['--silent'],
},
lambdaOptions: {
runtime: awscdk.LambdaRuntime.NODEJS_20_X,
bundlingOptions: {
externals: ['@aws-sdk/*'],
sourcemap: true,
},
},
minNodeVersion: '18.0.0',
workflowNodeVersion: '22.x',
depsUpgradeOptions: {
workflowOptions: {
labels: ['auto-approve', 'auto-merge'],
schedule: javascript.UpgradeDependenciesSchedule.expressions(['2 16 * * 3']),
},
},
autoApproveOptions: {
secret: 'GITHUB_TOKEN',
allowedUsernames: ['yicr'],
},
publishToPypi: {
distName: 'gammarers.aws-sns-slack-message-lambda-subscription',
module: 'gammarers.aws_sns_slack_message_lambda_subscription',
},
publishToNuget: {
dotNetNamespace: 'Gammarers.CDK.AWS',
packageId: 'Gammarers.CDK.AWS.SNSSlackMessageLambdaSubscription',
},
});
project.synth();