Skip to content

Commit

Permalink
Added count.index
Browse files Browse the repository at this point in the history
  • Loading branch information
dunefro committed Feb 27, 2024
1 parent 342cf6a commit a9a35d4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,48 +52,48 @@ output "serviceaccount_binding_service_accounts" {


output "database_password" {
value = var.truefoundry_db_enable ? random_password.truefoundry_db_password.result : ""
value = var.truefoundry_db_enable ? random_password.truefoundry_db_password[0].result : ""
sensitive = true
description = "Database's password"
}

output "instance_ip_address" {
value = var.truefoundry_db_enable ? module.postgresql-db.instance_ip_address : ""
value = var.truefoundry_db_enable ? module.postgresql-db[0].instance_ip_address : ""
description = "Database instance IP address"
}

output "instance_name" {
value = var.truefoundry_db_enable ? module.postgresql-db.instance_name : ""
value = var.truefoundry_db_enable ? module.postgresql-db[0].instance_name : ""
description = "Database instance name"
}

output "instance_self_link" {
value = var.truefoundry_db_enable ? module.postgresql-db.instance_self_link : ""
value = var.truefoundry_db_enable ? module.postgresql-db[0].instance_self_link : ""
description = "Self link of the database"
}

output "instance_server_ca_cert" {
value = var.truefoundry_db_enable ? module.postgresql-db.instance_server_ca_cert : ""
value = var.truefoundry_db_enable ? module.postgresql-db[0].instance_server_ca_cert : ""
sensitive = true
description = "Self link of the database server ca cert"
}

output "instance_service_account_email_address" {
value = var.truefoundry_db_enable ? module.postgresql-db.instance_service_account_email_address : ""
value = var.truefoundry_db_enable ? module.postgresql-db[0].instance_service_account_email_address : ""
description = "Service account email address"
}

output "instances" {
value = var.truefoundry_db_enable ? module.postgresql-db.instances : ""
value = var.truefoundry_db_enable ? module.postgresql-db[0].instances : ""
sensitive = true
}

output "primary" {
value = var.truefoundry_db_enable ? module.postgresql-db.primary : ""
value = var.truefoundry_db_enable ? module.postgresql-db[0].primary : ""
sensitive = true
}

output "private_ip_address" {
value = var.truefoundry_db_enable ? module.postgresql-db.private_ip_address : ""
value = var.truefoundry_db_enable ? module.postgresql-db[0].private_ip_address : ""
description = "Private IP address of the database instance"
}

0 comments on commit a9a35d4

Please sign in to comment.