- Newest
- Most votes
- Most comments
After completing a blue/green deployment and switchover in Amazon RDS, you can safely delete the old blue instance and remove the blue/green deployment association from your new production instance. Here's how to proceed:
-
First, delete the blue/green deployment itself. This action will not delete your new production instance (the "new blue"). You can do this using the AWS Management Console, AWS CLI, or RDS API.
-
When you delete the blue/green deployment, an instance with "-old1" at the end of its name will remain. This is your "old blue" instance.
-
After deleting the blue/green deployment, you can safely delete the "old blue" instance (db-old1 and db-instance-1-old1 in your case) without affecting your new production database.
-
To delete the "old blue" instance, you can use the standard RDS instance deletion process. Make sure to turn off deletion protection if it's enabled.
-
When deleting the "old blue" instance, you have the option to create a final snapshot if you want to retain the ability to restore it later.
-
After these steps, your "new blue" instance (dbprod and dbprod-instance-1) will no longer be associated with the blue/green deployment and will function as a normal RDS instance.
It's important to note that deleting the blue/green deployment doesn't affect your new production environment. The "new blue" instance will continue to operate normally, and the "blue" designation will be removed from its description once the deployment is deleted.
Remember to exercise caution when deleting database instances and always ensure you have proper backups before proceeding with any deletion operations.
Sources
Need to delete RDS blue green deployment | AWS re:Post
Deleting a blue/green deployment in Amazon RDS - Amazon Relational Database Service
Deleting a DB instance - Amazon Relational Database Service
Hello.
I'll attach the answers I've tried in the past.
After deleting the blue/green deployment, delete the old instance and you're done.
https://repost.aws/questions/QU9CnlxnzdQMW51AlSNL9PKw/need-to-delete-rds-blue-green-deployment
I will wait for a confirmation. Is it right that I can delete "bg-deployment-1" even though the New Blue (live DB) is under it in the tree view?
Yes, it is possible to delete "bg-deployment-1".
If you delete "bg-deployment-1" which is a blue/green deployment, "db-instance-1-old1" and "dbprod-instance-1" will remain.
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 6 months ago
I will wait for a confirmation. Is it right that I can delete "bg-deployment-1" even though the New Blue (live DB) is under it in the tree view?