data "google_iam_policy" "${admin}" {
         binding {
             role = "roles/compute.instanceAdmin"
                 members = [
                     "serviceAccount:your-custom-sa@your-project.iam.gserviceaccount.com",
                 ]
         }
         binding {
             role = "roles/storage.objectViewer"
             members = [
                 "user:evanbrown@google.com",
             ]
         }
      }

      Terraform language logo
      google_iam_policy

      Terraform snippets

      data "google_iam_policy" "${admin}" { binding { role = "roles/compute.instanceAdmin" members = [ "serviceAccount:your-custom-sa@your-project.iam.gserviceaccount.com" ] } binding { role = "roles/storage.objectViewer" members = [ "user:evanbrown@google.

      Shortcut: tf_google_iam_policy

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.