更改 ElasticBeanstalk 堆栈的 RDS 密码并在应用程序中反映该更改

Changing the RDS password of an ElasticBeanstalk stack and reflecting that change in the application

我的 ElasticBeanstalk 堆栈包括一个 RDS 实例,应用程序使用 RDS_* 环境变量进行连接。

我需要重置 RDS 密码,这很容易做到,但有人知道 EC2 服务器是否需要重新启动或类似操作才能继承更改吗?

EB 确实必须更新 ec2 实例,但我认为这不是完全重启。我猜你想知道需要多长时间;出于好奇,我刚刚在我们的开发环境中做了一个快速测试,这是事件日志:

2018-03-14 09:22:30 UTC-0700    INFO    Environment update completed successfully.
2018-03-14 09:22:30 UTC-0700    INFO    Successfully deployed new configuration to environment.
2018-03-14 09:21:28 UTC-0700    INFO    Updating environment webtier's configuration settings.
2018-03-14 09:21:15 UTC-0700    INFO    Environment update is starting.

看起来一共一分多钟。