db-mysql-flexible

claranet/db-mysql-flexible/azurerm

Terraform Module HCL AZURERM

Terraform module composition (feature) for Azure MySQL Flexible Database

Install
module "db-mysql-flexible" {
source = "claranet/db-mysql-flexible/azurerm"
version = "8.3.4"
}
plain text: /constructs/tfmod-claranet-db-mysql-flexible-azurerm/install.txt
⭐ Source on GitHub 📦 Registry page
README

Azure Database for MySQL Flexible server Azure Managed DB - MySQL Flexible ![Changelog](CHANGELOG.md) ![Notice](NOTICE) ![Apache V2 License](LICENSE) ![OpenTofu Registry](https://search.opentofu.org/module/claranet/db-mysql-flexible/azurerm/) This Terraform module creates an Azure MySQL Flexible server with databases and associated admin users, along with enabled logging and firewall rules. Following MySQL configuration options are set by default and can be overridden with the options variable or fully disabled by setting the variable recommended_options_enabled to false: `` slow_query_log: ON long_query_time: 5 interactive_timeout: 28800 wait_timeout: 28800 innodb_change_buffering: all innodb_change_buffer_max_size: 50 innodb_print_all_deadlocks: ON max_allowed_packet: 1073741824 # 1GB ex

Inputs (42)
NameTypeDescriptionDefault
resource_group_namestringResource Group name. required
stackstringProject stack name. required
locationstringAzure location. required
location_shortstringShort string for Azure location. required
environmentstringProject environment. required
client_namestringClient name/account used in naming. required
logs_destinations_idslist(string)List of destination resources IDs for logs diagnostic destination. Can be `Stora required
default_tags_enabledboolOption to enable or disable default tags.true
public_network_access_enabledboolWhether approved public traffic is allowed through the firewall to this server.false
geo_redundant_backup_enabledboolEnable or disable geo-redundant server backups. Not available for the burstable true
maintenance_windowobject({ day_of_week = opMap of maintenance window configuration. See [documentation](https://docs.microsnull
zonenumberSpecifies the Availability Zone in which this MySQL Flexible server should be lonull
optionsmap(string)Map of MySQL configuration options. See [documentation](https://dev.mysql.com/do{}
audit_logs_enabledbool Whether MySQL audit logs are enabled. Categories `CONNECTION`, `ADMIN`, `CONNEfalse
delegated_subnetobject({ id = string })The ID of the Virtual Network Subnet to create the MySQL Flexible server.null
recommended_options_enabledboolWhether or not to use recommended options.true
entra_authenticationobject({ user_assigned_ideAzure Entra authentication configuration block for this Azure MySQL Flexible ser{}
custom_namestringCustom server name.""
administrator_loginstringMySQL administrator login. Required when `create_mode = "Default"`.null
source_server_idstringThe resource ID of the source MySQL Flexible server to be restored.null
backup_vault_policyobject({ policy_id =Backup vault policy configuration to use for MySQL Flexible Long term retention null
logs_metrics_categorieslist(string)Metrics categories to send to destinations.null
name_suffixstringOptional suffix for the generated name.""
tierstringTier for MySQL Flexible server SKU. Possible values are: `GeneralPurpose`, `Burs"GeneralPurpose"
identity_idslist(string)A list of User Assigned Managed Identity IDs to be assigned to this MySQL Flexib[]
allowed_cidrsmap(string)Map of allowed CIDRs.{}
ssl_enforcedboolEnforce SSL connection on MySQL provider. This sets the `require_secure_transportrue
… and 2 more inputs
Outputs (17)
public_network_access_enabled — Is the public network access enabled?
replica_capacity — The maximum number of replicas that a primary MySQL Flexible server can have.
fqdn — FQDN of the MySQL Flexible server.
firewall_rules_ids — Map of firewall rules IDs.
options — MySQL server configuration options.
terraform_module — Information about this Terraform module.
resource_configuration — Azure MySQL configuration resource object.
resource_firewall_rule — Azure MySQL server firewall rule resource object.
administrator_login — Administrator login for MySQL Flexible server.
databases_ids — Map of databases IDs.
databases_names — Map of databases names.
module_diagnostics — Diagnostics settings module outputs.
name — Name of the Azure MySQL Flexible server.
resource — Azure MySQL server resource object.
resource_database — Azure MySQL database resource object.
id — ID of the Azure MySQL Flexible server.
administrator_password — Administrator password for MySQL Flexible server.
Resources (7)
azurerm_data_protection_backup_instance_mysql_flexible_serverazurerm_mysql_flexible_databaseazurerm_mysql_flexible_serverazurerm_mysql_flexible_server_active_directory_administratorazurerm_mysql_flexible_server_configurationazurerm_mysql_flexible_server_firewall_rulerandom_password
Details
FrameworkTerraform Module
LanguageHCL
Version8.3.4
Cloud AZURERM
★ Stars0
Forks2
Total downloads16.2k
Inputs42
Outputs17
Resources7
Examples2
LicenseApache-2.0
Namespaceclaranet
Updated