https://github.com/launchbynttdata/tf-azurerm-module_primitive-mysql_server
https://github.com/launchbynttdata/tf-azurerm-module_primitive-mysql_server
azure infrastructure-as-code platform-automation primitive terraform
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/launchbynttdata/tf-azurerm-module_primitive-mysql_server
- Owner: launchbynttdata
- License: apache-2.0
- Created: 2024-11-26T23:33:56.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-12-10T16:33:03.000Z (5 months ago)
- Last Synced: 2025-02-08T10:18:30.530Z (3 months ago)
- Topics: azure, infrastructure-as-code, platform-automation, primitive, terraform
- Language: HCL
- Size: 98.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# tf-azurerm-module_primitive-mysql_server
## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | ~> 1.0 |
| [azurerm](#requirement\_azurerm) | ~> 3.113 |## Providers
| Name | Version |
|------|---------|
| [azurerm](#provider\_azurerm) | 3.117.0 |## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [azurerm_mysql_flexible_server.mysql](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mysql_flexible_server) | resource |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [name](#input\_name) | Resource name of the mysql Flexible Server | `string` | n/a | yes |
| [resource\_group\_name](#input\_resource\_group\_name) | Resource group name of the mysql Flexible Server | `string` | n/a | yes |
| [location](#input\_location) | Location of the mysql Flexible Server | `string` | n/a | yes |
| [sku\_name](#input\_sku\_name) | The name of the SKU used by this mysql Flexible Server | `string` | `"GP_Standard_D2ads_v5"` | no |
| [create\_mode](#input\_create\_mode) | The creation mode. Possible values are Default, GeoRestore, PointInTimeRestore, Replica, and Update | `string` | `"Default"` | no |
| [mysql\_version](#input\_mysql\_version) | Version of the mysql Flexible Server. Required when `create_mode` is Default | `string` | `"8.0.21"` | no |
| [delegated\_subnet\_id](#input\_delegated\_subnet\_id) | The ID of the subnet to which the mysql Flexible Server is delegated | `string` | `null` | no |
| [private\_dns\_zone\_id](#input\_private\_dns\_zone\_id) | The ID of the private DNS zone. Required when `delegated_subnet_id` is set | `string` | `null` | no |
| [administrator\_login](#input\_administrator\_login) | The administrator login for the mysql Flexible Server.
Required when `create_mode` is Default and `authentication.password_auth_enabled` is true | `string` | `null` | no |
| [administrator\_password](#input\_administrator\_password) | The administrator password for the mysql Flexible Server.
Required when `create_mode` is Default and `authentication.password_auth_enabled` is true | `string` | `null` | no |
| [backup\_retention\_days](#input\_backup\_retention\_days) | The backup retention days for the mysql Flexible Server, between 7 and 35 days | `number` | `7` | no |
| [geo\_redundant\_backup\_enabled](#input\_geo\_redundant\_backup\_enabled) | Whether or not geo-redundant backups are enabled for this server | `bool` | `false` | no |
| [zone](#input\_zone) | The zone of the mysql Flexible Server | `string` | `null` | no |
| [high\_availability](#input\_high\_availability) | mode = The high availability mode. Possible values are SameZone or ZoneRedundant
standby\_availability\_zone = The availability zone for the standby server |object({| `null` | no |
mode = string
standby_availability_zone = optional(string)
})
| [identity\_ids](#input\_identity\_ids) | Specifies a list of User Assigned Managed Identity IDs to be assigned | `list(string)` | `null` | no |
| [maintenance\_window](#input\_maintenance\_window) | The maintenance window of the mysql Flexible Server
day\_of\_week = The day of the week when maintenance should be performed
start\_hour = The start hour of the maintenance window
start\_minute = The start minute of the maintenance window |object({|
day_of_week = optional(string, 0)
start_hour = optional(number, 0)
start_minute = optional(number, 0)
}){| no |
"day_of_week": 0,
"start_hour": 0,
"start_minute": 0
}
| [source\_server\_id](#input\_source\_server\_id) | The ID of the source mysql Flexible Server to restore from. Required when `create_mode` is GeoRestore, PointInTimeRestore, or Replica | `string` | `null` | no |
| [storage](#input\_storage) | n/a |object({|
io_scaling_enabled = optional(bool, null)
iops = optional(number)
size_gb = optional(number)
auto_grow_enabled = optional(bool, true)
}){| no |
"auto_grow_enabled": true,
"io_scaling_enabled": true,
"iops": null,
"size_gb": 20
}
| [tags](#input\_tags) | A mapping of tags to assign to the resource | `map(string)` | `{}` | no |## Outputs
| Name | Description |
|------|-------------|
| [id](#output\_id) | n/a |
| [name](#output\_name) | n/a |
| [fqdn](#output\_fqdn) | n/a |
| [delegated\_subnet\_id](#output\_delegated\_subnet\_id) | n/a |
| [private\_dns\_zone\_id](#output\_private\_dns\_zone\_id) | n/a |
| [source\_server\_id](#output\_source\_server\_id) | n/a |## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | ~> 1.0 |
| [azurerm](#requirement\_azurerm) | ~> 3.113 |## Providers
| Name | Version |
|------|---------|
| [azurerm](#provider\_azurerm) | 3.117.0 |## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [azurerm_mysql_flexible_server.mysql](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mysql_flexible_server) | resource |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [name](#input\_name) | Resource name of the mysql Flexible Server | `string` | n/a | yes |
| [resource\_group\_name](#input\_resource\_group\_name) | Resource group name of the mysql Flexible Server | `string` | n/a | yes |
| [location](#input\_location) | Location of the mysql Flexible Server | `string` | n/a | yes |
| [sku\_name](#input\_sku\_name) | The name of the SKU used by this mysql Flexible Server | `string` | `"GP_Standard_D2ads_v5"` | no |
| [create\_mode](#input\_create\_mode) | The creation mode. Possible values are Default, GeoRestore, PointInTimeRestore, Replica, and Update | `string` | `"Default"` | no |
| [mysql\_version](#input\_mysql\_version) | Version of the mysql Flexible Server. Required when `create_mode` is Default | `string` | `"8.0.21"` | no |
| [delegated\_subnet\_id](#input\_delegated\_subnet\_id) | The ID of the subnet to which the mysql Flexible Server is delegated | `string` | `null` | no |
| [private\_dns\_zone\_id](#input\_private\_dns\_zone\_id) | The ID of the private DNS zone. Required when `delegated_subnet_id` is set | `string` | `null` | no |
| [administrator\_login](#input\_administrator\_login) | The administrator login for the mysql Flexible Server.
Required when `create_mode` is Default and `authentication.password_auth_enabled` is true | `string` | `null` | no |
| [administrator\_password](#input\_administrator\_password) | The administrator password for the mysql Flexible Server.
Required when `create_mode` is Default and `authentication.password_auth_enabled` is true | `string` | `null` | no |
| [backup\_retention\_days](#input\_backup\_retention\_days) | The backup retention days for the mysql Flexible Server, between 7 and 35 days | `number` | `7` | no |
| [geo\_redundant\_backup\_enabled](#input\_geo\_redundant\_backup\_enabled) | Whether or not geo-redundant backups are enabled for this server | `bool` | `false` | no |
| [zone](#input\_zone) | The zone of the mysql Flexible Server | `string` | `null` | no |
| [high\_availability](#input\_high\_availability) | mode = The high availability mode. Possible values are SameZone or ZoneRedundant
standby\_availability\_zone = The availability zone for the standby server |object({| `null` | no |
mode = string
standby_availability_zone = optional(string)
})
| [identity\_ids](#input\_identity\_ids) | Specifies a list of User Assigned Managed Identity IDs to be assigned | `list(string)` | `null` | no |
| [maintenance\_window](#input\_maintenance\_window) | The maintenance window of the mysql Flexible Server
day\_of\_week = The day of the week when maintenance should be performed
start\_hour = The start hour of the maintenance window
start\_minute = The start minute of the maintenance window |object({| `null` | no |
day_of_week = optional(string, 0)
start_hour = optional(number, 0)
start_minute = optional(number, 0)
})
| [source\_server\_id](#input\_source\_server\_id) | The ID of the source mysql Flexible Server to restore from. Required when `create_mode` is GeoRestore, PointInTimeRestore, or Replica | `string` | `null` | no |
| [storage](#input\_storage) | n/a |object({|
io_scaling_enabled = optional(bool, null)
iops = optional(number)
size_gb = optional(number)
auto_grow_enabled = optional(bool, true)
}){| no |
"auto_grow_enabled": true,
"io_scaling_enabled": true,
"iops": null,
"size_gb": 20
}
| [tags](#input\_tags) | A mapping of tags to assign to the resource | `map(string)` | `{}` | no |## Outputs
| Name | Description |
|------|-------------|
| [id](#output\_id) | n/a |
| [name](#output\_name) | n/a |
| [fqdn](#output\_fqdn) | n/a |
| [delegated\_subnet\_id](#output\_delegated\_subnet\_id) | n/a |
| [private\_dns\_zone\_id](#output\_private\_dns\_zone\_id) | n/a |
| [source\_server\_id](#output\_source\_server\_id) | n/a |