eb deploy successful but code not updating

0

Hi. I'm running into a weird issue. I deploy my apps to Elastic Beanstalk using the eb cli, and it has always worked in the past. However, lately I've noticed that when I use eb deploy, the application is successfully deployed, but the code is still always the old version. If I SSH into the EC2 instance, it's still the old code. Nothing really has change in terms of my application. To get around this, I have to manually deploy files, but I would like eb deploy to just work like it did before. Is this a known issue?

已提問 2 年前檢視次數 1859 次
2 個答案
0

Go to the Application Versions area for your app and click the link in the Source column to download the source for the version in question. Expand the bundle and check if the file content matches your expectations.

已回答 2 年前
  • Yes, it does match my expectations. However, the web app does not reflect those changes. In Elastic Beanstalk, the running version is the correct version (with the correct changes), but what's actually on the server is still the old version.

0

For an update to my issue, I was able to narrow it down to EB environments where the EC2 has termination protection enabled. For environments without termination protection, then eb deploy works as expected. It definitely used to work before with environments that have termination protection enabled, so some release must've broken this process.

已回答 2 年前

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

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

回答問題指南