avm-ptn-policyassignment

Azure/avm-ptn-policyassignment/azurerm

Terraform Module HCL AZURERM ✓ Verified

Terraform module to deploy policies in Azure and assign them

Install
module "avm-ptn-policyassignment" {
source = "Azure/avm-ptn-policyassignment/azurerm"
version = "0.2.0"
}
⭐ Source on GitHub 📦 Registry page
README

Terraform Verified Module for applying Azure Poliecs This module is designed to simplify the assignment of policies. Requirements The following requirements are needed by this module: - terraform (~> 1.6) - azapi (>= 1.14.0, azurerm (~> 3.74) - modtm (~> 0.3) - random (~> 3.6) - time (~> 0.9) Resources The following resources are used by this module: - azapi_resource.policy_assignment (resource) - azapi_resource.policy_exemption (resource) - azurerm_role_assignment.this (resource) - modtm_telemetry.telemetry (resource) - random_uuid.telemetry (resource) - time_sleep.before_policy_role_assignments (resource) - azurerm_client_config.telemetry (data source) - modtm_module_source.telemetry (data source) Required Inputs The following input variables are required: location Description: Azure reg

Inputs (19)
NameTypeDescriptionDefault
scopestring(Required) The Scope at which this Policy Assignment should be applied. Changing required
policy_definition_idstring(Required) The ID of the Policy Definition or Policy Definition Set. Changing th required
locationstringAzure region where the resource should be deployed. required
schema_validation_enabledbool(Optional) Specifies if this Policy should be validated against the schema. Defatrue
descriptionstring(Optional) A description which should be used for this Policy Assignment.""
metadatamap(any)(Optional) A mapping of any Metadata for this Policy.{}
non_compliance_messagesset(object({ message (Optional) A set of non compliance message objects to use for the policy assig[]
resource_selectorslist(object({ name = strin(Optional) A list of resource selector objects to use for the policy assignment.[]
not_scopeslist(string)(Optional) Specifies a list of Resource Scopes (for example a Subscription, or a[]
delaysobject({ before_policy_assA map of delays to apply to the creation and destruction of resources. Included {}
exemptionslist(object({ resource_id - `name` - (Required) The name of the Policy Exemption. Changing this forces a[]
identityobject({ type = string } (Optional) An identity block as defined below. - `type` - (Required) Systemnull
parametersmap(any)(Optional) A mapping of any Parameters for this Policy.null
role_assignmentsmap(object({ role_definiti A map of role assignments to create on the <RESOURCE>. The map key is delibera{}
display_namestring(Optional) The Display Name for this Policy Assignment.""
enable_telemetryboolThis variable controls whether or not telemetry is enabled for the module. For mtrue
enforcestring(Optional) Specifies if this Policy should be enforced or not? Options are `Defa"Default"
namestring(Optional) The Display Name for this Policy Assignment.""
overrideslist(object({ kind = stri(Optional) A list of override objects to use for the policy assignment. Each obj[]
Outputs (5)
policy_assignment_id — This is the id of the policy assignment
policy_assignment_name — This is the name of the policy assignment
resource — Deprecated
resource_id — This is the resource id of the policy assignment.
role_assignments — This is the full output for the role assignments.
Resources (5)
azapi_resourceazurerm_role_assignmentmodtm_telemetryrandom_uuidtime_sleep
Details
FrameworkTerraform Module
LanguageHCL
Version0.2.0
Cloud AZURERM
★ Stars3
Forks4
Total downloads3.9k
Inputs19
Outputs5
Resources5
Examples4
LicenseMIT
NamespaceAzure
Updated