Created
January 25, 2019 07:04
-
-
Save tuannvm/0118355fc9ed2374f1d04e25c26c539f to your computer and use it in GitHub Desktop.
#90s #blog #gitlab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "google_storage_bucket" "gitlab_runner" { | |
name = "${local.name}-cache" | |
} | |
resource "google_storage_bucket_iam_binding" "gitlab_runner" { | |
bucket = "${google_storage_bucket.gitlab_runner.name}" | |
role = "roles/storage.objectAdmin" | |
members = [ | |
"serviceAccount:${google_service_account.gke.email}", | |
] | |
} | |
resource "google_service_account" "gke" { | |
account_id = "<accout-name>" | |
display_name = "service account to access gcs bucket" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment