-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3afbbec
commit aecb897
Showing
3 changed files
with
74 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,31 @@ | ||
output "parameter_group_id" { | ||
description = "The ElastiCache parameter group name." | ||
value = "" | ||
value = join("", aws_elasticache_parameter_group.this.*.name) | ||
} | ||
|
||
output "id" { | ||
description = "The ID of the ElastiCache Replication Group" | ||
value = join("", aws_elasticache_replication_group.this.*.id) | ||
} | ||
|
||
output "configuration_endpoint_address" { | ||
|
||
description = "The address of the replication group configuration endpoint when cluster mode is enabled." | ||
value = var.cluster_mode_enabled ? join("", aws_elasticache_replication_group.this.*.configuration_endpoint_address) : join("", aws_elasticache_replication_group.this.*.primary_endpoint_address) | ||
} | ||
|
||
output "primary_endpoint_address" { | ||
description = "(Redis only) The address of the endpoint for the primary node in the replication group, if the cluster mode is disabled." | ||
value = var.engine == "redis" ? join("", aws_elasticache_replication_group.this.*.primary_endpoint_address) : "" | ||
} | ||
|
||
|
||
output "member_clusters" { | ||
description = "The identifiers of all the nodes that are part of this replication group." | ||
value = join("", aws_elasticache_replication_group.this.*.member_clusters) | ||
} | ||
|
||
output "security_group_id" { | ||
value = join("", aws_security_group.this.*.id) | ||
description = "Security group ID" | ||
} |