- Newest
- Most votes
- Most comments
Yes, you can create a custom parameter group with read_only=0, and then apply this to the green environment. This will allow you to make changes to green. However please do be careful that you do not make changes that will break the replication from blue. -Phil
When you create a blue/green deployment for an RDS MySQL instance, the DB instance in the green environment is created as a read-only replica of the DB instance in the blue environment. This is to ensure that any changes made during the deployment process do not affect the production database until the green environment has been fully tested and approved for production use.
**What are you trying to achieve? **
From [https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/blue-green-deployments-overview.html] (Overview of Amazon RDS Blue/Green Deployments) :
During testing, we recommend that you keep your databases in the green environment read only. We recommend that you enable write operations on the green environment with caution because they can result in replication conflicts in the green environment. They can also result in unintended data in the production databases after switchover.
answered 4 years ago
Well, the overview you linked calls out that schema changes can be part of a blue/green deployment. Schema changes are rather hard to do if the db is in read-only mode. Granted, those changes need to be replication safe, but there is definitely use-case for getting out of read-only mode.
"When you create the blue/green deployment, you can upgrade your DB engine version and specify a different DB parameter group for the DB instances in the green environment. RDS also configures logical replication from the primary DB instance in the blue environment to the primary DB instance in the green environment.
After you create the blue/green deployment, the DB instance in the green environment is read-only by default.
Make additional changes to the staging environment, if required.
For example, you might make schema changes to your database or change the DB instance class used by one or more DB instances in the green environment.
For information about modifying a DB instance, see Modifying an Amazon RDS DB instance."
Relevant content
asked 3 years ago

My green environment parameter group already has read_only=0 and is still read only.
We need to do this in order to test the new configuration as our software writes session tokens to the database. We won't run into replication conflicts as we will be using a database that isn't in use in the Blue environment