-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstorage.tf
81 lines (73 loc) · 2.67 KB
/
storage.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#
# Create the Unity Catalog Storage Account
#
resource "azurerm_storage_account" "st-dbx-uc-uksouth-metastore" {
name = "stdbxucuksouthmetastore"
resource_group_name = azurerm_resource_group.rg-dbx-uc-001.name
location = azurerm_resource_group.rg-dbx-uc-001.location
account_tier = "Standard"
account_replication_type = "LRS"
is_hns_enabled = true
depends_on = [
azurerm_resource_group.rg-dbx-uc-001
]
}
#
# Create the Storage Container for the Metastore
#
resource "azurerm_storage_container" "sc-dbx-uc-uksouth-metastore" {
name = "scdbxucuksouthmetastore"
storage_account_name = azurerm_storage_account.st-dbx-uc-uksouth-metastore.name
container_access_type = "private"
depends_on = [
azurerm_storage_account.st-dbx-uc-uksouth-metastore
]
}
# ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬
#
# Create the Storage Account for Catalogs 001 and 002
#
resource "azurerm_storage_account" "st-dbx-ext-cat-001" {
name = "stdbxextcat001"
resource_group_name = azurerm_resource_group.rg-dbx-uc-001.name
location = azurerm_resource_group.rg-dbx-uc-001.location
account_tier = "Standard"
account_replication_type = "LRS"
is_hns_enabled = true
depends_on = [
azurerm_resource_group.rg-dbx-uc-001
]
}
#
# Create the Storage Container for Catalog 001
#
resource "azurerm_storage_container" "sc-dbx-uc-cat-001" {
name = "scdbxuccat001"
storage_account_name = azurerm_storage_account.st-dbx-ext-cat-001.name
container_access_type = "private"
depends_on = [
azurerm_storage_account.st-dbx-ext-cat-001
]
}
#
# Create the Storage Container for Catalog 002
#
resource "azurerm_storage_container" "sc-dbx-uc-cat-002" {
name = "scdbxuccat002"
storage_account_name = azurerm_storage_account.st-dbx-ext-cat-001.name
container_access_type = "private"
depends_on = [
azurerm_storage_account.st-dbx-ext-cat-001
]
}
#
# Create the Storage Container for Catalog 003
#
resource "azurerm_storage_container" "sc-dbx-uc-cat-003" {
name = "scdbxuccat003"
storage_account_name = azurerm_storage_account.st-dbx-ext-cat-001.name
container_access_type = "private"
depends_on = [
azurerm_storage_account.st-dbx-ext-cat-001
]
}