-
Notifications
You must be signed in to change notification settings - Fork 1
/
mysql_server_test.tf
89 lines (68 loc) · 2.38 KB
/
mysql_server_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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
provider "azurerm" {
skip_provider_registration = true
features {}
}
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "eastus"
}
resource "azurerm_mysql_server" "basic_2core" {
name = "example-mariadb-server"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
administrator_login = "fake"
administrator_login_password = "fake"
sku_name = "B_Gen5_2"
storage_mb = 5120
version = "5.7"
geo_redundant_backup_enabled = false
ssl_enforcement_enabled = true
}
resource "azurerm_mysql_server" "gp_4core" {
name = "example-mariadb-server"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
administrator_login = "fake"
administrator_login_password = "fake"
sku_name = "GP_Gen5_4"
storage_mb = 4096000
version = "5.7"
geo_redundant_backup_enabled = false
ssl_enforcement_enabled = true
}
resource "azurerm_mysql_server" "mo_16core" {
name = "example-mariadb-server"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
administrator_login = "fake"
administrator_login_password = "fake"
sku_name = "MO_Gen5_16"
storage_mb = 5120
version = "5.7"
geo_redundant_backup_enabled = false
ssl_enforcement_enabled = true
}
resource "azurerm_mysql_server" "without_geo" {
name = "example-mariadb-server"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
administrator_login = "fake"
administrator_login_password = "fake"
sku_name = "MO_Gen5_16"
storage_mb = 5120
version = "5.7"
geo_redundant_backup_enabled = false
ssl_enforcement_enabled = true
}
resource "azurerm_mysql_server" "with_geo" {
name = "example-mariadb-server"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
administrator_login = "fake"
administrator_login_password = "fake"
sku_name = "GP_Gen5_4"
storage_mb = 4096000
version = "5.7"
geo_redundant_backup_enabled = true
ssl_enforcement_enabled = true
}