update code
This commit is contained in:
parent
c70498ea85
commit
198b9bdd2f
@ -7,11 +7,12 @@ resource "azurerm_resource_group" "default" {
|
|||||||
location = var.location
|
location = var.location
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "azurerm_mysql_flexible_server" "test" {
|
resource "azurerm_mysql_flexible_server" "default" {
|
||||||
name = "${var.name_prefix}-server"
|
name = "${var.name_prefix}-server"
|
||||||
resource_group_name = azurerm_resource_group.default.name
|
resource_group_name = azurerm_resource_group.default.name
|
||||||
location = azurerm_resource_group.default.location
|
location = azurerm_resource_group.default.location
|
||||||
administrator_login = "adminTerraform"
|
administrator_login = "adminTerraform"
|
||||||
administrator_password = "QAZwsx123"
|
administrator_password = "QAZwsx123"
|
||||||
sku_name = "B_Standard_B1s"
|
sku_name = "B_Standard_B1s"
|
||||||
|
zone = "1"
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
resource "azurerm_mysql_flexible_database" "default" {
|
resource "azurerm_mysql_flexible_database" "default" {
|
||||||
name = "${var.name_prefix}-db"
|
name = "${var.name_prefix}db"
|
||||||
resource_group_name = azurerm_resource_group.default.name
|
resource_group_name = azurerm_resource_group.default.name
|
||||||
server_name = azurerm_mysql_flexible_server.default.name
|
server_name = azurerm_mysql_flexible_server.default.name
|
||||||
charset = "utf8"
|
charset = "utf8"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user