Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Remove old service account from inspec integration test tf file #50

Merged
merged 1 commit into from
Dec 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
}