|
| 1 | +variable "project" { |
| 2 | + type = string |
| 3 | + description = "Project for tagging and naming. See [doc](../README.md#consistent-tagging)" |
| 4 | +} |
| 5 | + |
| 6 | +variable "env" { |
| 7 | + type = string |
| 8 | + description = "Env for tagging and naming. See [doc](../README.md#consistent-tagging)." |
| 9 | +} |
| 10 | + |
| 11 | +variable "service" { |
| 12 | + type = string |
| 13 | + description = "Service for tagging and naming. See [doc](../README.md#consistent-tagging)" |
| 14 | + default = "redis" |
| 15 | +} |
| 16 | + |
| 17 | +variable "owner" { |
| 18 | + type = string |
| 19 | + description = "Owner for tagging and naming. See [doc](../README.md#consistent-tagging)." |
| 20 | +} |
| 21 | + |
| 22 | +variable "subnets" { |
| 23 | + type = list(string) |
| 24 | + description = "List of subnets to which this EC instance should be attached. They should probably be private." |
| 25 | +} |
| 26 | + |
| 27 | +variable "availability_zones" { |
| 28 | + type = list(string) |
| 29 | + description = "Availability zone in which this instance should run." |
| 30 | + default = null |
| 31 | +} |
| 32 | + |
| 33 | +variable "ingress_security_group_ids" { |
| 34 | + type = list(string) |
| 35 | + description = "Source security groups which should be able to contact this instance." |
| 36 | +} |
| 37 | + |
| 38 | +variable "port" { |
| 39 | + type = number |
| 40 | + description = "Port to host Redis on." |
| 41 | + default = 6379 |
| 42 | +} |
| 43 | + |
| 44 | +variable "instance_type" { |
| 45 | + type = string |
| 46 | + description = "The type of instance to run. See [supported node types](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html)" |
| 47 | + default = "cache.m5.large" |
| 48 | +} |
| 49 | + |
| 50 | +variable "parameter_group_name" { |
| 51 | + type = string |
| 52 | + description = "Parameter group to use for this Redis cache." |
| 53 | + default = "default.redis5.0" |
| 54 | +} |
| 55 | + |
| 56 | +variable "engine_version" { |
| 57 | + type = string |
| 58 | + description = "The version of Redis to run. See [supported versions](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/supported-engine-versions.html)" |
| 59 | + default = "5.0.5" |
| 60 | +} |
| 61 | + |
| 62 | +variable "apply_immediately" { |
| 63 | + type = bool |
| 64 | + description = "Whether changes should be applied immediately or during the next maintenance window." |
| 65 | + default = true |
| 66 | +} |
| 67 | + |
| 68 | +# This is to get a around a limitation where the elasticache cluster id can be |
| 69 | +# only 20 characters long. Use it only if you get that error. |
| 70 | +variable "resource_name" { |
| 71 | + description = "If not set, name will be [var.project]-[var.env]-[var.name]." |
| 72 | + type = string |
| 73 | + default = "" |
| 74 | +} |
| 75 | + |
| 76 | +variable "vpc_id" { |
| 77 | + type = string |
| 78 | + description = "VPC where the cache will be deployed." |
| 79 | +} |
| 80 | + |
| 81 | +variable "number_cache_clusters" { |
| 82 | + type = number |
| 83 | + description = "Number of cache clusters. Default 1." |
| 84 | + default = 1 |
| 85 | +} |
| 86 | + |
| 87 | +variable "at_rest_encryption_enabled" { |
| 88 | + type = bool |
| 89 | + description = "Whether to enable encryption at rest. Default: false." |
| 90 | + default = false |
| 91 | +} |
| 92 | + |
| 93 | +variable "transit_encryption_enabled" { |
| 94 | + type = bool |
| 95 | + description = "Whether to enable encryption in transit. Default: false." |
| 96 | + default = false |
| 97 | +} |
| 98 | + |
| 99 | +variable "replication_group_description" { |
| 100 | + type = string |
| 101 | + description = "A user-created description for the replication group." |
| 102 | +} |
0 commit comments