Skip to content

Commit

Permalink
New attributes, flatten storage_profile block
Browse files Browse the repository at this point in the history
- `create_mode`, `creation_source_server_id`,
  `infrastructure_encryption_enabled`,
  `ssl_minimal_tls_version_enforced`

- Support replicas and point-in-time restores

- Use booleans for toggle properties, renaming
  * `auto_grow` -> `auto_grow_enabled`
  * `geo_redundant_backup` -> `geo_redundant_backup_enabled`
  * `ssl_enforcement` -> `ssl_enforcement_enabled`

- Remove redundant `storage_profile` block and move all properties
  within to top level

Fixes: #4756
Related: #6459
  • Loading branch information
manicminer committed May 11, 2020
1 parent a1ad233 commit 0d0f704
Show file tree
Hide file tree
Showing 13 changed files with 874 additions and 303 deletions.
15 changes: 0 additions & 15 deletions azurerm/helpers/azure/mysql.go

This file was deleted.

Expand Up @@ -2,6 +2,7 @@ package mysql

import (
"fmt"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/mysql/validate"
"log"
"time"

Expand Down Expand Up @@ -43,7 +44,7 @@ func resourceArmMySQLConfiguration() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: azure.ValidateMySqlServerName,
ValidateFunc: validate.MysqlServerServerName,
},

"value": {
Expand Down
3 changes: 2 additions & 1 deletion azurerm/internal/services/mysql/mysql_database_resource.go
Expand Up @@ -2,6 +2,7 @@ package mysql

import (
"fmt"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/mysql/validate"
"log"
"time"

Expand Down Expand Up @@ -46,7 +47,7 @@ func resourceArmMySqlDatabase() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: azure.ValidateMySqlServerName,
ValidateFunc: validate.MysqlServerServerName,
},

"charset": {
Expand Down
Expand Up @@ -2,6 +2,7 @@ package mysql

import (
"fmt"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/mysql/validate"
"log"
"time"

Expand Down Expand Up @@ -46,7 +47,7 @@ func resourceArmMySqlFirewallRule() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: azure.ValidateMySqlServerName,
ValidateFunc: validate.MysqlServerServerName,
},

"start_ip_address": {
Expand Down

0 comments on commit 0d0f704

Please sign in to comment.