Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/questopshub/terraform-azurerm-role-assignment
Terraform module to assign a specified Role to a given Principal (User or Group).
https://github.com/questopshub/terraform-azurerm-role-assignment
azure azure-infrastructure iac infrastructure-as-code terraform terraform-module
Last synced: 8 days ago
JSON representation
Terraform module to assign a specified Role to a given Principal (User or Group).
- Host: GitHub
- URL: https://github.com/questopshub/terraform-azurerm-role-assignment
- Owner: QuestOpsHub
- License: mit
- Created: 2025-01-25T18:01:43.000Z (9 days ago)
- Default Branch: main
- Last Pushed: 2025-01-25T18:35:38.000Z (9 days ago)
- Last Synced: 2025-01-25T19:18:56.409Z (9 days ago)
- Topics: azure, azure-infrastructure, iac, infrastructure-as-code, terraform, terraform-module
- Language: HCL
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Azure Role Assignment Terraform Module
Terraform module to assign a specified Role to a given Principal (User or Group).
## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >=0.13 |
| [azurerm](#requirement\_azurerm) | >=4.0.0 |## Providers
| Name | Version |
|------|---------|
| [azurerm](#provider\_azurerm) | >=4.0.0 |## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [azurerm_role_assignment.role_assignment](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/role_assignment) | resource |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [description](#input\_description) | (Optional) The description for this Role Assignment. Changing this forces a new resource to be created. | `string` | `null` | no |
| [principal\_id](#input\_principal\_id) | (Required) The ID of the Principal (User, Group or Service Principal) to assign the Role Definition to. Changing this forces a new resource to be created. | `string` | n/a | yes |
| [role\_definition\_id](#input\_role\_definition\_id) | (Optional) The Scoped-ID of the Role Definition. Changing this forces a new resource to be created. Conflicts with role\_definition\_name. | `string` | `null` | no |
| [role\_definition\_name](#input\_role\_definition\_name) | (Optional) The name of a built-in Role. Changing this forces a new resource to be created. Conflicts with role\_definition\_id. | `string` | `null` | no |
| [scope](#input\_scope) | (Required) The scope at which the Role Assignment applies to, such as /subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333, /subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup, or /subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM, or /providers/Microsoft.Management/managementGroups/myMG. Changing this forces a new resource to be created. | `string` | n/a | yes |## Outputs
| Name | Description |
|------|-------------|
| [id](#output\_id) | The Role Assignment ID. |