与环境关联的一个或多个 TargetGroups 处于降低的健康状态

One or more TargetGroups associated with the environment are in a reduced health state

更新环境变量和 repo 中的代码(自动部署到这个 AWS EB 环境)后,我开始得到

Environment health has transitioned from Ok to Warning. One or more TargetGroups associated with the environment are in a reduced health state: - awseb-AWSEB-1MJ1... - Warning

如何解决?

为了解决这个问题,我对 repo 分支做了一个小改动,触发管道部署到 EB 环境,然后更新了代码。

所以,原因是我在发布代码的同时更新了 .env 变量。

注意:我没有尝试复现。


编辑

我刚刚又遇到了同样的问题。这发生在我 运行 Laravel 通过 SSH 迁移并将代码推送到将触发部署到 EB 的存储库之后不久。在出现警告期间,我无法从我的机器访问 AWS RDS 数据库实例。将新代码推送到 repo(并因此推送到 EB)再次解决了问题。