Skip to content

Instantly share code, notes, and snippets.

@tuannvm
Created January 25, 2019 07:04
Show Gist options
  • Save tuannvm/0118355fc9ed2374f1d04e25c26c539f to your computer and use it in GitHub Desktop.
Save tuannvm/0118355fc9ed2374f1d04e25c26c539f to your computer and use it in GitHub Desktop.
#90s #blog #gitlab
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