-
Notifications
You must be signed in to change notification settings - Fork 0
/
container.tf
32 lines (27 loc) · 1.28 KB
/
container.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
resource "azurerm_storage_account" "truefoundry_platform_storage_account" {
count = var.feature_blob_storage_enabled ? 1 : 0
name = local.storage_account_name
resource_group_name = var.resource_group_name
location = var.location
account_tier = var.blob_storage_account_account_tier
account_replication_type = var.blob_storage_account_replication_type
access_tier = "Hot"
min_tls_version = "TLS1_2"
public_network_access_enabled = true
blob_properties {
cors_rule {
allowed_headers = var.blob_storage_cors_allowed_headers
allowed_methods = var.blob_storage_cors_allowed_methods
allowed_origins = var.blob_storage_cors_allowed_origins
exposed_headers = var.blob_storage_account_exposed_headers
max_age_in_seconds = var.blob_storage_cors_allowed_maxage
}
}
infrastructure_encryption_enabled = true
tags = local.tags
}
resource "azurerm_storage_container" "truefoundry_platform_container" {
count = var.feature_blob_storage_enabled ? 1 : 0
name = local.container_name
storage_account_name = azurerm_storage_account.truefoundry_platform_storage_account[0].name
}