File tree Expand file tree Collapse file tree 4 files changed +11
-0
lines changed Expand file tree Collapse file tree 4 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ terraform destroy
3030
3131| Name | Description |
3232| ------| -------------|
33+ | dns\_ name | n/a |
3334| name | The name for Cloud SQL instance |
3435| project\_ id | n/a |
3536
Original file line number Diff line number Diff line change @@ -22,3 +22,7 @@ output "name" {
2222 description = " The name for Cloud SQL instance"
2323 value = module. pg . instance_name
2424}
25+
26+ output "dns_name" {
27+ value = module. pg . dns_name
28+ }
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ Note: CloudSQL provides [disk autoresize](https://cloud.google.com/sql/docs/mysq
6767| Name | Description |
6868| ------| -------------|
6969| additional\_ users | List of maps of additional users and passwords |
70+ | dns\_ name | DNS name of the instance endpoint |
7071| generated\_ user\_ password | The auto generated default user password if not input password was provided |
7172| iam\_ users | The list of the IAM users with access to the CloudSQL instance |
7273| instance\_ connection\_ name | The connection name of the master instance to be used in connection strings |
Original file line number Diff line number Diff line change @@ -136,3 +136,8 @@ output "instances" {
136136 description = " A list of all `google_sql_database_instance` resources we've created"
137137 sensitive = true
138138}
139+
140+ output "dns_name" {
141+ value = google_sql_database_instance. default . dns_name
142+ description = " DNS name of the instance endpoint"
143+ }
You can’t perform that action at this time.
0 commit comments