|
| 1 | +################################################################################ |
| 2 | +# Cluster |
| 3 | +################################################################################ |
| 4 | + |
| 5 | +output "cluster_arn" { |
| 6 | + description = "The ARN of the ElastiCache Cluster" |
| 7 | + value = module.replication_group_with_cluster_replica.cluster_arn |
| 8 | +} |
| 9 | + |
| 10 | +output "cluster_engine_version_actual" { |
| 11 | + description = "Because ElastiCache pulls the latest minor or patch for a version, this attribute returns the running version of the cache engine" |
| 12 | + value = module.replication_group_with_cluster_replica.cluster_engine_version_actual |
| 13 | +} |
| 14 | + |
| 15 | +output "cluster_cache_nodes" { |
| 16 | + description = "List of node objects including `id`, `address`, `port` and `availability_zone`" |
| 17 | + value = module.replication_group_with_cluster_replica.cluster_cache_nodes |
| 18 | +} |
| 19 | + |
| 20 | +output "cluster_address" { |
| 21 | + description = "(Memcached only) DNS name of the cache cluster without the port appended" |
| 22 | + value = module.replication_group_with_cluster_replica.cluster_address |
| 23 | +} |
| 24 | + |
| 25 | +output "cluster_configuration_endpoint" { |
| 26 | + description = "(Memcached only) Configuration endpoint to allow host discovery" |
| 27 | + value = module.replication_group_with_cluster_replica.cluster_configuration_endpoint |
| 28 | +} |
| 29 | + |
| 30 | +################################################################################ |
| 31 | +# Replication Group |
| 32 | +################################################################################ |
| 33 | + |
| 34 | +output "replication_group_arn" { |
| 35 | + description = "ARN of the created ElastiCache Replication Group" |
| 36 | + value = module.replication_group_with_cluster_replica.replication_group_arn |
| 37 | +} |
| 38 | + |
| 39 | +output "replication_group_engine_version_actual" { |
| 40 | + description = "Because ElastiCache pulls the latest minor or patch for a version, this attribute returns the running version of the cache engine" |
| 41 | + value = module.replication_group_with_cluster_replica.replication_group_engine_version_actual |
| 42 | +} |
| 43 | + |
| 44 | +output "replication_group_coniguration_endpoint_address" { |
| 45 | + description = "Address of the replication group configuration endpoint when cluster mode is enabled" |
| 46 | + value = module.replication_group_with_cluster_replica.replication_group_coniguration_endpoint_address |
| 47 | +} |
| 48 | + |
| 49 | +output "replication_group_id" { |
| 50 | + description = "ID of the ElastiCache Replication Group" |
| 51 | + value = module.replication_group_with_cluster_replica.replication_group_id |
| 52 | +} |
| 53 | + |
| 54 | +output "replication_group_member_clusters" { |
| 55 | + description = "Identifiers of all the nodes that are part of this replication group" |
| 56 | + value = module.replication_group_with_cluster_replica.replication_group_member_clusters |
| 57 | +} |
| 58 | + |
| 59 | +output "replication_group_primary_endpoint_address" { |
| 60 | + description = "Address of the endpoint for the primary node in the replication group, if the cluster mode is disabled" |
| 61 | + value = module.replication_group_with_cluster_replica.replication_group_primary_endpoint_address |
| 62 | +} |
| 63 | + |
| 64 | +output "replication_group_reader_endpoint_address" { |
| 65 | + description = "Address of the endpoint for the reader node in the replication group, if the cluster mode is disabled" |
| 66 | + value = module.replication_group_with_cluster_replica.replication_group_reader_endpoint_address |
| 67 | +} |
| 68 | + |
| 69 | +################################################################################ |
| 70 | +# Global Replication Group |
| 71 | +################################################################################ |
| 72 | + |
| 73 | +output "global_replication_group_id" { |
| 74 | + description = "ID of the ElastiCache Global Replication Group" |
| 75 | + value = module.replication_group_with_cluster_replica.global_replication_group_id |
| 76 | +} |
| 77 | + |
| 78 | +output "global_replication_group_arn" { |
| 79 | + description = "ARN of the created ElastiCache Global Replication Group" |
| 80 | + value = module.replication_group_with_cluster_replica.global_replication_group_arn |
| 81 | +} |
| 82 | + |
| 83 | +output "global_replication_group_engine_version_actual" { |
| 84 | + description = "The full version number of the cache engine running on the members of this global replication group" |
| 85 | + value = module.replication_group_with_cluster_replica.global_replication_group_engine_version_actual |
| 86 | +} |
| 87 | + |
| 88 | +output "global_replication_group_node_groups" { |
| 89 | + description = "Set of node groups (shards) on the global replication group" |
| 90 | + value = module.replication_group_with_cluster_replica.global_replication_group_node_groups |
| 91 | +} |
| 92 | + |
| 93 | +################################################################################ |
| 94 | +# CloudWatch Log Group |
| 95 | +################################################################################ |
| 96 | + |
| 97 | +output "cloudwatch_log_group_name" { |
| 98 | + description = "Name of cloudwatch log group created" |
| 99 | + value = module.replication_group_with_cluster_replica.cloudwatch_log_group_name |
| 100 | +} |
| 101 | + |
| 102 | +output "cloudwatch_log_group_arn" { |
| 103 | + description = "Arn of cloudwatch log group created" |
| 104 | + value = module.replication_group_with_cluster_replica.cloudwatch_log_group_arn |
| 105 | +} |
| 106 | + |
| 107 | +################################################################################ |
| 108 | +# Parameter Group |
| 109 | +################################################################################ |
| 110 | + |
| 111 | +output "parameter_group_arn" { |
| 112 | + description = "The AWS ARN associated with the parameter group" |
| 113 | + value = module.replication_group_with_cluster_replica.parameter_group_arn |
| 114 | +} |
| 115 | + |
| 116 | +output "parameter_group_id" { |
| 117 | + description = "The ElastiCache parameter group name" |
| 118 | + value = module.replication_group_with_cluster_replica.parameter_group_id |
| 119 | +} |
| 120 | + |
| 121 | +################################################################################ |
| 122 | +# Subnet Group |
| 123 | +################################################################################ |
| 124 | + |
| 125 | +output "subnet_group_name" { |
| 126 | + description = "The ElastiCache subnet group name" |
| 127 | + value = module.replication_group_with_cluster_replica.subnet_group_name |
| 128 | +} |
| 129 | + |
| 130 | +################################################################################ |
| 131 | +# Security Group |
| 132 | +################################################################################ |
| 133 | + |
| 134 | +output "security_group_arn" { |
| 135 | + description = "Amazon Resource Name (ARN) of the security group" |
| 136 | + value = module.replication_group_with_cluster_replica.security_group_arn |
| 137 | +} |
| 138 | + |
| 139 | +output "security_group_id" { |
| 140 | + description = "ID of the security group" |
| 141 | + value = module.replication_group_with_cluster_replica.security_group_id |
| 142 | +} |
0 commit comments