|
| 1 | +variable "cluster_name" { |
| 2 | + description = "Name of the cluster" |
| 3 | + type = string |
| 4 | +} |
| 5 | + |
| 6 | +variable "private_subnet_ids" { |
| 7 | + description = "List of private subnet id" |
| 8 | + type = list(string) |
| 9 | +} |
| 10 | + |
| 11 | +variable "vpc_id" { |
| 12 | + description = "The ID of the VPC" |
| 13 | + type = string |
| 14 | +} |
| 15 | + |
| 16 | +variable "rds_instance_class" { |
| 17 | + description = "The instance class to use" |
| 18 | + type = string |
| 19 | + default = "db.t3.micro" |
| 20 | +} |
| 21 | + |
| 22 | +variable "db_allocated_storage" { |
| 23 | + description = "The amount of allocated storage in GBs" |
| 24 | + type = number |
| 25 | + default = 20 |
| 26 | +} |
| 27 | + |
| 28 | +variable "db_max_allocated_storage" { |
| 29 | + description = "The maximum amount of allocated storage in GBs" |
| 30 | + type = number |
| 31 | + default = 100 |
| 32 | +} |
| 33 | + |
| 34 | +variable "manage_master_user_password" { |
| 35 | + description = "Whether to manage master user password" |
| 36 | + type = bool |
| 37 | + default = false |
| 38 | +} |
| 39 | + |
| 40 | +variable "backup_retention_period" { |
| 41 | + description = "The number of days to retain backups" |
| 42 | + type = number |
| 43 | + default = 1 |
| 44 | +} |
| 45 | + |
| 46 | +variable "skip_final_snapshot" { |
| 47 | + description = "Whether to skip the final snapshot" |
| 48 | + type = bool |
| 49 | + default = true |
| 50 | +} |
| 51 | + |
| 52 | +variable "deletion_protection" { |
| 53 | + description = "Whether to enable deletion protection" |
| 54 | + type = bool |
| 55 | + default = false |
| 56 | +} |
| 57 | + |
| 58 | +variable "create_db_subnet_group" { |
| 59 | + description = "Whether to create a DB subnet group" |
| 60 | + type = bool |
| 61 | + default = true |
| 62 | +} |
| 63 | + |
| 64 | +variable "performance_insights_enabled" { |
| 65 | + description = "Whether to enable performance insights" |
| 66 | + type = bool |
| 67 | + default = true |
| 68 | +} |
| 69 | + |
| 70 | +variable "performance_insights_retention_period" { |
| 71 | + description = "The retention period for performance insights" |
| 72 | + type = number |
| 73 | + default = 7 |
| 74 | +} |
| 75 | + |
| 76 | +variable "db_name" { |
| 77 | + description = "Database name" |
| 78 | + type = string |
| 79 | + default = "kong" |
| 80 | +} |
| 81 | + |
| 82 | +variable "db_username" { |
| 83 | + description = "Username for database" |
| 84 | + type = string |
| 85 | + default = "kong" |
| 86 | +} |
| 87 | + |
| 88 | +variable "db_password" { |
| 89 | + description = "Username for database" |
| 90 | + type = string |
| 91 | + default = "defaultpassword" |
| 92 | +} |
| 93 | + |
| 94 | +variable "private_subnet_ids" { |
| 95 | + description = "List of private subnet id" |
| 96 | + type = list(string) |
| 97 | +} |
| 98 | + |
| 99 | +variable "vpc_id" { |
| 100 | + description = "The ID of the VPC" |
| 101 | + type = string |
| 102 | +} |
| 103 | + |
| 104 | +variable "rds_db_tags" { |
| 105 | + description = "List of tags" |
| 106 | + type = map(string) |
| 107 | + default = {} |
| 108 | +} |
| 109 | + |
| 110 | +variable "postgres_sg_tags" { |
| 111 | + description = "List of tags" |
| 112 | + type = map(string) |
| 113 | + default = {} |
| 114 | +} |
| 115 | + |
| 116 | +variable "multi_az" { |
| 117 | + description = "Specifies if the RDS instance is multi-AZ" |
| 118 | + type = bool |
| 119 | + default = false |
| 120 | +} |
| 121 | + |
| 122 | +variable "backup_window" { |
| 123 | + description = "The daily time range (in UTC) during which automated backups are created if they are enabled" |
| 124 | + type = string |
| 125 | + default = null |
| 126 | +} |
| 127 | + |
| 128 | +variable "maintenance_window" { |
| 129 | + description = "The window to perform maintenance in.Syntax:ddd:hh24:mi-ddd:hh24:mi" |
| 130 | + type = string |
| 131 | + default = null |
| 132 | +} |
| 133 | + |
| 134 | +variable "region" { |
| 135 | + description = "AWS region" |
| 136 | + type = string |
| 137 | +} |
| 138 | + |
| 139 | +variable "postgres_db_name" { |
| 140 | + description = "Postgres database name" |
| 141 | + type = string |
| 142 | + default = "kong" |
| 143 | +} |
0 commit comments