CodeDeploy - DownloadBundle failing

0

With an existing auto-scaling group, and an existing CodeDeploy revision, we encounter quite a few DownloadBundle failures from CodeDeploy when a scale-out event occurs. What exactly is DownloadBundle doing? I would assume, based on the name, that it's pulling the zip file from "Revision location" (e.g - S3). According to the events log, the ApplicationStop event executed prior to DownloadBundle and that hook is defined in appspec.yml which is stored in the zip file ("Revision location") retrieved from S3 so I would assume the download from S3 has already happend.

已提問 2 年前檢視次數 1564 次
1 個回答
0

What exactly is DownloadBundle doing?

The AWS Official FAQs state the following [1]

[1] AWS CodeDeploy FAQs | Amazon Web Sevices
https://aws.amazon.com/codedeploy/faqs/?nc1=h_ls#:~:text=of%20a%20deployment.-,DownloadBundle,-During%20this%20deployment
----- excerpt -----
During this deployment lifecycle event, the agent copies the revision files to a temporary location on the instance. This deployment lifecycle event is reserved for the agent and cannot be used to run user scripts.
----- excerpt -----

I'm not sure of the specific error in your environment, but I found a similar GitHub Issue below. [2]

[2] CodeDeploy fails at "DownloadBundle" step - Issue #255 - aws/aws-codedeploy-agent
https://github.com/aws/aws-codedeploy-agent/issues/255

According to the GitHub Issue above, this can happen with certain CodeDeploy agent versions.

I hope this is helpful.

profile picture
mn87
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南