diff --git a/README.md b/README.md index d350c00..7efc7bd 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,7 @@ Truefoundry Google Cloud platform features module | [bucket\_name](#output\_bucket\_name) | Name of the bucket | | [bucket\_url](#output\_bucket\_url) | URL of the bucket | | [docker\_registry\_enabled](#output\_docker\_registry\_enabled) | Docker registry feature enabled | +| [sa\_auth\_data](#output\_sa\_auth\_data) | Private key of the service account | | [secret\_manger\_enabled](#output\_secret\_manger\_enabled) | Secret manager feature enabled | | [serviceaccount\_key](#output\_serviceaccount\_key) | Service account keys | | [serviceaccount\_name](#output\_serviceaccount\_name) | Name of the service account | diff --git a/output.tf b/output.tf index c114b3c..0419b8f 100644 --- a/output.tf +++ b/output.tf @@ -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 @@ -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"