Yq Loop Through Array Javascript Length Function In Terraform