使用原生 CDK 結合 projen 進行管理,介接 lambda 觸發 cloudWatch Alerm 通知 ChatBot Slack
其中為了比對 lambda 的應用採取了以下兩種不同方式建置 lambda
- 使用 lambda 程式打包進 S3 後再使用 typescript 進行編譯
- 使用 docker bulid 方式對 lambda 進行編譯
aws chatBot 串連 lambda 發送 sns 通知
License: Apache License 2.0
使用原生 CDK 結合 projen 進行管理,介接 lambda 觸發 cloudWatch Alerm 通知 ChatBot Slack
其中為了比對 lambda 的應用採取了以下兩種不同方式建置 lambda
錯誤訊息
Failed to bundle asset testCloudFormationResources/testEventLambda/Code/Stage, bundle output is located at /private/var/folders/zw/gph_63w16fq7sjb3cmpq73xxzjyt18/T/cdk.outbxSExv/asset.bbf44b743e70123ab8c960c2740da95ac1d1b59a63f8e688a017b49f8a68fef5-error: Error: docker exited with status 254
46 |
47 | // create Lambda
> 48 | new lambda.Function(this, 'testEventLambda', {
| ^
49 | functionName: 'testEventLambda',
50 | code: lambda.Code.fromAsset(
51 |
at AssetStaging.bundle (node_modules/@aws-cdk/core/lib/asset-staging.ts:472:13)
at AssetStaging.stageByBundling (node_modules/@aws-cdk/core/lib/asset-staging.ts:330:10)
at stageThisAsset (node_modules/@aws-cdk/core/lib/asset-staging.ts:196:35)
at Cache.obtain (node_modules/@aws-cdk/core/lib/private/cache.ts:24:13)
at new AssetStaging (node_modules/@aws-cdk/core/lib/asset-staging.ts:221:44)
at new Asset (node_modules/@aws-cdk/aws-s3-assets/lib/asset.ts:127:21)
at AssetCode.bind (node_modules/@aws-cdk/aws-lambda/lib/code.ts:277:20)
at new Function (node_modules/@aws-cdk/aws-lambda/lib/function.ts:583:29)
at new ChatbotSlackDemoStack (src/chatbot-slack-demo-stack.ts:48:5)
at Object.<anonymous> (test/main.test.ts:12:17)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.