Skip to content

Commit c275d5e

Browse files
updated varibale, example and readme
1 parent d69b4f7 commit c275d5e

File tree

4 files changed

+35
-14
lines changed

4 files changed

+35
-14
lines changed

README.md

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,22 @@
55

66
### [SquareOps Technologies](https://squareops.com/) Your DevOps Partner for Accelerating cloud journey.
77
<br>
8-
We publish several terraform modules.
9-
<br>
10-
Terraform Module to create Redis on AWS Cloud.
8+
This module is a Terraform module that provides an easy and efficient way to deploy and manage an Amazon ElastiCache Redis cluster in AWS. It simplifies the process of setting up a Redis cluster with customizable configurations, allowing you to focus on your application development and performance optimization.
9+
Features
10+
11+
1. Simple Configuration: The module offers a simple and intuitive configuration interface, allowing you to define your Redis cluster's properties, such as instance type, node count, subnet, security groups, and more.
12+
13+
2. Scalability: Easily scale your Redis cluster up or down by modifying the number of cache nodes, enabling you to meet the changing demands of your application.
14+
15+
3. High Availability: Enable multi-AZ deployment to achieve high availability and automatic failover in case of a node or zone failure. This ensures that your Redis cluster remains accessible and your data stays protected.
16+
17+
4. Flexible Networking: Choose the VPC and subnets where you want to deploy your Redis cluster, providing you with control over network access and integration with other resources in your AWS environment.
18+
19+
5. Encryption and Security: Enable encryption at rest with your own KMS key or use AWS-managed encryption. Control access to your Redis cluster using CIDR blocks and security groups, ensuring secure communication and data protection.
20+
21+
6. Backup and Recovery: Configure automated daily snapshots and set the retention period for backups. You can also specify a final snapshot for a smooth and controlled cluster termination process.
22+
23+
7. Logging and Monitoring: Easily configure logging destinations for slow logs and engine logs, allowing you to monitor the performance and troubleshoot any issues efficiently.
1124

1225
## Uses Example
1326

@@ -18,19 +31,19 @@ module "redis" {
1831
environment = "production"
1932
name = "SKAF"
2033
family = "redis6.x"
21-
node_type = "cache.t3.small"
22-
num_cache_nodes = 2
23-
engine_version = "6.x"
34+
vpc_id = "vpc-06eb7eskaf"
35+
subnets = ["subnet-0bfa3eskaf","subnet-0140bskaf"]
36+
node_type = "cache.t3.small"
37+
kms_key_arn = "arn:aws:kms:us-east-2:222222222222:key/kms_key_arn"
38+
num_cache_nodes = 2
39+
engine_version = "6.x"
40+
multi_az_enabled = false
2441
availability_zones = 2
2542
automatic_failover_enabled = true
2643
snapshot_retention_limit = 7
2744
at_rest_encryption_enabled = true
2845
transit_encryption_enabled = false
2946
notification_topic_arn = null
30-
vpc_id = "vpc-06eb7eskaf"
31-
subnets = ["subnet-0bfa3eskaf","subnet-0140bskaf"]
32-
kms_key_arn = "arn:aws:kms:us-east-2:222222222222:key/kms_key_arn"
33-
multi_az_enabled = false
3447
allowed_security_groups = [sg-0132a18skaf]
3548
maintenance_window = "sun:09:00-sun:10:00"
3649
snapshot_window = "07:00-08:00"
@@ -39,8 +52,7 @@ module "redis" {
3952
```
4053

4154
## Important Note
42-
1. This module creates RDS security group.
43-
2. By default, the variable `create_random_password` is set to true. Therefore, even if the user provides a password, it will not be read. The `create_random_password` variable should be set to false and the `password` variable should have a non-null value to be read and used.
55+
1. By default, the variable `create_random_password` is set to true. Therefore, even if the user provides a password, it will not be read. The `create_random_password` variable should be set to false and the `password` variable should have a non-null value to be read and used.
4456

4557
## Security & Compliance [<img src=" https://prowler.pro/wp-content/themes/prowler-pro/assets/img/logo.svg" width="250" align="right" />](https://prowler.pro/)
4658

examples/complete/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## Redis Example
2+
![squareops_avatar]
3+
4+
[squareops_avatar]: https://squareops.com/wp-content/uploads/2022/12/squareops-logo.png
5+
6+
### [SquareOps Technologies](https://squareops.com/) Your DevOps Partner for Accelerating cloud journey.
7+
<br>
8+
9+
This example will be very useful for users who are new to a module and want to quickly learn how to use it. By reviewing the examples, users can gain a better understanding of how the module works, what features it supports, and how to customize it to their specific needs.
110
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
211
## Requirements
312

examples/complete/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ locals {
1313

1414
module "redis" {
1515
source = "git@github.com:sq-ia/terraform-aws-elasticache-redis.git"
16-
environment = local.environment
1716
name = local.name
1817
family = local.family
1918
node_type = local.node_type
19+
environment = local.environment
2020
engine_version = local.redis_engine_version
2121
num_cache_nodes = 2
2222
vpc_id = local.vpc_id

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ variable "multi_az_enabled" {
6969

7070

7171
variable "availability_zones" {
72-
description = "The list of AZs"
72+
description = "The no. of AZs"
7373
default = 2
7474
type = string
7575
}

0 commit comments

Comments
 (0)