CDK deploy fail: write EPIPE Failed to publish asset

0

Please help me identifying the root cause for this error.

Command: cdk deploy --profile home --all --verbose

env: { CDK_DEFAULT_REGION: 'us-west-2', CDK_DEFAULT_ACCOUNT: '<AccountId>', CDK_OUTDIR: 'cdk.out', CDK_CLI_ASM_VERSION: '34.0.0', CDK_CLI_VERSION: '2.99.1' }

[15:35:21] Retrieved account ID ACCOUNT_ID from disk cache
[15:35:21] Assuming role 'arn:aws:iam::ACCOUNT_ID:role/cdk-hnb659fds-file-publishing-role-ACCOUNT_ID-us-west-2'.
[15:35:22] DeployHomeStack:  check: Check s3://cdk-hnb659fds-assets-ACCOUNT_ID-us-west-2/dbdac218a53e3e9067674e6fc6f9ccea5a7fca48c46ffb006fcba9a3bba6bed7.zip
[15:35:22] DeployHomeStack:  cached: From cache /Users/<alias>/Documents/personal/family-home-hub/cdk/cdk.out/.cache/dbdac218a53e3e9067674e6fc6f9ccea5a7fca48c46ffb006fcba9a3bba6bed7.zip
[15:35:22] DeployHomeStack:  upload: Upload s3://cdk-hnb659fds-assets-ACCOUNT_ID-us-west-2/dbdac218a53e3e9067674e6fc6f9ccea5a7fca48c46ffb006fcba9a3bba6bed7.zip
DeployHomeStack:  fail: write EPIPE

 ❌ Deployment failed: Error: Failed to publish asset dbdac218a53e3e9067674e6fc6f9ccea5a7fca48c46ffb006fcba9a3bba6bed7:ACCOUNT_ID-us-west-2
    at Deployments.publishSingleAsset (/Users/<alias>/Documents/personal/family-home-hub/cdk/node_modules/aws-cdk/lib/index.js:470:11458)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async Object.publishAsset (/Users/<alias>/Documents/personal/family-home-hub/cdk/node_modules/aws-cdk/lib/index.js:470:177839)
    at async /Users/<alias>/Documents/personal/family-home-hub/cdk/node_modules/aws-cdk/lib/index.js:470:163266
[15:35:30] Reading cached notices from /Users/<alias>/.cdk/cache/notices.json

Failed to publish asset dbdac218a53e3e9067674e6fc6f9ccea5a7fca48c46ffb006fcba9a3bba6bed7:ACCOUNT_ID-us-west-2
[15:35:30] Error: Failed to publish asset dbdac218a53e3e9067674e6fc6f9ccea5a7fca48c46ffb006fcba9a3bba6bed7:ACCOUNT_ID-us-west-2
    at Deployments.publishSingleAsset (/Users/<alias>/Documents/personal/family-home-hub/cdk/node_modules/aws-cdk/lib/index.js:470:11458)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async Object.publishAsset (/Users/<alias>/Documents/personal/family-home-hub/cdk/node_modules/aws-cdk/lib/index.js:470:177839)
    at async /Users/<alias>/Documents/personal/family-home-hub/cdk/node_modules/aws-cdk/lib/index.js:470:163266

  • For some reason, it works when I do Cisco AnyConnect VPN. But without VPN, same error.

asked 9 months ago205 views
1 Answer
0

Hello,

Greetings!

As per the description, it appears that there are some difficulties you are having with the CDK stack deployment.


Upon reviewing the error message, it appears that the Docker Image Asset is not correctly generated, which is causing you to receive this error. A relevant open GitHub issue [1][2] was discovered as I was looking into the problem.

However, I am unsure of this since I am unable to identify the underlying cause of the problem without knowing the app folder structure, CDK code, and current configuration.


In order for us to examine the existing setup more closely and provide you more focused, secure, one-on-one assistance, I would advise you to initiate a support case with CDK [3] , so that we can access the resources and provide you the root cause of the issue.

References:


  1. https://github.com/aws/aws-cdk/issues/26446
  2. https://github.com/aws/aws-cdk/issues/25962
  3. https://docs.aws.amazon.com/awssupport/latest/user/case-management.html#creating-a-support-case
AWS
answered 9 months ago
EXPERT
reviewed 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions