-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathm-cache-storage-account.tf
33 lines (26 loc) · 1.33 KB
/
m-cache-storage-account.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
module "cache_storage_account" {
source = "claranet/storage-account/azurerm"
version = "~> 7.14.0"
client_name = var.client_name
environment = var.environment
stack = var.stack
resource_group_name = var.cache_storage_resource_group_name
storage_account_custom_name = var.cache_storage_custom_name
location = var.primary_location
location_short = var.primary_location_short
logs_destinations_ids = coalesce(var.cache_storage_account_logs_destinations_ids, var.logs_destinations_ids)
logs_categories = var.cache_storage_account_logs_categories
logs_metrics_categories = var.cache_storage_account_logs_metrics_categories
custom_diagnostic_settings_name = var.cache_storage_account_custom_diagnostic_settings_name
account_tier = "Standard"
account_replication_type = "LRS"
storage_blob_data_protection = {
change_feed_enabled = false
container_point_in_time_restore = false
versioning_enabled = false
}
advanced_threat_protection_enabled = var.cache_storage_advanced_threat_protection_enabled
# subnet_ids = var.cache_storage_allowed_subnet_ids
subnet_ids = toset(concat(local.src_subnets, var.cache_storage_allowed_subnet_ids))
allowed_cidrs = var.cache_storage_allowed_cidrs
}