Skip to content

Commit e5446b7

Browse files
yasra002yasser.rasheed@schibsted.com
andauthored
feat: Output the Service Attachment links for Replicas (#758)
Co-authored-by: yasser.rasheed@schibsted.com <yasser.rasheed@schibsted.com>
1 parent e9a7830 commit e5446b7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

modules/postgresql/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ module "pg" {
209209
| replicas | A list of `google_sql_database_instance` resources representing the replicas |
210210
| replicas\_instance\_connection\_names | The connection names of the replica instances to be used in connection strings |
211211
| replicas\_instance\_first\_ip\_addresses | The first IPv4 addresses of the addresses assigned for the replica instances |
212+
| replicas\_instance\_psc\_attachments | The psc\_service\_attachment\_links created for the replica instances |
212213
| replicas\_instance\_self\_links | The URIs of the replica instances |
213214
| replicas\_instance\_server\_ca\_certs | The CA certificates information used to connect to the replica instances via SSL |
214215
| replicas\_instance\_service\_account\_email\_addresses | The service account email addresses assigned to the replica instances |

modules/postgresql/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ output "replicas_instance_server_ca_certs" {
8888
sensitive = true
8989
}
9090

91+
output "replicas_instance_psc_attachments" {
92+
value = [for r in google_sql_database_instance.replicas : r.psc_service_attachment_link]
93+
description = "The psc_service_attachment_links created for the replica instances"
94+
}
95+
9196
output "replicas_instance_service_account_email_addresses" {
9297
value = [for r in google_sql_database_instance.replicas : r.service_account_email_address]
9398
description = "The service account email addresses assigned to the replica instances"

0 commit comments

Comments
 (0)