Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/postgresql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ module "pg" {
| replicas | A list of `google_sql_database_instance` resources representing the replicas |
| replicas\_instance\_connection\_names | The connection names of the replica instances to be used in connection strings |
| replicas\_instance\_first\_ip\_addresses | The first IPv4 addresses of the addresses assigned for the replica instances |
| replicas\_instance\_psc\_attachments | The psc\_service\_attachment\_links created for the replica instances |
| replicas\_instance\_self\_links | The URIs of the replica instances |
| replicas\_instance\_server\_ca\_certs | The CA certificates information used to connect to the replica instances via SSL |
| replicas\_instance\_service\_account\_email\_addresses | The service account email addresses assigned to the replica instances |
Expand Down
5 changes: 5 additions & 0 deletions modules/postgresql/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ output "replicas_instance_server_ca_certs" {
sensitive = true
}

output "replicas_instance_psc_attachments" {
value = [for r in google_sql_database_instance.replicas : r.psc_service_attachment_link]
description = "The psc_service_attachment_links created for the replica instances"
}

output "replicas_instance_service_account_email_addresses" {
value = [for r in google_sql_database_instance.replicas : r.service_account_email_address]
description = "The service account email addresses assigned to the replica instances"
Expand Down