Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

28 and 29 mysql database creation #8

Open
emichellecarter opened this issue Feb 26, 2023 · 0 comments
Open

28 and 29 mysql database creation #8

emichellecarter opened this issue Feb 26, 2023 · 0 comments

Comments

@emichellecarter
Copy link

When creating a mysql database with the attribute ssl_enforcement_enabled set to false. The attribute ssl_minimal_tls_version_enforced must be set to "TLSEnforcementDisabled" or the mysql database will throw an error that the incorrect Minimum TLS version is set because terraform will set the version to the default of "TLS1_2".

Error:
azurerm_mysql_server.mysqlserver: Creating...

│ Error: creating Server: (Name "it-dev-mydb102" / Resource Group "it-dev-rg"): mysql.ServersClient#Create: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidParameterValue" Message="Invalid value given for parameter 'MinimalTlsVersion'. Specify a valid parameter value."

│ with azurerm_mysql_server.mysqlserver,
│ on c4-azure-mysql-database.tf line 2, in resource "azurerm_mysql_server" "mysqlserver":
│ 2: resource "azurerm_mysql_server" "mysqlserver" {


Plan:

# azurerm_mysql_server.mysqlserver will be created
  + resource "azurerm_mysql_server" "mysqlserver" {
      + administrator_login              = (sensitive value)
      + administrator_login_password     = (sensitive value)
      + auto_grow_enabled                = true
      + backup_retention_days            = 7
      + create_mode                      = "Default"
      + fqdn                             = (known after apply)
      + geo_redundant_backup_enabled     = false
      + id                               = (known after apply)
      + location                         = "eastus"
      + name                             = "it-dev-mydb102"
      + public_network_access_enabled    = true
      + resource_group_name              = "it-dev-rg"
      + sku_name                         = "GP_Gen5_2"
      + ssl_enforcement_enabled          = false
      + ssl_minimal_tls_version_enforced = "TLS1_2"
      + storage_mb                       = 5120
      + tags                             = {
          + "CLITool" = "Terraform"
          + "Tag1"    = "Azure"
        }
      + version                          = "8.0"


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant