-
Notifications
You must be signed in to change notification settings - Fork 3
/
outputs.tf
39 lines (32 loc) · 1.22 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
output "postgres_postgres_password" {
description = "PSQL password to postgres user"
value = google_sql_user.postgres.password
}
output "postgres_default_password" {
description = "PSQL password to default user"
value = google_sql_user.default.password
}
output "postgres_instance_name" {
description = "PSQL instance name"
value = google_sql_database_instance.default.name
}
output "instance_name" {
description = "PSQL instance name"
value = google_sql_database_instance.default.name
}
output "postgres_instance_connection_name" {
description = "PSQL instance connection name"
value = google_sql_database_instance.default.connection_name
}
output "instance_connection_name" {
description = "PSQL instance connection name"
value = google_sql_database_instance.default.connection_name
}
output "postgres_instance_ip_settings" {
description = "PSQL instance IP address settings"
value = google_sql_database_instance.default.ip_address
}
output "postgres_reader_instance_ip_settings" {
description = "PSQL instance IP address settings of read replicas"
value = { for k, _ in var.read_replicas : k => google_sql_database_instance.read_replica[k].ip_address }
}