Skip to content

Latest commit

 

History

History
71 lines (67 loc) · 7.81 KB

File metadata and controls

71 lines (67 loc) · 7.81 KB

Inputs

Name Description Type Default Required
admin_password The password associated with the admin_username user string null no
admin_password_length Length of random password generated. number 16 no
admin_username The administrator login name for the new SQL Server string null no
auto_grow_enabled Should Storage Auto Grow be enabled? Defaults to true. bool false no
backup_retention_days The backup retention days for the MySQL Flexible Server. Possible values are between 1 and 35 days. Defaults to 7 number 7 no
charset Specifies the Charset for the MySQL Database, which needs to be a valid MySQL Charset. Changing this forces a new resource to be created. string "" no
cmk_enabled n/a bool false no
cmk_key_size n/a number 2048 no
cmk_key_type n/a string "RSA" no
collation Specifies the Collation for the MySQL Database, which needs to be a valid MySQL Collation. Changing this forces a new resource to be created. string "" no
create_mode The creation mode. Can be used to restore or replicate existing servers. Possible values are Default, Replica, GeoRestore, and PointInTimeRestore. Defaults to Default string "Default" no
custom_tags n/a map(string) {} no
db_name Specifies the name of the MySQL Database, which needs to be a valid MySQL identifier. Changing this forces a new resource to be created. string "" no
delegated_subnet_id The resource ID of the subnet string "" no
enable_diagnostic Set to false to prevent the module from creating any resources. bool true no
enabled Set to false to prevent the module from creating any resources. bool true no
entra_authentication Azure Entra authentication configuration block for Azure MySQL Flexible Server
object({
user_assigned_identity_id = optional(string, null)
login = optional(string, null)
object_id = optional(string, null)
})
{} no
environment Environment (e.g. prod, dev, staging). string "" no
eventhub_authorization_rule_id Eventhub authorization rule id to pass it to destination details of diagnosys setting of NSG. string null no
eventhub_name Eventhub Name to pass it to destination details of diagnosys setting of NSG. string null no
existing_private_dns_zone Name of the existing private DNS zone bool false no
existing_private_dns_zone_id n/a string "" no
existing_private_dns_zone_name The name of the Private DNS zone (without a terminating dot). Changing this forces a new resource to be created. string "" no
geo_redundant_backup_enabled Should geo redundant backup enabled? Defaults to false. Changing this forces a new MySQL Flexible Server to be created. bool true no
high_availability Map of high availability configuration: https://docs.microsoft.com/en-us/azure/mysql/flexible-server/concepts-high-availability. null to disable high availability
object({
mode = string
standby_availability_zone = optional(number)
})
null no
identity_type Type of managed identity to set string null no
iops The storage IOPS for the MySQL Flexible Server. Possible values are between 360 and 20000. number 360 no
key_vault_id n/a string null no
key_vault_with_rbac n/a bool false no
label_order Label order, e.g. sequence of application name and environment name,environment,'attribute' [webserver,qa,devops,public,] . list(any)
[
"name",
"environment"
]
no
location The Azure Region where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created. string "" no
log_analytics_destination_type Possible values are AzureDiagnostics and Dedicated, default to AzureDiagnostics. When set to Dedicated, logs sent to a Log Analytics workspace will go into resource specific tables, instead of the legacy AzureDiagnostics table. string "AzureDiagnostics" no
log_analytics_workspace_id Log Analytics workspace id in which logs should be retained. string null no
log_category Categories of logs to be recorded in diagnostic setting. Acceptable values are MySqlSlowLogs , MySqlAuditLogs list(string)
[
"MySqlAuditLogs"
]
no
main_rg_name n/a string "" no
managedby ManagedBy, eg ''. string "" no
metric_enabled Whether metric diagnonsis should be enable in diagnostic settings for flexible Mysql. bool true no
mysql_server_name n/a string null no
mysql_version The version of the MySQL Flexible Server to use. Possible values are 5.7, and 8.0.21. Changing this forces a new MySQL Flexible Server to be created. string "5.7" no
name Name (e.g. app or cluster). string "" no
point_in_time_restore_time_in_utc The point in time to restore from creation_source_server_id when create_mode is PointInTimeRestore. Changing this forces a new MySQL Flexible Server to be created. string null no
private_dns n/a bool false no
registration_enabled Is auto-registration of virtual machine records in the virtual network in the Private DNS zone enabled bool false no
replication_role The replication role. Possible value is None. string null no
repository Terraform current module repo string "" no
resource_group_name A container that holds related resources for an Azure solution string "" no
server_configuration_names Specifies the name of the MySQL Flexible Server Configuration, which needs to be a valid MySQL configuration name. Changing this forces a new resource to be created. list(string) [] no
size_gb The max storage allowed for the MySQL Flexible Server. Possible values are between 20 and 16384. string "20" no
sku_name The SKU Name for the MySQL Flexible Server. string "GP_Standard_D8ds_v4" no
source_server_id The resource ID of the source MySQL Flexible Server to be restored. Required when create_mode is PointInTimeRestore, GeoRestore, and Replica. Changing this forces a new MySQL Flexible Server to be created. string null no
storage_account_id Storage account id to pass it to destination details of diagnosys setting of NSG. string null no
user_assigned_identity_ids List of user-assigned managed identity IDs list(string) [] no
values Specifies the value of the MySQL Flexible Server Configuration. See the MySQL documentation for valid values. Changing this forces a new resource to be created. list(string) [] no
virtual_network_id The name of the virtual network string "" no
zone Specifies the Availability Zone in which this MySQL Flexible Server should be located. Possible values are 1, 2 and 3. number null no

Outputs

Name Description
azurerm_mysql_flexible_server_configuration_id The ID of the MySQL Flexible Server Configuration.
azurerm_private_dns_zone_id The Private DNS Zone ID.
azurerm_private_dns_zone_virtual_network_link_id The ID of the Private DNS Zone Virtual Network Link.
existing_private_dns_zone_virtual_network_link_id n/a
mysql_flexible_server_id The ID of the MySQL Flexible Server.
password_result Password Value