1
1
output "endpoint" {
2
2
description = " Redis primary or configuration endpoint, whichever is appropriate for the given cluster mode"
3
- value = aws_elasticache_replication_group. this [0 ]. primary_endpoint_address
3
+ value = try ( aws_elasticache_replication_group. this [0 ]. primary_endpoint_address , null )
4
4
}
5
5
6
6
output "reader_endpoint_address" {
7
7
description = " The address of the endpoint for the reader node in the replication group, if the cluster mode is disabled"
8
- value = aws_elasticache_replication_group. this [0 ]. reader_endpoint_address
8
+ value = try ( aws_elasticache_replication_group. this [0 ]. reader_endpoint_address , null )
9
9
}
10
10
11
11
output "member_clusters" {
12
12
description = " Redis cluster members"
13
- value = aws_elasticache_replication_group. this [0 ]. member_clusters
13
+ value = try ( aws_elasticache_replication_group. this [0 ]. member_clusters , null )
14
14
}
15
15
16
16
output "arn" {
17
17
description = " Elasticache Replication Group ARN"
18
- value = aws_elasticache_replication_group. this [0 ]. arn
18
+ value = try ( aws_elasticache_replication_group. this [0 ]. arn , null )
19
19
}
20
20
21
21
output "cluster_enabled" {
22
22
description = " Indicates if cluster mode is enabled."
23
- value = aws_elasticache_replication_group. this [0 ]. cluster_enabled
23
+ value = try ( aws_elasticache_replication_group. this [0 ]. cluster_enabled , null )
24
24
}
25
25
26
26
output "id" {
27
27
description = " ID of the ElastiCache Replication Group."
28
- value = aws_elasticache_replication_group. this [0 ]. id
28
+ value = try ( aws_elasticache_replication_group. this [0 ]. id , null )
29
29
}
30
30
31
31
output "configuration_endpoint_address" {
32
32
description = " Address of the replication group configuration endpoint when cluster mode is enabled."
33
- value = aws_elasticache_replication_group. this [0 ]. configuration_endpoint_address
33
+ value = try ( aws_elasticache_replication_group. this [0 ]. configuration_endpoint_address , null )
34
34
}
35
35
36
36
output "engine_version_actual" {
37
37
description = " Because ElastiCache pulls the latest minor or patch for a version, this attribute returns the running version of the cache engine."
38
- value = aws_elasticache_replication_group. this [0 ]. engine_version_actual
38
+ value = try ( aws_elasticache_replication_group. this [0 ]. engine_version_actual , null )
39
39
}
40
40
41
41
output "subnet_group_name" {
@@ -50,10 +50,10 @@ output "subnet_group_subnet_ids" {
50
50
51
51
output "parameter_group_arn" {
52
52
description = " The AWS ARN associated with the parameter group."
53
- value = aws_elasticache_parameter_group. this [0 ]. arn
53
+ value = try ( aws_elasticache_parameter_group. this [0 ]. arn , null )
54
54
}
55
55
56
56
output "parameter_group_id" {
57
57
description = " The ElastiCache parameter group name."
58
- value = aws_elasticache_parameter_group. this [0 ]. id
58
+ value = try ( aws_elasticache_parameter_group. this [0 ]. id , null )
59
59
}
0 commit comments