mysql

dodevops/mysql/azure

Terraform Module HCL AZURE

Highly opinionated management of Azure DB for MySQL resources

Install
module "mysql" {
source = "dodevops/mysql/azure"
version = "2.1.0"
}
plain text: /constructs/tfmod-dodevops-mysql-azure/install.txt
⭐ Source on GitHub 📦 Registry page
README

Azure DB for MySQL Introduction This module manages resources for Azure DB for MySQL using the flexible server deployment. More details are available in the following sources: - Terraform AzureRM provider flexible server resource type - Microsoft flexible server documentation Usage Instantiate the module by calling it from Terraform like this: ``hcl module "azure-mysql" { source = "dodevops/mysql/azure" version = " " } ` Requirements The following requirements are needed by this module: - terraform (>=1.0.0) - azurerm (>=3.63.0) Providers The following providers are used by this module: - azurerm (>=3.63.0) Modules No modules. Resources The following resources are used by this module: - azurerm_mysql_flexible_database.db (resource) - azurerm_mysql_flexible_server.server (resource) - azurer

Inputs (23)
NameTypeDescriptionDefault
projectstringThree letter project key required
stagestringStage for this ressource group required
charsetstringCharset for the databases, which needs to be a valid MySQL charset required
admin_passwordstringAdmin password required
locationstringThe azure location used for azure required
collationstringCharset for the databases, which needs to be a valid MySQL charset required
database_suffixeslist(string)List of suffixes for databases to be created required
resource_groupstringAzure Resource Group to use required
geo_redundant_backup_enabledboolWhether backups should be geo redundantfalse
configurationsmap(string)Additional MySQL configurations{}
availability_zonestringThe availability zone the server will be created in"1"
database_versionstringDatabase version to use"8.0.21"
allowed_ipsmap(object({ start = strin A hash of permissions to access the database server by ip. The hash key is t{}
database_storage_sizestringRequired database storage (in GB)"20"
suffixstringNaming suffix to allow multiple instances of this module""
backup_retention_daysnumberNumber of days to keep backups7
admin_loginstringAdmin login"mysqladmin"
database_storage_iopsnumberIO operations per second. If database_storage_io_scaling_enabled is true, this v3600
delegated_subnet_idstringThe id of a subnet that the server will be created in if private-only access is null
private_dns_zone_idstringThe id of the private dns zone when using private-only accessnull
database_host_skustringSKU for the database server to use"GP_Standard_D4ds_v4"
database_storage_autogrowboolAutogrow storage when limit is reached?true
database_storage_io_scaling_enabledboolEnables IOPS auto scaling. If true, database_storage_iops will be ignoredfalse
Outputs (4)
admin_password
databases
server_fqdn — FQDN of the database service
admin_login
Resources (4)
azurerm_mysql_flexible_databaseazurerm_mysql_flexible_serverazurerm_mysql_flexible_server_configurationazurerm_mysql_flexible_server_firewall_rule
Details
FrameworkTerraform Module
LanguageHCL
Version2.1.0
Cloud AZURE
★ Stars0
Forks1
Total downloads6.3k
Inputs23
Outputs4
Resources4
LicenseMIT
Namespacedodevops
Updated