Giter VIP home page Giter VIP logo

chatbot-slack-projen's Introduction

使用原生 CDK 結合 projen 進行管理,介接 lambda 觸發 cloudWatch Alerm 通知 ChatBot Slack

其中為了比對 lambda 的應用採取了以下兩種不同方式建置 lambda

  • 使用 lambda 程式打包進 S3 後再使用 typescript 進行編譯
  • 使用 docker bulid 方式對 lambda 進行編譯

chatbot-slack-projen's People

Contributors

github-actions[bot] avatar yuri-luo avatar

Watchers

 avatar

chatbot-slack-projen's Issues

projen build 時會遇到 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.