Skip to content

Commit

Permalink
Merge pull request #3 from truefoundry/added_database_details_to_outputs
Browse files Browse the repository at this point in the history
Added database details to outputs
  • Loading branch information
shubhamrai1993 committed May 6, 2024
2 parents 90911d6 + 0007958 commit 310e74a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ No requirements.
|------|-------------|
| <a name="output_bucket_name"></a> [bucket\_name](#output\_bucket\_name) | GCS bucket name |
| <a name="output_bucket_url"></a> [bucket\_url](#output\_bucket\_url) | GCS bucket URL |
| <a name="output_database_name"></a> [database\_name](#output\_database\_name) | Database's name |
| <a name="output_database_password"></a> [database\_password](#output\_database\_password) | Database's password |
| <a name="output_database_username"></a> [database\_username](#output\_database\_username) | Database's username |
| <a name="output_instance_ip_address"></a> [instance\_ip\_address](#output\_instance\_ip\_address) | Database instance IP address |
| <a name="output_instance_name"></a> [instance\_name](#output\_instance\_name) | Database instance name |
| <a name="output_instance_self_link"></a> [instance\_self\_link](#output\_instance\_self\_link) | Self link of the database |
Expand Down
9 changes: 9 additions & 0 deletions output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ output "serviceaccount_binding_service_accounts" {
# Database
################################################################################

output "database_name" {
value = var.truefoundry_db_enable ? var.truefoundry_db_database_name : null
description = "Database's name"
}

output "database_username" {
value = var.truefoundry_db_enable ? "postgres" : null
description = "Database's username"
}

output "database_password" {
value = var.truefoundry_db_enable ? random_password.truefoundry_db_password[0].result : null
Expand Down

0 comments on commit 310e74a

Please sign in to comment.