If master_instance_name is set on an instance via this module, it is impossible to create replicas from it.
This is because the backup_configuration config will be ignored. This makes it impossible to set binary_log_enabled = true, which is a pre-requisite for creating replicas.
Expected behavior
If master_instance_name is configured, only enabling backups should be prohibited, as this is not possible on replica instances. Other config-related items should be configurable, such as enabling binary logs.
Observed behavior
Backup configuration provided to the module is ignored.
Terraform Configuration
As you can see in my configuration, I have the master_instance_name set, and I also thought I had set binary_log_enabled = true, but actually once I apply the plan to create a new replica instance, it fails because binary logs had not been enabled on the instance.
TL;DR
If
master_instance_name
is set on an instance via this module, it is impossible to create replicas from it.This is because the
backup_configuration
config will be ignored. This makes it impossible to setbinary_log_enabled = true
, which is a pre-requisite for creating replicas.Expected behavior
If
master_instance_name
is configured, only enabling backups should be prohibited, as this is not possible on replica instances. Other config-related items should be configurable, such as enabling binary logs.Observed behavior
Backup configuration provided to the module is ignored.
Terraform Configuration
As you can see in my configuration, I have the
master_instance_name
set, and I also thought I had setbinary_log_enabled = true
, but actually once I apply the plan to create a new replica instance, it fails because binary logs had not been enabled on the instance.Terraform Version