vmware-archive / terraforming-aws

Templates to deploy PCF and PKS
Apache License 2.0
64 stars 91 forks source link

README is not clear about whether or not user can create more than 1 RDS #147

Closed ArseniiPetrovich closed 4 years ago

ArseniiPetrovich commented 5 years ago

If so, the output of the RDS module will throw info about the very first created RDS:

"${element(concat(aws_db_instance.rds.*.address, list("")), 0)}"
genevieve commented 4 years ago

Hi @ArseniiPetrovich. We expect users to either have no RDS instance or one RDS instance. When any resource has a count property (which it will need so it can be set to 0 or 1), we need to use the terraform interpolation syntax that you pasted above so that we if there is an RDS instance, then we get the address of the first (and only) RDS instance.