Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

Commit

Permalink
Use first_ip_address on sql db instance.
Browse files Browse the repository at this point in the history
  • Loading branch information
Genevieve LEsperance committed Mar 29, 2018
1 parent edb8a99 commit ba6177e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions external_database/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
output "sql_db_ip" {
value = "${element(concat(google_sql_database_instance.master.*.ip_address.0.ip_address, list("")), 0)}"
}

output "opsman_sql_db_name" {
value = "${element(concat(google_sql_database.opsman.*.name, list("")), 0)}"
}
Expand All @@ -12,7 +8,7 @@ output "opsman_sql_username" {

output "opsman_sql_password" {
sensitive = true
value = "${element(concat(random_id.opsman_db_password.*.b64, list("")), 0)}"
value = "${element(concat(random_id.opsman_db_password.*.b64, list("")), 0)}"
}

output "pas_sql_username" {
Expand All @@ -21,9 +17,9 @@ output "pas_sql_username" {

output "pas_sql_password" {
sensitive = true
value = "${element(concat(random_id.pas_db_password.*.b64, list("")), 0)}"
value = "${element(concat(random_id.pas_db_password.*.b64, list("")), 0)}"
}

output "ip" {
value = "${element(concat(google_sql_database_instance.master.*.ip_address.0.ip_address, list("")), 0)}"
value = "${element(concat(google_sql_database_instance.master.*.first_ip_address, list("")), 0)}"
}

0 comments on commit ba6177e

Please sign in to comment.