由于不存在RDS,AWS Elastic Beanstalk环境终止失败

shi*_*tha 2 amazon-web-services amazon-rds amazon-elastic-beanstalk

我通过向导创建了一个Elastic Beanstalk,它创建了一个我未使用的Amazon RDS数据库,因为我们的数据库实例位于Elastic Beanstalk之外的其他RDS中。

我删除了RDS实例,该实例使环境变得不稳定,我们无法再使用它。但是,我们创造了一个新的环境,一切顺利。

现在,我正在尝试终止其他我们无法/不会使用的Beanstalk,但它始终使终止失败。据我所知,似乎在创建RDS时,保留设置为“拍摄快照”,因为RDS不存在,无法拍摄快照并且无法终止环境。

我需要做的就是摆脱这种环境,因为它只是坐在那里。我该如何解决这个问题?

作为参考,错误日志如下所示:

2018-06-05 14:00:41 UTC-0500    ERROR   Stack deletion failed: The following resource(s) failed to delete: [AWSEBRDSDatabase].
2018-06-05 14:00:41 UTC-0500    ERROR   Deleting RDS database named: aa1ipjn4c8bwak9 failed Reason: DBInstance aa1ipjn4c8bwak9 not found. (Service: AmazonRDS; Status Code: 404; Error Code: DBInstanceNotFound; Request ID: f8f17442-bd41-4188-9c7e-9408a5398a92)
2018-06-05 14:00:24 UTC-0500    INFO    rebuildEnvironment is starting.
2018-06-01 14:21:01 UTC-0500    ERROR   Stack deletion failed: The following resource(s) failed to delete: [AWSEBRDSDatabase].
2018-06-01 14:21:01 UTC-0500    ERROR   Deleting RDS database named: aa1ipjn4c8bwak9 failed Reason: DBInstance aa1ipjn4c8bwak9 not found. (Service: AmazonRDS; Status Code: 404; Error Code: DBInstanceNotFound; Request ID: 0dba0c59-473f-4814-a6dd-2af7847be6c0)
Run Code Online (Sandbox Code Playgroud)

Bri*_*ian 5

您可能可以创建一个名为的新RDS实例aa1ipjn4c8bwak9,然后删除该环境。从默认的ELB切换到ALB时,我必须做类似的事情。

我希望EB不会默认使用该环境创建数据库-在任何生产环境中,这几乎肯定是一个坏主意。