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
Use Security Group rules instead of inline rule blocks. Fix example. Fix README. Update to latest versions of modules. Change region for tests (#54)
* Use Security Group rules instead of inline rule blocks. Fix example. Fix README. Update to latest versions of modules. Change region for tests
* Use Security Group rules instead of inline rule blocks. Fix example. Fix README. Update to latest versions of modules. Change region for tests
* Use Security Group rules instead of inline rule blocks. Fix example. Fix README. Update to latest versions of modules. Change region for tests
Copy file name to clipboardExpand all lines: README.yaml
+55-31Lines changed: 55 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -49,38 +49,62 @@ description: |-
49
49
# How to use this project
50
50
usage: |-
51
51
52
+
For a complete example, see [examples/complete](examples/complete).
53
+
54
+
For automated tests of the complete example using [bats](https://github.com/bats-core/bats-core) and [Terratest](https://github.com/gruntwork-io/terratest) (which tests and deploys the example on AWS), see [test](test).
55
+
52
56
```hcl
53
-
// Generate a random string for auth token, no special chars
Copy file name to clipboardExpand all lines: docs/terraform.md
+12-5Lines changed: 12 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,17 +5,23 @@
5
5
| alarm_actions | Alarm action list | list(string) |`<list>`| no |
6
6
| alarm_cpu_threshold_percent | CPU threshold alarm level | number |`75`| no |
7
7
| alarm_memory_threshold_bytes | Ram threshold alarm level | number |`10000000`| no |
8
+
| allowed_cidr_blocks | List of CIDR blocks that are allowed ingress to the cluster's Security Group created in the module | list(string) |`<list>`| no |
9
+
| allowed_security_groups | List of Security Group IDs that are allowed ingress to the cluster's Security Group created in the module | list(string) |`<list>`| no |
| auth_token | Auth token for password protecting redis, `transit_encryption_enabled` must be set to `true`. Password must be longer than 16 chars | string | `` | no |
12
-
|automatic_failover| Automatic failover (Not available for T1/T2 instances) | bool |`false`| no |
13
+
| auth_token | Auth token for password protecting redis, `transit_encryption_enabled` must be set to `true`. Password must be longer than 16 chars | string |`null`| no |
14
+
|automatic_failover_enabled| Automatic failover (Not available for T1/T2 instances) | bool |`false`| no |
13
15
| availability_zones | Availability zone IDs | list(string) |`<list>`| no |
14
-
| cluster_size | Count of nodes in cluster | number |`1`| no |
16
+
| cluster_mode_enabled | Flag to enable/disable creation of a native redis cluster. `automatic_failover_enabled` must be set to `true`. Only 1 `cluster_mode` block is allowed | bool |`false`| no |
17
+
| cluster_mode_num_node_groups | Number of node groups (shards) for this Redis replication group. Changing this number will trigger an online resizing operation before other settings modifications | number |`0`| no |
18
+
| cluster_mode_replicas_per_node_group | Number of replica nodes in each node group. Valid values are 0 to 5. Changing this number will force a new resource | number |`0`| no |
19
+
| cluster_size | Number of nodes in cluster | number |`1`| no |
15
20
| delimiter | Delimiter between `name`, `namespace`, `stage` and `attributes`| string |`-`| no |
16
21
| elasticache_subnet_group_name | Subnet group name for the ElastiCache instance | string | `` | no |
17
22
| enabled | Set to false to prevent the module from creating any resources | bool |`true`| no |
18
23
| engine_version | Redis engine version | string |`4.0.10`| no |
24
+
| existing_security_groups | List of existing Security Group IDs to place the cluster into. Set `use_existing_security_groups` to `true` to enable using `existing_security_groups` as Security Groups for the cluster | list(string) |`<list>`| no |
19
25
| family | Redis family | string |`redis4.0`| no |
20
26
| instance_type | Elastic cache instance type | string |`cache.t2.micro`| no |
21
27
| maintenance_window | Maintenance window | string |`wed:03:00-wed:04:00`| no |
@@ -26,21 +32,22 @@
26
32
| parameter | A list of Redis parameters to apply. Note that parameters may differ from one Redis family to another | object |`<list>`| no |
27
33
| port | Redis port | number |`6379`| no |
28
34
| replication_group_id | Replication group ID with the following constraints: A name must contain from 1 to 20 alphanumeric characters or hyphens. The first character must be a letter. A name cannot end with a hyphen or contain two consecutive hyphens. | string | `` | no |
29
-
| security_groups | Security Group IDs | list(string) |`<list>`| no |
30
35
| snapshot_retention_limit | The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. | number |`0`| no |
31
36
| snapshot_window | The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. | string |`06:30-07:30`| no |
| transit_encryption_enabled | Enable TLS | bool |`true`| no |
41
+
| use_existing_security_groups | Flag to enable/disable creation of Security Group in the module. Set to `true` to disable Security Group creation and provide a list of existing security Group IDs in `existing_security_groups` to place the cluster into | bool |`false`| no |
36
42
| vpc_id | VPC ID | string | - | yes |
37
43
| zone_id | Route53 DNS Zone ID | string | `` | no |
0 commit comments