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?

gefragt vor 2 Jahren1860 Aufrufe
2 Antworten
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.

beantwortet vor 2 Jahren
  • 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.

beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen