terraform-aws-rds-cluster
terraform-aws-rds-cluster copied to clipboard
Add output variable for `master_user_secret`
what
Add master_user_secret (~~renamed~~ followed the cloudposse naming replacing master with admin) as output.
why
I want to add the secret to my beanstalk environment, but I can not reference the secret in terraform, because the master_user_secret is not available.
references
- https://github.com/cloudposse/terraform-aws-rds-cluster/issues/166
Add output block that contains the the secret ARN (see master_user_secret reference in the terraform docs).
... but it was not added 😢
- https://github.com/cloudposse/terraform-aws-rds-cluster/pull/221
I am not sure how to configure the output correctly, beacuse the value just exists when the manage_admin_user_password is true. Does the current implementation probably result in problems? My terraform knowledge is limited. 😅