@ndlib/ndlib-cdk2 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/source-watcher.js +4 -1
- package/package.json +3 -5
- package/lib/.DS_Store +0 -0
- package/lib/dashboards/.DS_Store +0 -0
- package/lib/edge-lambdas/.DS_Store +0 -0
- package/lib/internal-lambdas/.DS_Store +0 -0
- package/lib/internal-lambdas/sourceWatcherLambda/.DS_Store +0 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/.DS_Store +0 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/.DS_Store +0 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/.DS_Store +0 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/.DS_Store +0 -0
- package/lib/metrics/.DS_Store +0 -0
package/lib/source-watcher.js
CHANGED
|
@@ -57,7 +57,10 @@ class SourceWatcher extends constructs_1.Construct {
|
|
|
57
57
|
});
|
|
58
58
|
// Finally, create the Webhook on GitHub to route push events to the API!
|
|
59
59
|
const githubWebhookLambdaArn = aws_cdk_lib_1.Fn.importValue(`${props.webhookResourceStackName}:LambdaArn`);
|
|
60
|
-
const webhookLambda = aws_cdk_lib_1.aws_lambda.Function.
|
|
60
|
+
const webhookLambda = aws_cdk_lib_1.aws_lambda.Function.fromFunctionAttributes(this, 'GithubWebhookLambda', {
|
|
61
|
+
functionArn: githubWebhookLambdaArn,
|
|
62
|
+
skipPermissions: true,
|
|
63
|
+
});
|
|
61
64
|
const resourceProvider = new aws_cdk_lib_1.custom_resources.Provider(this, 'WebhookProvider', {
|
|
62
65
|
onEventHandler: webhookLambda,
|
|
63
66
|
logRetention: aws_cdk_lib_1.aws_logs.RetentionDays.ONE_WEEK,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndlib/ndlib-cdk2",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Reusable CDK2 modules used within Hesburgh Libraries of Notre Dame",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -60,16 +60,14 @@
|
|
|
60
60
|
"subpackage": "^1.1.0",
|
|
61
61
|
"ts-jest": "^27.1.3",
|
|
62
62
|
"tsc-watch": "^4.6.0",
|
|
63
|
-
"typescript": "^4.5.5"
|
|
64
|
-
"aws-cdk-lib": "^2.10.0",
|
|
65
|
-
"constructs": "^10.0.52"
|
|
63
|
+
"typescript": "^4.5.5"
|
|
66
64
|
},
|
|
67
65
|
"files": [
|
|
68
66
|
"lib/**/*"
|
|
69
67
|
],
|
|
70
68
|
"dependencies": {
|
|
71
69
|
"@aws-cdk/aws-appsync-alpha": "^2.10.0-alpha.0",
|
|
72
|
-
"aws-cdk-lib": "^2.
|
|
70
|
+
"aws-cdk-lib": "^2.17.0",
|
|
73
71
|
"constructs": "^10.0.52"
|
|
74
72
|
},
|
|
75
73
|
"subPackages": [
|
package/lib/.DS_Store
DELETED
|
Binary file
|
package/lib/dashboards/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/.DS_Store
DELETED
|
Binary file
|
package/lib/metrics/.DS_Store
DELETED
|
Binary file
|