"awsElastiCache": {{ $connection.awsElastiCache | default false }},
"nodes": [
{{- if $connection.nodes }}
{{- $nodeLength := $connection.nodes | len }}
{{- range $nodeIndex, $node := $connection.nodes }}
{
"host": "{{ $node.host }}",
"port": {{ $node.port }},
"id": "{{ $node.id }}",
"password": "{{ $node.password }}"
}
{{- if ne $nodeLength ($nodeIndex | add1) }}
,
{{- end -}}
{{- end -}}
{{- end -}}
]