You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[aws_availability_zones.available](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/availability_zones)| data source |
88
87
89
88
## Inputs
90
89
@@ -93,16 +92,16 @@ Security scanning is graciously provided by Prowler. Proowler is the leading ful
93
92
| <aname="input_allowed_cidr_blocks"></a> [allowed\_cidr\_blocks](#input\_allowed\_cidr\_blocks)| A list of CIDR blocks which are allowed to access the database |`list(any)`|`[]`| no |
94
93
| <aname="input_allowed_security_groups"></a> [allowed\_security\_groups](#input\_allowed\_security\_groups)| A list of Security Group ID's to allow access to |`list(any)`|`[]`| no |
95
94
| <aname="input_at_rest_encryption_enabled"></a> [at\_rest\_encryption\_enabled](#input\_at\_rest\_encryption\_enabled)| (Optional) Whether to enable encryption at rest |`bool`|`true`| no |
96
-
| <aname="input_automatic_failover_enabled"></a> [automatic\_failover\_enabled](#input\_automatic\_failover\_enabled)| Enable automatic failover |`bool`|`false`| no |
97
-
| <aname="input_availability_zones"></a> [availability\_zones](#input\_availability\_zones)| The list of AZs |`list(string)`|`[]`| no |
95
+
| <aname="input_automatic_failover_enabled"></a> [automatic\_failover\_enabled](#input\_automatic\_failover\_enabled)| Enable automatic failover |`bool`|`true`| no |
96
+
| <aname="input_availability_zones"></a> [availability\_zones](#input\_availability\_zones)| The list of AZs |`string`|`2`| no |
98
97
| <aname="input_engine_log_destination"></a> [engine\_log\_destination](#input\_engine\_log\_destination)| The destination for engine logs(eg. Cloudwatch log-group name or kinesis firehose stream name) |`string`|`null`| no |
99
98
| <aname="input_engine_log_destination_type"></a> [engine\_log\_destination\_type](#input\_engine\_log\_destination\_type)| The type of destination for engine logs(eg . cloudwatch-logs or kinesis-firehose) |`string`|`""`| no |
100
99
| <aname="input_engine_log_format"></a> [engine\_log\_format](#input\_engine\_log\_format)| the format for logs eg. json/text |`string`|`"json"`| no |
101
100
| <aname="input_engine_version"></a> [engine\_version](#input\_engine\_version)| The redis engine version |`string`|`""`| no |
102
101
| <aname="input_environment"></a> [environment](#input\_environment)| The name of environment |`string`|`""`| no |
103
102
| <aname="input_family"></a> [family](#input\_family)| Redis family |`string`|`"redis4.0"`| no |
104
103
| <aname="input_final_snapshot_identifier"></a> [final\_snapshot\_identifier](#input\_final\_snapshot\_identifier)| The name of your final node group (shard) snapshot. ElastiCache creates the snapshot from the primary node in the cluster. If omitted, no final snapshot will be made. |`string`|`null`| no |
105
-
| <aname="input_kms_key_id"></a> [kms\_key\_id](#input\_kms\_key\_id)| The ARN of the key that you wish to use if encrypting at rest. If not supplied, uses service managed encryption. Can be specified only if at\_rest\_encryption\_enabled = true |`string`|`""`| no |
104
+
| <aname="input_kms_key_arn"></a> [kms\_key\_arn](#input\_kms\_key\_arn)| The ARN of the key that you wish to use if encrypting at rest. If not supplied, uses service managed encryption. Can be specified only if at\_rest\_encryption\_enabled = true |`string`|`""`| no |
106
105
| <aname="input_maintenance_window"></a> [maintenance\_window](#input\_maintenance\_window)| Specifies the weekly time range for when maintenance on the cache cluster is performed. The format is ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period |`string`|`"fri:08:00-fri:09:00"`| no |
107
106
| <aname="input_multi_az_enabled"></a> [multi\_az\_enabled](#input\_multi\_az\_enabled)| Enable multi az |`bool`|`false`| no |
108
107
| <aname="input_name"></a> [name](#input\_name)| The name of the redis cluster |`string`|`""`| no |
@@ -116,7 +115,7 @@ Security scanning is graciously provided by Prowler. Proowler is the leading ful
116
115
| <aname="input_slow_log_destination_type"></a> [slow\_log\_destination\_type](#input\_slow\_log\_destination\_type)| The type of destination for slow logs(eg . cloudwatch-logs or kinesis-firehose) |`string`|`""`| no |
117
116
| <aname="input_slow_log_format"></a> [slow\_log\_format](#input\_slow\_log\_format)| the format for logs eg. json/text |`string`|`"json"`| no |
118
117
| <aname="input_snapshot_arns"></a> [snapshot\_arns](#input\_snapshot\_arns)| (Optional) A single-element string list containing an Amazon Resource Name (ARN) of a Redis RDB snapshot file stored in Amazon S3. Example: arn:aws:s3:::my\_bucket/snapshot1.rdb . This will be used to add data to a fresh new instance. |`list(string)`|`[]`| no |
119
-
| <aname="input_snapshot_retention_limit"></a> [snapshot\_retention\_limit](#input\_snapshot\_retention\_limit)| The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. Please note that setting a snapshot\_retention\_limit is not supported on cache.t1.micro or cache.t2.* cache nodes |`number`|`0`| no |
118
+
| <aname="input_snapshot_retention_limit"></a> [snapshot\_retention\_limit](#input\_snapshot\_retention\_limit)| The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. Please note that setting a snapshot\_retention\_limit is not supported on cache.t1.micro or cache.t2.* cache nodes |`number`|`7`| no |
120
119
| <aname="input_snapshot_window"></a> [snapshot\_window](#input\_snapshot\_window)| The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. The minimum maintenance window is a 60 minute period. Example: 05:00-09:00 |`string`|`"03:00-05:00"`| no |
121
120
| <aname="input_subnets"></a> [subnets](#input\_subnets)| The subnets where the redis cluster is deployed |`list(string)`|`[]`| no |
122
121
| <aname="input_transit_encryption_enabled"></a> [transit\_encryption\_enabled](#input\_transit\_encryption\_enabled)| (Optional) Whether to enable encryption in transit |`bool`|`true`| no |
@@ -200,4 +199,3 @@ We believe that the key to success in the digital age is the ability to deliver
200
199
We provide [support](https://squareops.com/contact-us/) on all of our projects, no matter how small or large they may be.
201
200
202
201
You can find more information about our company on this [squareops.com](https://squareops.com/), follow us on [linkdin](https://www.linkedin.com/company/squareops-technologies-pvt-ltd/), or fill out a [job application](https://squareops.com/careers/). If you have any questions or would like assistance with your cloud strategy and implementation, please don't hesitate to [contact us](https://squareops.com/contact-us/).
| <aname="output_auth_token_password"></a> [auth\_token\_password](#output\_auth\_token\_password)| Elasticache-redis auth token password(this password may be old, because Terraform doesn't track it after initial creation) |
| <aname="output_elastic_cache_redis_security_group"></a> [elastic\_cache\_redis\_security\_group](#output\_elastic\_cache\_redis\_security\_group)| The security group ID of the cluster |
32
34
| <aname="output_id_of_redis_cluster"></a> [id\_of\_redis\_cluster](#output\_id\_of\_redis\_cluster)| ID of the elasticache-redis cluster |
33
35
| <aname="output_port_no"></a> [port\_no](#output\_port\_no)| Port number of Redis |
34
36
| <aname="output_primary_endpoint_address"></a> [primary\_endpoint\_address](#output\_primary\_endpoint\_address)| Primary endpoint address of redis |
Copy file name to clipboardExpand all lines: variables.tf
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ variable "port" {
57
57
58
58
variable"automatic_failover_enabled" {
59
59
description="Enable automatic failover "
60
-
default=false
60
+
default=true
61
61
type=bool
62
62
}
63
63
@@ -70,8 +70,8 @@ variable "multi_az_enabled" {
70
70
71
71
variable"availability_zones" {
72
72
description="The list of AZs"
73
-
default=[]
74
-
type=list(string)
73
+
default=2
74
+
type=string
75
75
}
76
76
77
77
variable"snapshot_window" {
@@ -82,7 +82,7 @@ variable "snapshot_window" {
82
82
83
83
variable"snapshot_retention_limit" {
84
84
description="The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. Please note that setting a snapshot_retention_limit is not supported on cache.t1.micro or cache.t2.* cache nodes"
0 commit comments