Skip to content

Commit fb1d616

Browse files
committed
Removed unwanted variable and added CW alerts description
1 parent 62b5a25 commit fb1d616

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ Features
2222

2323
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.
2424

25+
8. CloudWatch Alerts: Set up CloudWatch alarms to monitor the health and performance of your Redis cluster. Integrate these alarms with AWS Simple Notification Service (SNS) to receive real-time alerts. Use AWS Lambda functions to customize your alerting logic, and send notifications to Slack channels for immediate visibility into your Redis cluster's status.
26+
27+
2528
## Uses Example
2629

2730
```hcl
@@ -41,7 +44,6 @@ module "redis" {
4144
availability_zones = 2
4245
automatic_failover_enabled = true
4346
snapshot_retention_limit = 7
44-
at_rest_encryption_enabled = true
4547
transit_encryption_enabled = false
4648
notification_topic_arn = null
4749
allowed_security_groups = [sg-0132a18skaf]

main.tf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ resource "aws_elasticache_replication_group" "redis" {
4848
multi_az_enabled = var.multi_az_enabled
4949
kms_key_id = var.kms_key_arn
5050
auth_token = var.transit_encryption_enabled ? random_password.password.result : null
51-
at_rest_encryption_enabled = var.at_rest_encryption_enabled
5251
transit_encryption_enabled = var.transit_encryption_enabled
5352
notification_topic_arn = var.notification_topic_arn
5453
maintenance_window = var.maintenance_window
@@ -166,7 +165,7 @@ resource "aws_cloudwatch_metric_alarm" "cache_cpu" {
166165
}
167166

168167
alarm_actions = [aws_sns_topic.slack_topic[0].arn]
169-
ok_actions = var.ok_actions
168+
ok_actions = [aws_sns_topic.slack_topic[0].arn]
170169
depends_on = [aws_sns_topic.slack_topic]
171170

172171
tags = merge(
@@ -193,7 +192,7 @@ resource "aws_cloudwatch_metric_alarm" "cache_memory" {
193192
}
194193

195194
alarm_actions = [aws_sns_topic.slack_topic[0].arn]
196-
ok_actions = var.ok_actions
195+
ok_actions = [aws_sns_topic.slack_topic[0].arn]
197196
depends_on = [aws_sns_topic.slack_topic]
198197

199198
tags = merge(

0 commit comments

Comments
 (0)