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
Copy file name to clipboardExpand all lines: README.md
+74-31Lines changed: 74 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
A terraform module providing a Redis ElastiCache cluster in AWS.
4
4
5
-
This module
5
+
This module is forked from [tf_aws_elasticache_redis Communitiy module](https://github.com/terraform-community-modules/tf_aws_elasticache_redis) and performs the following tasks:
6
6
7
7
- Creates Redis ElastiCache clusters
8
8
- Creates, manages, and exports a security group
@@ -11,14 +11,13 @@ This module
11
11
12
12
Terraform 0.12. Pin module version to `~> v2.0`. Submit pull-requests to `master` branch.
13
13
14
-
Terraform 0.11. Pin module version to `~> v1.0`.
14
+
Terraform 0.11. Pin module version to `~> v1.0`. Submit pull-requests to `terraform011` branch.
|[aws_vpc.vpc](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/vpc)| data source |
75
+
44
76
## Inputs
45
77
46
78
| Name | Description | Type | Default | Required |
47
-
|------|-------------|:----:|:-----:|:-----:|
48
-
| alarm\_actions || list | n/a | yes |
49
-
| alarm\_cpu\_threshold | These vars would be used by cloudwatch.tf and should be uncommented if we decide to use them. | string |`"75"`| no |
50
-
| alarm\_memory\_threshold || string |`"10000000"`| no |
51
-
| allowed\_cidr | A list of Security Group ID's to allow access to. | list(string) |`[ "127.0.0.1/32" ]`| no |
52
-
| allowed\_security\_groups | A list of Security Group ID's to allow access to. | list(string) |`[]`| no |
53
-
| apply\_immediately | Specifies whether any modifications are applied immediately, or during the next maintenance window. Default is false. | bool |`"false"`| no |
54
-
| env | env to deploy into, should typically dev/staging/prod | string | n/a | yes |
55
-
| name | Name for the Redis replication group i.e. UserObject | string | n/a | yes |
56
-
| redis\_clusters | Number of Redis cache clusters (nodes) to create | string | n/a | yes |
57
-
| redis\_failover || bool |`"false"`| no |
58
-
| redis\_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 |
59
-
| redis\_node\_type | Instance type to use for creating the Redis cache clusters | string |`"cache.m3.medium"`| no |
60
-
| redis\_parameters | additional parameters modifyed in parameter group | list(map(any)) |`[]`| no |
61
-
| redis\_port || number |`"6379"`| no |
62
-
| redis\_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 |
63
-
| redis\_snapshot\_window | The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. The minimum snapshot window is a 60 minute period | string |`"06:30-07:30"`| no |
64
-
| redis\_version | Redis version to use, defaults to 3.2.10 | string |`"3.2.10"`| no |
65
-
| subnets | List of VPC Subnet IDs for the cache subnet group | list(string) | n/a | yes |
66
-
| tags | Tags for redis nodes | map(string) |`{}`| no |
| <aname="input_env"></a> [env](#input\_env)| env to deploy into, should typically dev/staging/prod |`string`| n/a | yes |
81
+
| <aname="input_name"></a> [name](#input\_name)| Name for the Redis replication group i.e. UserObject |`string`| n/a | yes |
82
+
| <aname="input_redis_clusters"></a> [redis\_clusters](#input\_redis\_clusters)| Number of Redis cache clusters (nodes) to create |`string`| n/a | yes |
83
+
| <aname="input_subnets"></a> [subnets](#input\_subnets)| List of VPC Subnet IDs for the cache subnet group |`list(string)`| n/a | yes |
84
+
| <aname="input_vpc_id"></a> [vpc\_id](#input\_vpc\_id)| VPC ID |`string`| n/a | yes |
85
+
| <aname="input_allowed_cidr"></a> [allowed\_cidr](#input\_allowed\_cidr)| A list of Security Group ID's to allow access to. |`list(string)`| <pre>[<br> "127.0.0.1/32"<br>]</pre> | no |
86
+
| <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(string)`|`[]`| no |
87
+
| <aname="input_apply_immediately"></a> [apply\_immediately](#input\_apply\_immediately)| Specifies whether any modifications are applied immediately, or during the next maintenance window. Default is false. |`bool`|`false`| no |
88
+
| <aname="input_at_rest_encryption_enabled"></a> [at\_rest\_encryption\_enabled](#input\_at\_rest\_encryption\_enabled)| Whether to enable encryption at rest |`bool`|`false`| no |
89
+
| <aname="input_auth_token"></a> [auth\_token](#input\_auth\_token)| The password used to access a password protected server. Can be specified only if transit\_encryption\_enabled = true. If specified must contain from 16 to 128 alphanumeric characters or symbols |`string`|`null`| no |
90
+
| <aname="input_auto_minor_version_upgrade"></a> [auto\_minor\_version\_upgrade](#input\_auto\_minor\_version\_upgrade)| Specifies whether a minor engine upgrades will be applied automatically to the underlying Cache Cluster instances during the maintenance window |`bool`|`true`| no |
91
+
| <aname="input_availability_zones"></a> [availability\_zones](#input\_availability\_zones)| A list of EC2 availability zones in which the replication group's cache clusters will be created. The order of the availability zones in the list is not important |`list(string)`|`[]`| no |
92
+
| <aname="input_is_migration_cluster"></a> [is\_migration\_cluster](#input\_is\_migration\_cluster)| Specifies whether this is a cluster for replicating other EC2 redis. Useful for migrations. |`bool`|`false`| no |
93
+
| <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 |
94
+
| <aname="input_multi_az_enabled"></a> [multi\_az\_enabled](#input\_multi\_az\_enabled)| Specifies whether to enable Multi-AZ Support for the replication group |`bool`|`false`| no |
95
+
| <aname="input_notification_topic_arn"></a> [notification\_topic\_arn](#input\_notification\_topic\_arn)| An Amazon Resource Name (ARN) of an SNS topic to send ElastiCache notifications to. Example: arn:aws:sns:us-east-1:012345678999:my\_sns\_topic |`string`|`""`| no |
96
+
| <aname="input_redis_failover"></a> [redis\_failover](#input\_redis\_failover)| Specifies whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails |`bool`|`false`| no |
97
+
| <aname="input_redis_maintenance_window"></a> [redis\_maintenance\_window](#input\_redis\_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 |
98
+
| <aname="input_redis_node_type"></a> [redis\_node\_type](#input\_redis\_node\_type)| Instance type to use for creating the Redis cache clusters |`string`|`"cache.m3.medium"`| no |
99
+
| <aname="input_redis_parameters"></a> [redis\_parameters](#input\_redis\_parameters)| additional parameters modifyed in parameter group |`list(map(any))`|`[]`| no |
100
+
| <aname="input_redis_port"></a> [redis\_port](#input\_redis\_port)| n/a |`number`|`6379`| no |
101
+
| <aname="input_redis_snapshot_retention_limit"></a> [redis\_snapshot\_retention\_limit](#input\_redis\_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 |
102
+
| <aname="input_redis_snapshot_window"></a> [redis\_snapshot\_window](#input\_redis\_snapshot\_window)| The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. The minimum snapshot window is a 60 minute period |`string`|`"06:30-07:30"`| no |
103
+
| <aname="input_redis_version"></a> [redis\_version](#input\_redis\_version)| Redis version to use, defaults to 3.2.10 |`string`|`"3.2.10"`| no |
104
+
| <aname="input_security_group_names"></a> [security\_group\_names](#input\_security\_group\_names)| A list of cache security group names to associate with this replication group |`list(string)`|`[]`| no |
105
+
| <aname="input_snapshot_arns"></a> [snapshot\_arns](#input\_snapshot\_arns)| 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 |`list(string)`|`[]`| no |
106
+
| <aname="input_snapshot_name"></a> [snapshot\_name](#input\_snapshot\_name)| The name of a snapshot from which to restore data into the new node group. Changing the snapshot\_name forces a new resource |`string`|`""`| no |
107
+
| <aname="input_tags"></a> [tags](#input\_tags)| Tags for redis nodes |`map(string)`|`{}`| no |
108
+
| <aname="input_transit_encryption_enabled"></a> [transit\_encryption\_enabled](#input\_transit\_encryption\_enabled)| Whether to enable encryption in transit. Requires 3.2.6 or >=4.0 redis\_version |`bool`|`false`| no |
|<aname="output_id"></a> [id](#output\_id)|ID of the Redis replication group|
116
+
|<aname="output_parameter_group"></a> [parameter\_group](#output\_parameter\_group)|ID of the Parameter Group to control the runtime properties of Redis nodes and clusters|
117
+
|<aname="output_port"></a> [port](#output\_port)|Redis port (default is 6379)|
118
+
|<aname="output_redis_security_group_id"></a> [redis\_security\_group\_id](#output\_redis\_security\_group\_id)|ID of the managed Security Group generated for Redis|
119
+
|<aname="output_redis_subnet_group_name"></a> [redis\_subnet\_group\_name](#output\_redis\_subnet\_group\_name)|Name of the Redis subnet|
79
120
80
121
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
81
122
82
123
## Authors
83
124
84
125
Created by [Tim Hartmann](https://github.com/tfhartmann). Maintained by [Anton Babenko](https://github.com/antonbabenko) and [these awesome contributors](https://github.com/terraform-community-modules/tf_aws_elasticache_redis/graphs/contributors).
85
126
127
+
This fork is possible thanks to [these contributors](https://github.com/flywirecorp/tf_aws_elasticache_redis/graphs/contributors)
0 commit comments