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.77k stars 9.12k forks source link

Swap order of examples #20346

Open cougar2009 opened 4 years ago

cougar2009 commented 4 years ago

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" }

bflad commented 3 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).