Score:0

Cannot disable MultiAZ on RDS instance using CloudFormation

bo flag

I have deployed an instance of a RDS PostgreSQL database with MultiAZ enabled, using CloudFormation. When I try to remove MultiAZ I get the following error from CloudFormation:

CloudFormation cannot update a stack when a custom-named resource requires replacing. Rename and update the stack again.

The only parameters I changed in the resource template are MultiAZ (set from true to false) and AvailabilityZone (set from no value to fixed). The CloudFormation documentation states that both these parameter do NOT require resource replacement, only "some interruptions". So the following should not apply to my use case:

DBInstanceIdentifier

[...]

If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.

What is the problem?

Score:0
bo flag

The issue was the AvailabilityZone parameter. It looks like updating it requires replacing the resource, contrary to what is written in the documentation. I worked around the issue by removing the parameter from my template.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.