Skip to content

Commit

Permalink
add password
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-allen-ck committed Apr 2, 2024
1 parent 0471e52 commit a6c0ce3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/workspace_services/mysql/terraform/mysql.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ resource "azurerm_mysql_flexible_server" "mysql" {
resource_group_name = data.azurerm_resource_group.ws.name
location = data.azurerm_resource_group.ws.location
administrator_login = "mysqladmin"
administrator_password = random_password.password.result
sku_name = local.sql_sku[var.sql_sku].value
version = "8.0.21"
backup_retention_days = 7
geo_redundant_backup_enabled = false
tags = local.workspace_service_tags

lifecycle { ignore_changes = [tags] }
lifecycle { ignore_changes = [tags, zone] }
}

resource "azurerm_mysql_flexible_database" "db" {
Expand Down

0 comments on commit a6c0ce3

Please sign in to comment.