Skip to content

Commit

Permalink
Merge pull request #1 from konpyutaika/fix/module
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
erdrix authored Sep 24, 2023
2 parents b846231 + a8781a3 commit 026afb3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions custom-roles-binding.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// https://www.terraform.io/docs/providers/template/index.html
// This template will be rendered and used as the startup script for the bastion.
// Incompatible with metadata = { startup-script = <<SCRIPT xxxxxxx SCRIPT }

# Creation custom role -> https://cloud.google.com/iam/docs/understanding-custom-roles#required_permissions_and_roles
resource "google_project_iam_custom_role" "project_custom_role_map" {
for_each = merge(var.common_custom_roles,var.custom_roles)

project = var.project_id
role_id = each.value.role_id
title = each.key
description = each.value.description
permissions = each.value.permissions
}

0 comments on commit 026afb3

Please sign in to comment.