We are trying to create a aurora read replica to the RDS postgres instance,
link to the AWS Blog post
We are not passing the master_usernamre value to the aws_rds_cluster resource the value is getting populated from the source RDS DB instance, However the read replica is in syns with the Source DB instance.
module.secondry.aws_rds_cluster.datafabric[0] will be created
+ resource "aws_rds_cluster" "datafabric" {
+ allocated_storage = (known after apply)
+ allow_major_version_upgrade = false
+ apply_immediately = false
+ arn = (known after apply)
+ availability_zones = [
+ "us-east-1d",
+ "us-east-1e",
+ "us-east-1f",
]
+ backtrack_window = 0
+ backup_retention_period = 7
+ cluster_identifier = "datafabric-p-8061"
+ cluster_identifier_prefix = (known after apply)
+ cluster_members = (known after apply)
+ cluster_resource_id = (known after apply)
+ copy_tags_to_snapshot = true
+ database_name = (known after apply)
+ db_cluster_parameter_group_name = "datafabric-p-8061"
+ db_subnet_group_name = "datafabric-p-8061"
+ deletion_protection = true
+ enable_global_write_forwarding = false
+ enable_http_endpoint = false
+ enabled_cloudwatch_logs_exports = [
+ "postgresql",
]
+ endpoint = (known after apply)
+ engine = "aurora-postgresql"
+ engine_mode = "provisioned"
+ engine_version = "12.13"
+ engine_version_actual = (known after apply)
+ final_snapshot_identifier = "datafabric-p-8061-final"
+ hosted_zone_id = (known after apply)
+ iam_database_authentication_enabled = false
+ iam_roles = (known after apply)
+ id = (known after apply)
+ kms_key_id = (known after apply)
+ master_user_secret = (known after apply)
+ master_user_secret_kms_key_id = (known after apply)
+ master_username = (known after apply)
+ network_type = (known after apply)
+ port = 5432
+ preferred_backup_window = "02:00-03:00"
+ preferred_maintenance_window = "sun:03:00-sun:04:00"
+ reader_endpoint = (known after apply)
+ replication_source_identifier = "arn:aws:rds:us-east-1:598693051713:db:pdfrb-8061"
+ skip_final_snapshot = false
+ source_region = "us-east-1"
+ storage_encrypted = true
+ storage_type = (known after apply)
+ tags = {}
}
module.secondry.aws_rds_cluster_instance.cluster_instances[1]: Creation complete after 32m14s [id=datafabric-p-8061-1]
ā Error: creating RDS Cluster (datafabric-p-8061) Instance (datafabric-p-8061-0): InvalidParameterValue: Creation of an Aurora Replica in a cluster which is already replicating from an RDS for PostgreSQL master is not allowed.
Expected Behavior
Terraform apply should be successful to create the Aurora read replica to source RDS DB instance.
Actual Behavior
module.secondry.aws_rds_cluster_instance.cluster_instances[1]: Still creating... [31m30s elapsed]
module.secondry.aws_rds_cluster_instance.cluster_instances[1]: Still creating... [31m40s elapsed]
module.secondry.aws_rds_cluster_instance.cluster_instances[1]: Still creating... [31m50s elapsed]
module.secondry.aws_rds_cluster_instance.cluster_instances[1]: Still creating... [32m0s elapsed]
module.secondry.aws_rds_cluster_instance.cluster_instances[1]: Still creating... [32m10s elapsed]
module.secondry.aws_rds_cluster_instance.cluster_instances[1]: Creation complete after 32m14s [id=datafabric-p-8061-1]
ā·
ā Error: creating RDS Cluster (datafabric-p-8061) Instance (datafabric-p-8061-0): InvalidParameterValue: Creation of an Aurora Replica in a cluster which is already replicating from an RDS for PostgreSQL master is not allowed.
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.3.2
AWS Provider Version
4.67.0
Affected Resource(s)
We are trying to create a aurora read replica to the RDS postgres instance, link to the AWS Blog post We are not passing the master_usernamre value to the aws_rds_cluster resource the value is getting populated from the source RDS DB instance, However the read replica is in syns with the Source DB instance.
Expected Behavior
Terraform apply should be successful to create the Aurora read replica to source RDS DB instance.
Actual Behavior
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
terraform init terraform plan terraform apply
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None