Open cougar2009 opened 4 years ago
Hi @cougar2009 👋 I'm going to transfer this issue to the Terraform AWS Provider repository, where the provider maintainers can elaborate on this particular configuration choice or submit a reordering change within the source file for the documentation (website/docs/r/rds_cluster_instance.html.md
once over there).
on this page ...at least to me ...it would make more sense to list the cluster first and then the instance. Or maybe someone can explain why not?
https://www.terraform.io/docs/providers/aws/r/rds_cluster_instance.html
resource "aws_rds_cluster_instance" "cluster_instances" { count = 2 identifier = "aurora-cluster-demo-${count.index}" cluster_identifier = "${aws_rds_cluster.default.id}" instance_class = "db.r4.large" }
resource "aws_rds_cluster" "default" { cluster_identifier = "aurora-cluster-demo" availability_zones = ["us-west-2a", "us-west-2b", "us-west-2c"] database_name = "mydb" master_username = "foo" master_password = "barbut8chars" }