storage-account
avinor/storage-account/azurerm
Terraform module to create a storage account and optionally sending events with Event Grid
Storage account Module to create an Azure storage account with set of containers (and access level). Storage account will enable encryption of file and blob and require https, these options are not possible to change. It is recommended to set the network policies to restrict access to account. To enable advanced threat protection set the variable enable_advanced_threat_protection to true. To disable soft delete set soft_delete_retention to null. Otherwise, set it to the number of retention days, default is 31. Usage To just create a storage account with some containers have a look at the simple example. ``terraform module "simple" { source = "avinor/storage-account/azurerm" version = "3.5.0" name = "simple" resource_group_name = "simple-rg" location = "westeurope" containers = [ { name = "
| Name | Type | Description | Default |
|---|---|---|---|
| location | string | Azure location where resources should be deployed. | required |
| name | string | Name of storage account. Unless var.exact_name is true any illegal characters (, | required |
| resource_group_name | string | Name of resource group to deploy resources in. | required |
| resource_group_create | bool | Create resource group. Defaults to true | true |
| account_tier | string | Defines the Tier to use for this storage account. Valid options are Standard and | "Standard" |
| enable_advanced_threat_protection | bool | Boolean flag which controls if advanced threat protection is enabled. | false |
| containers | list(object({ name | List of containers to create in the storage account. | [] |
| role_assignments | list(object({ principal_id | Role assignments for this storage account. | [] |
| events | list(any) | List of event subscriptions. See documentation for format description. | [] |
| account_kind | string | Defines the Kind of account. Valid options are BlobStorage, BlockBlobStorage, Fi | "StorageV2" |
| account_replication_type | string | Defines the type of replication to use for this storage account. Valid options a | "ZRS" |
| soft_delete_retention | number | Number of retention days for soft delete. If set to null it will disable soft de | 31 |
| diagnostics | object({ destination = s | Diagnostic settings for those resources that support it. See README.md for detai | null |
| exact_name | bool | When true, var.name is used exactly as passed | false |
| access_tier | string | Defines the access tier for BlobStorage and StorageV2 accounts. Valid options ar | "Hot" |
| min_tls_version | string | The minimum supported TLS version for the storage account. Possible values are T | "TLS1_2" |
| cors_rule | list(object({ allowed_orig | CORS rules for storage account. | [] |
| network_rules | object({ ip_rules = list | Network rules restricting access to the storage account. | null |
| tags | map(string) | Tags to apply to all resources created. | {} |
| lifecycles | list(object({ prefix_match | List of lifecycle delete | [] |
name — Name of the storage account created.id — Id of the storage account created.Azure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,