I'm able to use the following to create an RDS instance and a read replica in the same region, but how would I create a read replica in a different region? The AWS Console has this ability, but I don't see how to create this using Terraform:
resource "aws_db_instance" "default" {
identifier = "${var.identifier}"
allocated_storage = "${var.storage}"
engine = "${var.engine}"
engine_version = "${lookup(var.engine_version, var.engine)}"
instance_class = "${var.instance_class}"
name = "${var.db_name}"
username = "${var.username}"
password = "${var.password}"
backup_retention_period = "1"
}
resource "aws_db_instance" "default_replica1" {
identifier = "replica1"
replicate_source_db = "${aws_db_instance.default.identifier}"
availability_zone = "ap-northeast-1a"
allocated_storage = "${var.storage}"
engine = "${var.engine}"
engine_version = "${lookup(var.engine_version, var.engine)}"
instance_class = "${var.instance_class}"
name = "${var.db_name}"
username = "${var.username}"
password = "${var.password}"