1

我正在关注https://sbstjn.com/blog/aws-cdk-lambda-docker-container-example/并使用 AWS CDK 部署 Lambda Docker。在“cdk deploy”上,我收到以下错误。我的 github 存储库的链接是https://github.com/aqilzeeshan/cdk_dockerlambda

谁能告诉我这是什么问题?谢谢

Do you wish to deploy these changes (y/n)? y
CdkLambdaDockerStack: deploying...
[0%] start: Publishing dcfb2f152c6c0b2ca779c90dee5d59d3b510805a3ed884b310200624e32a4b27:current
Error: write EPIPE
    at afterWriteDispatched (internal/stream_base_commons.js:156:25)
    at writeGeneric (internal/stream_base_commons.js:147:3)
    at Socket._writeGeneric (net.js:785:11)
    at Socket._write (net.js:797:8)
    at writeOrBuffer (internal/streams/writable.js:358:12)
    at Socket.Writable.write (internal/streams/writable.js:303:10)
    at C:\Users\amuham210\AppData\Roaming\npm\node_modules\aws-cdk\node_modules\cdk-assets\lib\private\shell.ts:28:19
    at new Promise (<anonymous>)
    at Object.shell (C:\Users\amuham210\AppData\Roaming\npm\node_modules\aws-cdk\node_modules\cdk-assets\lib\private\shell.ts:26:10)
    at Docker.execute (C:\Users\amuham210\AppData\Roaming\npm\node_modules\aws-cdk\node_modules\cdk-assets\lib\private\docker.ts:75:13)
4

1 回答 1

1

我发现了问题。需要安装 Docker 来构建镜像。在我运行“cdk deploy”的机器上安装 docker 后,上述问题得到解决。

于 2021-03-04T21:29:03.083 回答