是什么导致我尝试为 AWS-EB 启用 SSH 失败?

What is causing my attempt to enable SSH for AWS-EB to fail?

我正在尝试为我的 AWS Elastic Beanstalk 应用程序启用 SSH,并且有 运行 eb ssh --setup(作为用户,似乎 be suitable privilegesElasticBeanstalkFullAccess;使用 AWS CLI 3.x);但我的尝试失败了(更改 GUID 以保护无辜者):

INFO: Environment update is starting.
INFO: Updating environment sitetest-develop-env's configuration settings.
INFO: Created Auto Scaling launch configuration named: awseb-e-notrea1nUm-stack-AWSEBAutoScalingLaunchConfiguration-MAdUpa2bCrCx
ERROR: Updating Auto Scaling group failed Reason: Template error: DBInstance bxzumnil42x11w doesn't exist
ERROR: Service:AmazonCloudFormation, Message:Stack named 'awseb-e-notrea1nUm-stack' aborted operation. Current state: 'UPDATE_ROLLBACK_IN_PROGRESS'  Reason: The following resource(s) failed to update: [AWSEBAutoScalingGroup]. 
ERROR: Failed to deploy configuration.
INFO: Created Auto Scaling launch configuration named: awseb-e-myjrm7xr9n-stack-AWSEBAutoScalingLaunchConfiguration-5uKixPQCM71K
INFO: Deleted Auto Scaling launch configuration named: awseb-e-notrea1nUm-stack-AWSEBAutoScalingLaunchConfiguration-MAdUpa2bCrCx
INFO: The environment was reverted to the previous configuration setting.

发生这种情况的原因是什么?我需要在 AWS 控制台中做些什么来防止这个错误吗?

我在这里看到的相关错误信息是DBInstance bxzumnil42x11w doesn't exist。 您可能已选择让 Elastic Beanstalk 在环境创建过程中创建 RDS 服务器。现在看来数据库已经不存在了。你是手动杀的吗?
无论如何,我建议不要让 EB 管理您的 RDS。最好自己创建一个并手动分配以下环境变量:RDS_HOSTNAME, RDS_PORT, RDS_DB_NAME, RDS_USERNAME, RDS_PASSWORD.
此时我建议终止这个环境并创建一个新环境,只是这次不要选中名为 Create an RDS DB Instance with this environment.

的复选框