Skip to content

Commit a1af9df

Browse files
author
Abdul Wahid
authored
Documentation + Examples cleanup (#33)
* Update terraform versions * Use t4g instance sizes for examples + Update minimum redis version from 5.x to 6.x * chore: update changelog + hooks
1 parent cea9fa8 commit a1af9df

File tree

7 files changed

+42
-26
lines changed

7 files changed

+42
-26
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repos:
1818
args: ['--allow-missing-credentials']
1919
- id: trailing-whitespace
2020
- repo: https://github.com/antonbabenko/pre-commit-terraform
21-
rev: v1.73.0
21+
rev: v1.74.0
2222
hooks:
2323
- id: terraform_fmt
2424
- id: terraform_docs

CHANGELOG.md

+24-8
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,28 @@ All notable changes to this project will be documented in this file.
55
<a name="unreleased"></a>
66
## [Unreleased]
77

8-
- Update README and basic example
9-
- Allow to configure for ingress from other SGs
10-
- Support Redis log delivery ([#26](https://github.com/umotif-public/terraform-aws-elasticache-redis/issues/26))
11-
- Support Data Tiering Feature for r6gd nodes
8+
- Use t4g instance sizes for examples + Update minimum redis version from 5.x to 6.x
9+
- Update terraform versions
10+
- Add Data Tiering support ([#32](https://github.com/umotif-public/terraform-aws-elasticache-redis/issues/32))
1211

13-
<a name="3.0.0"></a>
14-
## [3.0.0] - 2022-03-09
1512

16-
- Upgrade module to be compatible with AWS Provider 4.0.0 ([#21](https://github.com/umotif-public/terraform-aws-elasticache-redis/issues/21))
13+
<a name="3.1.2"></a>
14+
## [3.1.2] - 2022-05-26
15+
16+
- fix example in README ([#30](https://github.com/umotif-public/terraform-aws-elasticache-redis/issues/30))
17+
18+
19+
<a name="3.1.1"></a>
20+
## [3.1.1] - 2022-05-12
21+
22+
- Fix outputs for endpoints ([#29](https://github.com/umotif-public/terraform-aws-elasticache-redis/issues/29))
23+
24+
25+
<a name="3.1.0"></a>
26+
## [3.1.0] - 2022-05-12
27+
28+
- Allow other sg ingress ([#24](https://github.com/umotif-public/terraform-aws-elasticache-redis/issues/24))
29+
- Support Redis log delivery ([#26](https://github.com/umotif-public/terraform-aws-elasticache-redis/issues/26))
1730

1831

1932
<a name="3.0.0"></a>
@@ -112,7 +125,10 @@ All notable changes to this project will be documented in this file.
112125
- Initial commit of docs
113126

114127

115-
[Unreleased]: https://github.com/umotif-public/terraform-aws-elasticache-redis/compare/3.0.0...HEAD
128+
[Unreleased]: https://github.com/umotif-public/terraform-aws-elasticache-redis/compare/3.1.2...HEAD
129+
[3.1.2]: https://github.com/umotif-public/terraform-aws-elasticache-redis/compare/3.1.1...3.1.2
130+
[3.1.1]: https://github.com/umotif-public/terraform-aws-elasticache-redis/compare/3.1.0...3.1.1
131+
[3.1.0]: https://github.com/umotif-public/terraform-aws-elasticache-redis/compare/3.0.0...3.1.0
116132
[3.0.0]: https://github.com/umotif-public/terraform-aws-elasticache-redis/compare/2.2.0...3.0.0
117133
[2.2.0]: https://github.com/umotif-public/terraform-aws-elasticache-redis/compare/2.1.0...2.2.0
118134
[2.1.0]: https://github.com/umotif-public/terraform-aws-elasticache-redis/compare/2.0.0...2.1.0

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module "redis" {
2020
2121
name_prefix = "core-example"
2222
num_cache_clusters = 2
23-
node_type = "cache.t3.small"
23+
node_type = "cache.t4g.small"
2424
2525
engine_version = "6.x"
2626
port = 6379
@@ -73,23 +73,23 @@ module "redis" {
7373

7474
## Authors
7575

76-
Module managed by [Abdul Wahid](https://github.com/Ohid25) ([LinkedIn](https://www.linkedin.com/in/abdul-wahid/))
76+
Module managed by [uMotif](https://github.com/umotif-public/)
7777

7878
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
7979
## Requirements
8080

8181
| Name | Version |
8282
|------|---------|
83-
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.14.11 |
84-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.8.0 |
85-
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 3.1.0 |
83+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0.11 |
84+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.8.0, < 5.0.0 |
85+
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 3.3.2, < 4.0.0 |
8686

8787
## Providers
8888

8989
| Name | Version |
9090
|------|---------|
91-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.8.0 |
92-
| <a name="provider_random"></a> [random](#provider\_random) | >= 3.1.0 |
91+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.8.0, < 5.0.0 |
92+
| <a name="provider_random"></a> [random](#provider\_random) | >= 3.3.2, < 4.0.0 |
9393

9494
## Modules
9595

@@ -122,8 +122,8 @@ No modules.
122122
| <a name="input_cluster_mode_enabled"></a> [cluster\_mode\_enabled](#input\_cluster\_mode\_enabled) | Enable creation of a native redis cluster. | `bool` | `false` | no |
123123
| <a name="input_data_tiering_enabled"></a> [data\_tiering\_enabled](#input\_data\_tiering\_enabled) | Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes. | `bool` | `false` | no |
124124
| <a name="input_description"></a> [description](#input\_description) | The description of the all resources. | `string` | `"Managed by Terraform"` | no |
125-
| <a name="input_engine_version"></a> [engine\_version](#input\_engine\_version) | The version number of the cache engine to be used for the cache clusters in this replication group. | `string` | `"5.0.6"` | no |
126-
| <a name="input_family"></a> [family](#input\_family) | The family of the ElastiCache parameter group. | `string` | `"redis5.0"` | no |
125+
| <a name="input_engine_version"></a> [engine\_version](#input\_engine\_version) | The version number of the cache engine to be used for the cache clusters in this replication group. | `string` | `"6.x"` | no |
126+
| <a name="input_family"></a> [family](#input\_family) | The family of the ElastiCache parameter group. | `string` | `"redis6.x"` | no |
127127
| <a name="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 |
128128
| <a name="input_global_replication_group_id"></a> [global\_replication\_group\_id](#input\_global\_replication\_group\_id) | The ID of the global replication group to which this replication group should belong. | `string` | `null` | no |
129129
| <a name="input_ingress_cidr_blocks"></a> [ingress\_cidr\_blocks](#input\_ingress\_cidr\_blocks) | List of Ingress CIDR blocks. | `list(string)` | `[]` | no |

examples/redis-basic/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module "redis" {
3434

3535
name_prefix = "redis-basic-example"
3636
num_cache_clusters = 2
37-
node_type = "cache.t3.small"
37+
node_type = "cache.t4g.small"
3838

3939
engine_version = "6.x"
4040
port = 6379

examples/redis-clustered-mode/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module "redis" {
2424

2525
name_prefix = "redis-clustered-example"
2626
num_cache_clusters = 2
27-
node_type = "cache.t3.small"
27+
node_type = "cache.t4g.small"
2828

2929
cluster_mode_enabled = true
3030
replicas_per_node_group = 1

variables.tf

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ variable "security_group_ids" {
4949
}
5050

5151
variable "engine_version" {
52-
default = "5.0.6"
52+
default = "6.x"
5353
type = string
5454
description = "The version number of the cache engine to be used for the cache clusters in this replication group."
5555
}
@@ -108,7 +108,7 @@ variable "apply_immediately" {
108108
}
109109

110110
variable "family" {
111-
default = "redis5.0"
111+
default = "redis6.x"
112112
type = string
113113
description = "The family of the ElastiCache parameter group."
114114
}
@@ -219,4 +219,4 @@ variable "data_tiering_enabled" {
219219
type = bool
220220
default = false
221221
description = "Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes."
222-
}
222+
}

versions.tf

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
terraform {
2-
required_version = ">= 0.14.11"
2+
required_version = ">= 1.0.11"
33

44
required_providers {
5-
aws = ">= 4.8.0"
6-
random = ">= 3.1.0"
5+
aws = ">= 4.8.0, < 5.0.0"
6+
random = ">= 3.3.2, < 4.0.0"
77
}
88
}

0 commit comments

Comments
 (0)