/
hdinsight_interactive_query_cluster_test.tf
68 lines (58 loc) · 1.77 KB
/
hdinsight_interactive_query_cluster_test.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
provider "azurerm" {
features {}
skip_provider_registration = true
}
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "West Europe"
}
resource "azurerm_storage_account" "example" {
name = "hdinsightstor"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
account_tier = "Standard"
account_replication_type = "LRS"
}
resource "azurerm_storage_container" "example" {
name = "hdinsight"
storage_account_name = azurerm_storage_account.example.name
container_access_type = "private"
}
resource "azurerm_hdinsight_interactive_query_cluster" "example" {
name = "example-hdicluster"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
cluster_version = "3.6"
tier = "Standard"
component_version {
interactive_hive = "2.1"
}
gateway {
enabled = true
username = "acctestusrgw"
password = "TerrAform123!"
}
storage_account {
storage_container_id = azurerm_storage_container.example.id
storage_account_key = azurerm_storage_account.example.primary_access_key
is_default = true
}
roles {
head_node {
vm_size = "Standard_E2_V3"
username = "acctestusrvm"
password = "AccTestvdSC4daf986!"
}
worker_node {
vm_size = "Standard_E16_V3"
username = "acctestusrvm"
password = "AccTestvdSC4daf986!"
target_instance_count = 3
}
zookeeper_node {
vm_size = "Standard_E64i_V3"
username = "acctestusrvm"
password = "AccTestvdSC4daf986!"
}
}
}