Terraform Module to Enable Azure Monitoring
The module default for storage account replication type defaults to GRS because archive tiering is not supported by ZRS.
Name | Version |
---|---|
terraform | >= 1.9 |
azurerm | >= 4, < 5.0 |
Name | Version |
---|---|
azurerm | >= 4, < 5.0 |
Name | Source | Version |
---|---|---|
storage_account | github.com/schubergphilis/terraform-azure-mcaf-storage-account.git | v0.6.0 |
Name | Type |
---|---|
azurerm_log_analytics_data_export_rule.this | resource |
azurerm_log_analytics_workspace.this | resource |
azurerm_resource_group.this | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
location | Location of the Storage account | string |
n/a | yes |
log_analytics_workspace | n/a | object({ |
n/a | yes |
resource_group_name | The name of the resource group in which to create the resources. | string |
n/a | yes |
storage_account | Configure an optional storage account for long term storage of logs The following arguments are supported: - name - (Required) The name of the storage account.- account_tier - (Optional) The tier of the storage account. Defaults to Standard .- account_replication_type - (Optional) The replication type for the storage account. Defaults to GRS (Geo-Redundant Storage) because archive tier only supports LRS, GRS and RAGRS.- access_tier - (Optional) The access tier for blobs in the storage account. Defaults to Cool .- infrastructure_encryption_enabled - (Optional) Specifies whether infrastructure encryption is enabled. Defaults to true.- cmk_key_vault_id - (Optional) The ID of the Key Vault containing the customer-managed key. Defaults to null.- cmk_key_name - (Optional) The name of the customer-managed key in the Key Vault. Defaults to null.- system_assigned_identity_enabled - (Optional) Whether a system-assigned identity is enabled. Defaults to false.- user_assigned_identities - (Optional) A set of user-assigned identities.- enable_law_data_export - (Optional) Enable the Export rule for Log Analytics Data. Defaults to false.- immutability_policy - (Optional) Immutability policy configuration. If undefined will not create a Immutability Policy- state - (Optional) The state of the immutability policy. Defaults to Unlocked .- allow_protected_append_writes - (Optional) Whether protected append writes are allowed. Defaults to true.- period_since_creation_in_days - (Optional) The immutability period in days. Defaults to 14 days.- storage_management_policy - (Optional) storage management policy and retention settings configuration, if all move_to_* or delete_after_days inputs are null does not create a storage management policy.- blob_delete_retention_days - (Optional) Retention days for blob deletion. Defaults to 90 days.- container_delete_retention_days - (Optional) Retention days for container deletion. Defaults to 90 days.- move_to_cool_after_days - (Optional) Days to wait before moving data to the cool tier. Defaults to null.- move_to_cold_after_days - (Optional) Days to wait before moving data to the cold tier. Defaults to null.- move_to_archive_after_days - (Optional) Days to wait before moving data to the archive tier. Defaults to null.- delete_after_days - (Optional) Days after which data should be deleted. Defaults to null.- network_configuration - (Optional) Network Configuration, if undefined will only allow private connections.- https_traffic_only_enabled - (Optional) Allow only HTTPS traffic. Defaults to true.- allow_nested_items_to_be_public - (Optional) If nested items can be public. Defaults to false.- public_network_access_enabled - (Optional) Enables public network access. Defaults to false.- default_action - (Optional) Default action for network rules when none are matched. Defaults to Deny .- virtual_network_subnet_ids - (Optional) A set of virtual network subnet IDs.- ip_rules - (Optional) A set of IP rules for accessing the storage account.- bypass - (Optional) Specifies which services bypass network rules. Defaults to ["AzureServices"].- tags - (Optional) A map of tags to assign to the storage account. |
object({ |
null |
no |
tags | A map of tags to assign to the resource. | map(string) |
{} |
no |
Name | Description |
---|---|
storage_account_id | n/a |