I'm trying to deploy a Spring Boot application as described here. However, my Spring Boot app doesn't boot (which, according to the documentation, makes sense, because it needs to run on port 5000). However, when I try to change the port by adding an Env variable (SERVER_PORT=5000), I get the error:
Unable to validate settings: Environment named springBootEb1-env-1 is in an invalid state for this operation. Must be Ready.
I'm summarizing the answer given in the back-and-fourth comments:
The issue where
AWS prompts a
Environment named [NAME] is in an invalid state message, seems to be a bit problematic.
In the case of the OP, the second - a rebuild - solved the issue.