-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add Aurora create cross region read replica cluster function #11428
add Aurora create cross region read replica cluster function #11428
Conversation
Any words on this one? We need this for our production DR solution. |
This is fix for #11401. |
Hi @arcadiatea Thanks for this work - this is looking great. Please can you tell me how I can test this to make sure it works as expected? Thanks Paul |
Hi. Paul, I can paste the test code here. ~/builtin/providers/aws/resource_aws_rds_cluster_test.go func TestAccAWSCluster_replication(t *testing.T) {
} func testAccAWSCluster_replication(n int) string { resource "aws_rds_cluster" "default" { resource "aws_rds_cluster_instance" "replica_instances" { |
Hi @arcadiatea I am satisfied that this can't be tested in an automated fashion. I have checked the functionality that it doesn't break the existing path so this is GTG :) Thanks for the work here Paul |
Hi @stack72 Unable to deploy RDS cross-region read replica: Error in terraform plan:
But I see that in the changelog of 0.8.6, https://github.com/hashicorp/terraform/blob/master/CHANGELOG.md#086-07-february-2017 Terraform code: provider "aws" { resource "aws_rds_cluster" "default" { resource "aws_rds_cluster_instance" "replica_instances" { |
I saw the code in master branch but not in 0.8.6, 0.8.7 or 0.8.8 |
@stack72 Is there a plan for this to be available in the next version, and when that will be? We need it for our DR plan. Thank you. |
@stack72 which version will include this feature? I saw the code is in master branch. |
@stack72 any update here? |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Add feature for Aurora cross region read replica cluster function. replication_source_identifier be added and tested with ticketmaster test code.
I cannot provide test code updated for this feature in ../builtin/providers/aws/resource_aws_rds_cluster_test.go.
Couple reasons
a. aws_rds_cluster not return cluster arn, neither
aws rds create-db-cluster
. replication_source_identifier field requires cluster arn.b. replication_source_identifier requires remote region. the function is not available for single region
c. a read replica cluster cannot be destroy, it needs to be promoted to independent cluster because destroy. The promote command probably not in terraform scope.
Create a read replica cluster took 90 minutes, because so the timeout of rds cluster be modified from 40 minutes to 120 minutes