<commit_before># Module Custom Role IAM

This optional module is used to create custom roles at organization or project level.

## Usage - Custom Role at Organization Level

```hcl
module "custom-roles" {
  source = "terraform-google-modules/iam/google//modules/custom_role_iam"

  target_level = "org"
  target_id    = "123456789"
  role_id      = "custom_role_id"
  title        = "Custom Role Unique Title"
  description  = "Custom Role Description"
  permissions  = ["iam.roles.list", "iam.roles.create", "iam.roles.delete"]
  members      = ["user:<EMAIL>", "group:<EMAIL>"]
}
```

## Usage - Custom Role at Project Level

```hcl
module "custom-roles" {
  source = "terraform-google-modules/iam/google//modules/custom_role_iam"

  target_level = "project"
  target_id    = "project_id_123"
  role_id      = "custom_role_id"
  title        = "Custom Role Unique Title"
  description  = "Custom Role Description"
  permissions  = ["iam.roles.list", "iam.roles.create", "iam.roles.delete"]
}
```

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --><commit_msg>Updated README.md with members (#104)<commit_after># Module Custom Role IAM

This optional module is used to create custom roles at organization or project level.

## Usage - Custom Role at Organization Level

```hcl
module "custom-roles" {
  source = "terraform-google-modules/iam/google//modules/custom_role_iam"

  target_level = "org"
  target_id    = "123456789"
  role_id      = "custom_role_id"
  title        = "Custom Role Unique Title"
  description  = "Custom Role Description"
  permissions  = ["iam.roles.list", "iam.roles.create", "iam.roles.delete"]
  members      = ["user:<EMAIL>", "group:<EMAIL>@domain.com"]
}
```

## Usage - Custom Role at Project Level

```hcl
module "custom-roles" {
  source = "terraform-google-modules/iam/google//modules/custom_role_iam"

  target_level = "project"
  target_id    = "project_id_123"
  role_id      = "custom_role_id"
  title        = "Custom Role Unique Title"
  description  = "Custom Role Description"
  permissions  = ["iam.roles.list", "iam.roles.create", "iam.roles.delete"]
  members      = ["serviceAccount:<EMAIL>@${var.target_id}.iam.gserviceaccount.com", "serviceAccount:<EMAIL>@${var.<EMAIL>_id}.<EMAIL>"]
}
```

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
{'fraction_non_alphanumeric': 0.13838120104438642, 'fraction_numerical': 0.01174934725848564, 'mean_word_length': 3.809623430962343, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7537016', 'n_tokens_mistral': 800, 'n_tokens_neox': 766, 'n_words': 181}