Skip to content

Commit 3339d4c

Browse files
committed
Update all list outputs to new syntax
1 parent c6cd87e commit 3339d4c

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

modules/mysql/outputs.tf

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,63 +57,63 @@ output "instance_service_account_email_address" {
5757

5858
// Replicas
5959
output "replicas_instance_first_ip_addresses" {
60-
value = [google_sql_database_instance.replicas.*.ip_address]
60+
value = google_sql_database_instance.replicas[*].ip_address
6161
description = "The first IPv4 addresses of the addresses assigned for the replica instances"
6262
}
6363

6464
output "replicas_instance_connection_names" {
65-
value = [google_sql_database_instance.replicas.*.connection_name]
65+
value = google_sql_database_instance.replicas[*].connection_name
6666
description = "The connection names of the replica instances to be used in connection strings"
6767
}
6868

6969
output "replicas_instance_self_links" {
70-
value = [google_sql_database_instance.replicas.*.self_link]
70+
value = google_sql_database_instance.replicas[*].self_link
7171
description = "The URIs of the replica instances"
7272
}
7373

7474
output "replicas_instance_server_ca_certs" {
75-
value = [google_sql_database_instance.replicas.*.server_ca_cert]
75+
value = google_sql_database_instance.replicas[*].server_ca_cert
7676
description = "The CA certificates information used to connect to the replica instances via SSL"
7777
}
7878

7979
output "replicas_instance_service_account_email_addresses" {
80-
value = [google_sql_database_instance.replicas.*.service_account_email_address]
80+
value = google_sql_database_instance.replicas[*].service_account_email_address
8181
description = "The service account email addresses assigned to the replica instances"
8282
}
8383

8484
output "read_replica_instance_names" {
85-
value = google_sql_database_instance.replicas.*.name
85+
value = google_sql_database_instance.replicas[*].name
8686
description = "The instance names for the read replica instances"
8787
}
8888

8989
// Failover Replicas
9090
output "failover-replica_instance_first_ip_address" {
91-
value = google_sql_database_instance.failover-replica.*.ip_address
91+
value = google_sql_database_instance.failover-replica[*].ip_address
9292
description = "The first IPv4 address of the addesses assigned for the failover-replica instance"
9393
}
9494

9595
output "failover-replica_instance_connection_name" {
96-
value = google_sql_database_instance.failover-replica.*.connection_name
96+
value = google_sql_database_instance.failover-replica[*].connection_name
9797
description = "The connection name of the failover-replica instance to be used in connection strings"
9898
}
9999

100100
output "failover-replica_instance_self_link" {
101-
value = google_sql_database_instance.failover-replica.*.self_link
101+
value = google_sql_database_instance.failover-replica[*].self_link
102102
description = "The URI of the failover-replica instance"
103103
}
104104

105105
output "failover-replica_instance_server_ca_cert" {
106-
value = google_sql_database_instance.failover-replica.*.server_ca_cert
106+
value = google_sql_database_instance.failover-replica[*].server_ca_cert
107107
description = "The CA certificate information used to connect to the failover-replica instance via SSL"
108108
}
109109

110110
output "failover-replica_instance_service_account_email_address" {
111-
value = google_sql_database_instance.failover-replica.*.service_account_email_address
111+
value = google_sql_database_instance.failover-replica[*].service_account_email_address
112112
description = "The service account email addresses assigned to the failover-replica instance"
113113
}
114114

115115
output "failover-replica_instance_name" {
116-
value = google_sql_database_instance.failover-replica.*.name
116+
value = google_sql_database_instance.failover-replica[*].name
117117
description = "The instance name for the failover replica instance"
118118
}
119119

modules/postgresql/outputs.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,32 +57,32 @@ output "instance_service_account_email_address" {
5757

5858
// Replicas
5959
output "replicas_instance_ip_addresses" {
60-
value = [google_sql_database_instance.replicas.*.ip_address]
60+
value = google_sql_database_instance.replicas[*].ip_address
6161
description = "The IPv4 addresses assigned for the replica instances"
6262
}
6363

6464
output "replicas_instance_connection_names" {
65-
value = [google_sql_database_instance.replicas.*.connection_name]
65+
value = google_sql_database_instance.replicas[*].connection_name
6666
description = "The connection names of the replica instances to be used in connection strings"
6767
}
6868

6969
output "replicas_instance_self_links" {
70-
value = [google_sql_database_instance.replicas.*.self_link]
70+
value = google_sql_database_instance.replicas[*].self_link
7171
description = "The URIs of the replica instances"
7272
}
7373

7474
output "replicas_instance_server_ca_certs" {
75-
value = [google_sql_database_instance.replicas.*.server_ca_cert]
75+
value = google_sql_database_instance.replicas[*].server_ca_cert
7676
description = "The CA certificates information used to connect to the replica instances via SSL"
7777
}
7878

7979
output "replicas_instance_service_account_email_addresses" {
80-
value = [google_sql_database_instance.replicas.*.service_account_email_address]
80+
value = google_sql_database_instance.replicas[*].service_account_email_address
8181
description = "The service account email addresses assigned to the replica instances"
8282
}
8383

8484
output "read_replica_instance_names" {
85-
value = google_sql_database_instance.replicas.*.name
85+
value = google_sql_database_instance.replicas[*].name
8686
description = "The instance names for the read replica instances"
8787
}
8888

0 commit comments

Comments
 (0)