db-mysql

claranet/db-mysql/azurerm

Terraform Module HCL AZURERM

Terraform module composition (feature) for Azure MySQL Database

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

DEPRECATED - Azure Managed Mysql Service ![Changelog](CHANGELOG.md) ![Notice](NOTICE) ![Apache V2 License](LICENSE) ![TF Registry](https://registry.terraform.io/modules/claranet/db-mysql/azurerm/) | ⚠ This module is deprecated, please use db-mysql-flexible module | |--| This Terraform module creates an Azure MySQL server with databases and associated admin users along with logging activated and firewall rules. Requirements * MySQL Terraform provider >= 1.6 Global versioning rule for Claranet Azure modules | Module version | Terraform version | AzureRM version | | -------------- | ----------------- | --------------- | | >= 7.x.x | 1.3.x | >= 3.0 | | >= 6.x.x | 1.x | >= 3.0 | | >= 5.x.x | 0.15.x | >= 2.0 | | >= 4.x.x | 0.13.x / 0.14.x | >= 2.0 | | >= 3.x.x | 0.12.x | >= 2.0 | | >= 2.x.x | 0.

Inputs (35)
NameTypeDescriptionDefault
resource_group_namestringResource group name required
logs_destinations_idslist(string)List of destination resources IDs for logs diagnostic destination. Can be `Stora required
administrator_loginstringMySQL administrator login required
client_namestringClient name/account used in naming required
stackstringProject stack name required
locationstringAzure location. required
location_shortstringShort string for Azure location. required
environmentstringProject environment required
allowed_cidrsmap(string)Map of authorized cidrs required
databasesmap(map(string))Map of databases with default collation and charset required
logs_metrics_categorieslist(string)Metrics categories to send to destinations.null
mysql_versionstringValid values are 5.6, 5.7 and 8.0"5.7"
name_prefixstringOptional prefix for the generated name""
force_sslboolEnforce SSL connectiontrue
auto_grow_enabledboolEnable/Disable auto-growing of the storage.false
backup_retention_daysnumberBackup retention days for the server, supported values are between 7 and 35 days10
allowed_subnetsmap(string)Map of authorized subnet ids{}
logs_categorieslist(string)Log categories to send to destinations.null
custom_server_namestringCustom Server Name identifier""
storage_mbnumberMax storage allowed for a server. Possible values are between 5120 MB(5GB) and 15120
geo_redundant_backup_enabledboolTurn Geo-redundant server backups on/off. Not available for the Basic tier.true
extra_tagsmap(string)Map of custom tags{}
capacitynumberCapacity for MySQL server sku: https://www.terraform.io/docs/providers/azurerm/r4
threat_detection_policyanyThreat detection policy configuration, known in the API as Server Security Alertnull
use_caf_namingboolUse the Azure CAF naming provider to generate default resource name. `custom_sertrue
use_caf_naming_for_databasesboolUse the Azure CAF naming provider to generate databases name.false
mysql_optionsmap(string) Map of configuration options: https://docs.microsoft.com/fr-fr/azure/mysql/h{}
public_network_access_enabledboolEnable public network access for this serverfalse
logs_retention_daysnumberNumber of days to keep logs on storage account.30
default_tags_enabledboolOption to enable or disable default tagstrue
Outputs (11)
mysql_server_id — MySQL server ID
mysql_administrator_login — Administrator login for MySQL server
mysql_firewall_rule_ids — Map of MySQL created rules
mysql_fqdn — FQDN of the MySQL server
mysql_databases_names — List of databases names
mysql_database_ids — The list of all database resource ids
mysql_server_name — MySQL server name
mysql_vnet_rules — The map of all vnet rules
terraform_module — Information about this Terraform module
mysql_administrator_password — Administrator password for mysql server
mysql_databases — Map of databases infos
Resources (6)
azurerm_mysql_configurationazurerm_mysql_databaseazurerm_mysql_firewall_ruleazurerm_mysql_serverazurerm_mysql_virtual_network_rulerandom_password
Details
FrameworkTerraform Module
LanguageHCL
Version6.2.1
Cloud AZURERM
★ Stars2
Forks9
Total downloads14.5k
Inputs35
Outputs11
Resources6
Examples1
LicenseApache-2.0
Namespaceclaranet
Updated