We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8a92dac + 72f261f commit 2a3115bCopy full SHA for 2a3115b
outputs.tf
@@ -40,12 +40,12 @@ output "engine_version_actual" {
40
41
output "subnet_group_name" {
42
description = "The Name of the ElastiCache Subnet Group."
43
- value = aws_elasticache_subnet_group.this[0].name
+ value = try(aws_elasticache_subnet_group.this[0].name, var.subnet_group_name)
44
}
45
46
output "subnet_group_subnet_ids" {
47
description = "The Subnet IDs of the ElastiCache Subnet Group."
48
- value = aws_elasticache_subnet_group.this[0].subnet_ids
+ value = try(aws_elasticache_subnet_group.this[0].subnet_ids, var.subnets)
49
50
51
output "parameter_group_arn" {
0 commit comments