Elasticbeanstalk command line deploy has suddenly become VERY slow

0

I have been using eb deploy to deploy my Node app on elastic beanstalk for 1 year+. It normally takes a few minutes. Suddenly, a few days ago, it became VERY slow (~20 minutes). And running the command with --verbose shows it's spending all of this time packaging the zip file.

To be clear:

eb deploy                                                
Alert: The platform version that your environment is using isn't recommended. There's a recommended version in the same platform branch.

Creating application version archive "app-4c72-4566829_232321".

(WAIT ~20 minutes - normally this was VERY fast. Perhaps instantaneous. When I run with --verbose, I can see it slowly crawling my directory tree and adding files. I have some files in .ebignore but even crawling normal files is very slow like a second or two per file)

This part seems normal / fast:

Upload Complete.
2023-03-24 20:26:20    INFO    Environment update is starting.
2023-03-24 20:26:26    INFO    Deploying new version to instance(s).
2023-03-24 20:27:15    INFO    Instance deployment completed successfully.
2023-03-24 20:27:20    INFO    New application version was deployed to running EC2 instances.
2023-03-24 20:27:20    INFO    Environment update completed successfully.

One thing I noticed is I am running Node.js 16 running on 64bit Amazon Linux 2/5.6.0 and it looks like there is a new platform version (5.7) available. Could the release of this new version have caused this?

Jeremy
已提問 1 年前檢視次數 494 次
1 個回答
0
已接受的答案

I wrote in to AWS support. They suggested I run eb --debug --verbose. I ran it and some some errors around unknown branches, so I just re-ran eb init (I had to delete my local codecommit branch). That fixed it!

Jeremy
已回答 1 年前

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

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

回答問題指南