Skip to content

Commit

Permalink
Merge pull request #18 from sjmiller609/master
Browse files Browse the repository at this point in the history
add back in service account key for bucket that I accidentally deleted
  • Loading branch information
sjmiller609 authored Jul 12, 2019
2 parents c9f64fe + 27e6b38 commit 2b3ffaf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions iam.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
data "google_compute_default_service_account" "default" {}

resource "google_service_account_key" "default_key" {
service_account_id = "${data.google_compute_default_service_account.default.name}"
public_key_type = "TYPE_X509_PEM_FILE"
}
5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,8 @@ resource "null_resource" "dependency_setter" {}
output "depended_on" {
value = "${null_resource.dependency_setter.id}-${timestamp()}"
}

output "gcp_default_service_account_key" {
value = "${base64decode(google_service_account_key.default_key.private_key)}"
sensitive = true
}

0 comments on commit 2b3ffaf

Please sign in to comment.