Sort all variables, outputs, arguments and blocks in resource block.

Adjust code file's style.
Add `numeric = false` for `random_string.name` in `201-mysql-fs-db` module as the name is used as `azurerm_mysql_flexible_server.default`'s `administrator_login` and the login name doesn't support a name start with number.
Add minimum constraints for `random_password.password` in `201-mysql-fs-db` module as the password required a minimum complexity.
This commit is contained in:
hezijie
2022-08-29 17:03:29 +08:00
parent 65cb9c7f0e
commit e3c66ca15d
17 changed files with 128 additions and 137 deletions

View File

@ -1,8 +1,8 @@
# Manages the MySQL Flexible Server Database
resource "azurerm_mysql_flexible_database" "default" {
charset = "utf8"
collation = "utf8_unicode_ci"
name = "mysqlfsdb_${random_string.name.result}"
resource_group_name = azurerm_resource_group.rg.name
server_name = azurerm_mysql_flexible_server.default.name
charset = "utf8"
collation = "utf8_unicode_ci"
}