Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

projen build 時會遇到 lambda 錯誤 #1

Open
yuri-luo opened this issue Jun 11, 2021 · 0 comments
Open

projen build 時會遇到 lambda 錯誤 #1

yuri-luo opened this issue Jun 11, 2021 · 0 comments

Comments

@yuri-luo
Copy link
Owner

錯誤訊息

 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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant