Cross-region RDS replicated backups #25
-
This message was extracted from a discussion that originally took place in Gruntwork Community Slack. Names and URLs have been removed where appropriate From a customer Is there a way to turn on cross-region automated backups with the RDS module? I didn’t see an option for it in vars.tf. I can’t even seem to find any terraform resource to handle this period. hopefully i’m overlooking something though. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
From a grunt Hi person! I'm looking into this, as I don't know off the top of my head. If there's not even a terraform way to do this, maybe at least there's a workaround. In your current RDS setup, are all your replicas in a single region, or are you cross-region? I assume from your question that you have it setup across regions. (edited) Assuming so, your replica in another region might be defined like this: https://github.com/gruntwork-io/terraform-aws-data-storage/blob/4c250e2b62aac9f258[…]23ac35b456/examples/rds-mysql-with-cross-region-replica/main.tf with the
where That's assuming you have it set up that way, though. I'd like to see if that matches up, or if your cross-region DB instances are defined differently |
Beta Was this translation helpful? Give feedback.
-
From a grunt Hey person, found out more info. We recommend waiting for the Terraform AWS provider to catch up.We'll probably want to add support for it once this issue is closed: hashicorp/terraform-provider-aws#16708 . The module we currently have for doing this: https://github.com/gruntwork-io/terraform-aws-data-storage/tree/master/modules/lambda-create-snapshot, works in all regions. Is that something you could use in the meantime? |
Beta Was this translation helpful? Give feedback.
From a grunt
Hey person, found out more info. We recommend waiting for the Terraform AWS provider to catch up.We'll probably want to add support for it once this issue is closed: hashicorp/terraform-provider-aws#16708 . The module we currently have for doing this: https://github.com/gruntwork-io/terraform-aws-data-storage/tree/master/modules/lambda-create-snapshot, works in all regions. Is that something you could use in the meantime?