Skip to content

Commit

Permalink
Remove old service account from inspec integration test tf file
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Levenick <[email protected]>
  • Loading branch information
slevenick authored and Stuart Paterson committed Jan 3, 2019
1 parent 177a5fb commit 94a3b28
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions test/integration/build/gcp-mm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,4 @@ resource "google_compute_ssl_policy" "custom-ssl-policy" {
profile = "${var.ssl_policy["profile"]}"
custom_features = ["${var.ssl_policy["custom_feature"]}", "${var.ssl_policy["custom_feature2"]}"]
project = "${var.gcp_project_id}"
}

resource "google_service_account" "inspecaccount" {
account_id = "inspec-account"
display_name = "InSpec Service Account"
project = "${var.gcp_project_id}"
}

resource "google_service_account_key" "inspeckey" {
service_account_id = "${google_service_account.inspecaccount.name}"
public_key_type = "TYPE_X509_PEM_FILE"
}

resource "google_project_iam_member" "inspec-iam-member" {
role = "roles/viewer"
member = "serviceAccount:${google_service_account.inspecaccount.email}"
project = "${var.gcp_project_id}"
}

resource "local_file" "file" {
content = "${base64decode(google_service_account_key.inspeckey.private_key)}"
filename = "${path.module}/inspec.json"
}
}

0 comments on commit 94a3b28

Please sign in to comment.