avm-utl-roledefinitions
Azure/avm-utl-roledefinitions/azure
Terraform Azure Verified Utility Module for AVM Utility module for role definitions
Azure Role Definitions Module This module outputs a simple map of role definition role names to UUIDs and resource IDs. It rationalizes the resource ID to be either tenant root scoped or subscription scoped, depending on the input variable role_definition_scope. This helps with getting idempotent role assignment resources. There is an option to use live data from Azure or cached data within the module, which is updated regularly with built-in roles. Requirements The following requirements are needed by this module: - terraform (~> 1.6) - azapi (~> 2.4) - modtm (~> 0.3) - random (~> 3.6) Resources The following resources are used by this module: - modtm_telemetry.telemetry (resource) - random_uuid.telemetry (resource) - azapi_client_config.current (data source) - azapi_client_config.telemet
| Name | Type | Description | Default |
|---|---|---|---|
| enable_telemetry | bool | This variable controls whether or not telemetry is enabled for the module. For m | true |
| role_definition_scope | string | Serves two purposes. First, if using live data, it defines the scope at which to | null |
| use_cached_data | bool | If true, use the cached role definition data. If false, fetch live data from Azu | true |
role_definition_rolename_to_name — A map of role definition role names, e.g. 'Contributor', to role definition names (UUIDs).role_definition_rolename_to_resource_id — A map of role definition role names, e.g. 'Contributor', to role definition resource IDs.
The resour