From c8bfc479977b06b7c38d5b60bca0979952767a6f Mon Sep 17 00:00:00 2001 From: Connor Braa Date: Tue, 6 Mar 2018 11:32:04 -0800 Subject: [PATCH] add pas_blobstore_gcp_service_account_key output [#155719761] Signed-off-by: Michelle He --- iam.tf | 4 ++++ outputs.tf | 4 ++++ 2 files changed, 8 insertions(+) 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, "/\\.$/", "")}" }