When trying to deploy my application, I recently got the following error:
ERROR: Service:AmazonCloudFormation, Message:Stack named
'awseb-e-123-stack' aborted operation. Current state: 'UPDATE_ROLLBACK_IN_PROGRESS'
Reason: The following resource(s) failed to update: [AWSEBRDSDatabase].
ERROR: Updating RDS database named: abcdefg12345 failed
Reason: DB Security Groups can no longer be associated
with this DB Instance. Use VPC Security Groups instead.
ERROR: Failed to deploy application.
How do you switch over a DB Security Group to a VPC Security Group? Steps for using the Elastic Beanstalk Console would be greatly appreciated.
Had the same issue but was able to fix it by doing the following
- Created a RDS db instance from the RDS console
- Created a snapshot of the instance
- From Elastic Beanstalk console under configuration/database, create the RDS db using the instance
- Once the new RDS db instance was created by EBS, inn configuration/software add db environment properties
I hope it helps you resolve this issue.
来源:https://stackoverflow.com/questions/51164140/elastic-beanstalk-migrate-db-security-group-to-vpc-security-group