mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
20 lines
659 B
HCL
20 lines
659 B
HCL
output "master_instance_ip_address" {
|
|
value = google_sql_database_instance.master.private_ip_address
|
|
}
|
|
|
|
output "master_instance_name" {
|
|
value = google_sql_database_instance.master.name
|
|
}
|
|
|
|
output "master_instance_address" {
|
|
value = google_sql_database_instance.master.private_ip_address
|
|
}
|
|
|
|
output "read-replicas" {
|
|
value = google_sql_database_instance.read-replica
|
|
}
|
|
|
|
output "bi_instance_ip_address" {
|
|
value = length(var.database_read_replica_locations) > 0 ? lookup(values(google_sql_database_instance.read-replica)[0], "ip_address", google_sql_database_instance.master.private_ip_address) : google_sql_database_instance.master.private_ip_address
|
|
}
|