File tree Expand file tree Collapse file tree 4 files changed +20
-3
lines changed Expand file tree Collapse file tree 4 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ output "id_of_redis_cluster" {
1414 value = module. redis . elastic_cache_redis_cluster_id
1515}
1616
17+ output "redis_member_clusters" {
18+ description = " Subnet group name of the elasticache-redis cluster"
19+ value = module. redis . elastic_cache_redis_member_clusters
20+
21+ }
22+
1723output "port_no" {
1824 description = " Port number of Redis"
1925 value = module. redis . elastic_cache_redis_port
Original file line number Diff line number Diff line change 11locals {
22 name = " redis"
3- region = " us-east -2"
3+ region = " us-west -2"
44 family = " redis6.x"
55 node_type = " cache.t3.small"
66 vpc_cidr = " 10.0.0.0/16"
7- allowed_security_groups = [" sg-09b5da32f11bc36f " ]
7+ allowed_security_groups = [" sg-0412fe49 " ]
88 environment = " prod"
99 redis_engine_version = " 6.0"
1010 additional_tags = {
@@ -114,7 +114,7 @@ module "redis" {
114114 cloudwatch_metric_alarms_enabled = true
115115 alarm_cpu_threshold_percent = 70
116116 alarm_memory_threshold_bytes = " 10000000" # in bytes
117- slack_notification_enabled = true
117+ slack_notification_enabled = false
118118 slack_username = " "
119119 slack_channel = " "
120120 slack_webhook_url = " "
Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ output "redis_subnet_group_name" {
99
1010}
1111
12+ output "redis_member_clusters" {
13+ description = " Subnet group name of the elasticache-redis cluster"
14+ value = module. redis . elastic_cache_redis_member_clusters
15+
16+ }
17+
1218output "id_of_redis_cluster" {
1319 description = " ID of the elasticache-redis cluster"
1420 value = module. redis . elastic_cache_redis_cluster_id
Original file line number Diff line number Diff line change @@ -32,3 +32,8 @@ output "auth_token_password" {
3232 description = " Elasticache-redis auth token password(this password may be old, because Terraform doesn't track it after initial creation)"
3333 value = var. transit_encryption_enabled ? nonsensitive (random_password. password [0 ]. result ) : null
3434}
35+
36+ output "elastic_cache_redis_member_clusters" {
37+ description = " ID of the elasticache-redis cluster"
38+ value = flatten (aws_elasticache_replication_group. redis . member_clusters )
39+ }
You can’t perform that action at this time.
0 commit comments