diff --git a/iam.tf b/iam.tf index 5e31901..4b6edd1 100644 --- a/iam.tf +++ b/iam.tf @@ -3,6 +3,10 @@ resource "google_service_account" "opsman_service_account" { display_name = "${var.env_name} Ops Manager VM Service Account" } +resource "google_service_account_key" "opsman_service_account_key" { + service_account_id = "${google_service_account.opsman_service_account.id}" +} + resource "google_project_iam_member" "opsman_iam_service_account_actor" { count = "${var.create_iam_service_account_members}" project = "${var.project}" diff --git a/outputs.tf b/outputs.tf index c29c769..a9bb7df 100644 --- a/outputs.tf +++ b/outputs.tf @@ -2,6 +2,10 @@ output "service_account_email" { value = "${google_service_account.opsman_service_account.email}" } +output "pas_blobstore_gcp_service_account_key" { + value = "${google_service_account_key.opsman_service_account_key.private_key}" +} + output "ops_manager_dns" { value = "${replace(google_dns_record_set.ops-manager-dns.name, "/\\.$/", "")}" }