Skip to content

Commit

Permalink
Merge pull request #14 from truefoundry/hl/refactor
Browse files Browse the repository at this point in the history
feat(output.tf): add output for IAM service account private key to enable access to service account credentials
  • Loading branch information
sachincool authored Nov 21, 2024
2 parents 49a5999 + ac5b55d commit 25deb6e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ Truefoundry Google Cloud platform features module
| <a name="output_bucket_name"></a> [bucket\_name](#output\_bucket\_name) | Name of the bucket |
| <a name="output_bucket_url"></a> [bucket\_url](#output\_bucket\_url) | URL of the bucket |
| <a name="output_docker_registry_enabled"></a> [docker\_registry\_enabled](#output\_docker\_registry\_enabled) | Docker registry feature enabled |
| <a name="output_sa_auth_data"></a> [sa\_auth\_data](#output\_sa\_auth\_data) | Private key of the service account |
| <a name="output_secret_manger_enabled"></a> [secret\_manger\_enabled](#output\_secret\_manger\_enabled) | Secret manager feature enabled |
| <a name="output_serviceaccount_key"></a> [serviceaccount\_key](#output\_serviceaccount\_key) | Service account keys |
| <a name="output_serviceaccount_name"></a> [serviceaccount\_name](#output\_serviceaccount\_name) | Name of the service account |
Expand Down
12 changes: 11 additions & 1 deletion output.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
################################################################################
# Buket
# IAM serviceaccount
################################################################################
output "sa_auth_data" {
value = base64decode(google_service_account_key.truefoundry_platform_feature_service_account_key.private_key)
sensitive = true
description = "Private key of the service account"
}

################################################################################
# Bucket
################################################################################
output "blob_storage_enabled" {
value = var.feature_blob_storage_enabled
Expand All @@ -10,6 +19,7 @@ output "bucket_name" {
value = var.feature_blob_storage_enabled ? module.blob_storage[0].name : ""
description = "Name of the bucket"
}

output "bucket_url" {
value = var.feature_blob_storage_enabled ? module.blob_storage[0].url : ""
description = "URL of the bucket"
Expand Down

0 comments on commit 25deb6e

Please sign in to comment.