Python Create Json Array Javascript Length Function In Terraform