Add more validations to linter
- Ensure all variables and outputs are sorted - Ensure all variables and outputs have a description - Add data-solutions/data-platform-foundations to linter Fix all modules to follow these new conventions.
This commit is contained in:
@@ -106,7 +106,7 @@ module "db" {
|
||||
| *availability_type* | Availability type for the primary replica. Either `ZONAL` or `REGIONAL` | <code title="">string</code> | | <code title="">ZONAL</code> |
|
||||
| *backup_configuration* | Backup settings for primary instance. Will be automatically enabled if using MySQL with one or more replicas | <code title="object({ enabled = bool binary_log_enabled = bool })">object({...})</code> | | <code title="{ enabled = false binary_log_enabled = false }">...</code> |
|
||||
| *databases* | Databases to create once the primary instance is created. | <code title="list(string)">list(string)</code> | | <code title="">null</code> |
|
||||
| *deletion_protection* | None | <code title="">bool</code> | | <code title="">false</code> |
|
||||
| *deletion_protection* | Allow terraform to delete instances. | <code title="">bool</code> | | <code title="">false</code> |
|
||||
| *disk_size* | Disk size in GB. Set to null to enable autoresize. | <code title="">number</code> | | <code title="">null</code> |
|
||||
| *disk_type* | The type of data disk: `PD_SSD` or `PD_HDD`. | <code title="">string</code> | | <code title="">PD_SSD</code> |
|
||||
| *flags* | Map FLAG_NAME=>VALUE for database-specific tuning. | <code title="map(string)">map(string)</code> | | <code title="">null</code> |
|
||||
|
||||
@@ -50,8 +50,9 @@ variable "databases" {
|
||||
}
|
||||
|
||||
variable "deletion_protection" {
|
||||
type = bool
|
||||
default = false
|
||||
description = "Allow terraform to delete instances."
|
||||
type = bool
|
||||
default = false
|
||||
}
|
||||
|
||||
variable "disk_size" {
|
||||
@@ -110,13 +111,13 @@ variable "replicas" {
|
||||
default = null
|
||||
}
|
||||
|
||||
variable "tier" {
|
||||
description = "The machine type to use for the instances."
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "users" {
|
||||
description = "Map of users to create in the primary instance (and replicated to other replicas) in the format USER=>PASSWORD. For MySQL, anything afterr the first `@` (if persent) will be used as the user's host. Set PASSWORD to null if you want to get an autogenerated password"
|
||||
type = map(string)
|
||||
default = null
|
||||
}
|
||||
|
||||
variable "tier" {
|
||||
description = "The machine type to use for the instances."
|
||||
type = string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user