Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Elastic Beanstalk: terminate RDS then fail to update application version

I created AWS EB environments with RDS MySQL DB 1st time. But, I realized that I don't need to use MySQL so, I switched to sqlite3 and terminate RDS MySQL DB. After this, I can't update application version by using git aws.push. AWS EB shows the below error message all the time.

Service:AmazonCloudFormation, Message:Stack named 'awseb-e-xxxxxx-stack' aborted operation. 
Current state: 'UPDATE_ROLLBACK_IN_PROGRESS' Reason: The following resource(s) failed to update: [AWSEBAutoScalingGroup].

Updating Auto Scaling group failed Reason: Template error: DBInstance xxxxxxx doesn't exist

How can I fix this issue? Thanks.

like image 694
Wonil Avatar asked Nov 02 '22 02:11

Wonil


1 Answers

As some have noted, you actually cannot manually delete your RDS instance from an elasticbeanstalk environment.

Per another answer you can change this via some options using one of the aws apis:AWS Elastic Beanstalk change RDS Endpoint

My solution was to terminate the environment and just start a new one from a saved configuration.

like image 106
Airswoop1 Avatar answered Nov 11 '22 16:11

Airswoop1