Skip to content

Instantly share code, notes, and snippets.

@tuanchris
Created August 15, 2020 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuanchris/cdff0d5f9261954c97d71dfec03d60f0 to your computer and use it in GitHub Desktop.
Save tuanchris/cdff0d5f9261954c97d71dfec03d60f0 to your computer and use it in GitHub Desktop.
cloud-iac-5
# Sample IAM permission
module "project_iam_binding" {
source = "terraform-google-modules/iam/google//modules/projects_iam/"
projects = [google_project.data-lake.project_id]
mode = "additive"
bindings = {
# Bigquery
"roles/bigquery.admin" = ["user:${local.unique_id}-de@gmail.com"]
# GCS
"roles/storage.admin" = ["user:${local.unique_id}-de@gmail.com"]
# Compute
"roles/compute.admin" = ["user:${local.unique_id}-de@gmail.com"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment