hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.85k stars 9.2k forks source link

[Enhancement]: AutomaticBackupReplicationRegion support for aws_db_instance #40212

Open AndrewCharlesHay opened 2 days ago

AndrewCharlesHay commented 2 days ago

Description

There is no way to specify the Backup Replication region in Terraform using the aws_db_instance. This is possible to do in Cloudformation and a feature match would be nice.

Affected Resource(s) and/or Data Source(s)

aws_db_instance

Potential Terraform Configuration

resource "aws_db_instance" "default" {
  allocated_storage    = 10
  db_name              = "mydb"
  engine               = "mysql"
  engine_version       = "8.0"
  instance_class       = "db.t3.micro"
  username             = "foo"
  password             = "foobarbaz"
  parameter_group_name = "default.mysql8.0"
  skip_final_snapshot  = true
  # Updated portion of the configuration
  automatic_backup_replication_region = "us-east-2" # Ohio
}

References

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-automaticbackupreplicationregion

Would you like to implement a fix?

No

github-actions[bot] commented 2 days ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue