{{- with resources.GetRemote (print "https://s3.tynsoe.org" "/" . ) | transform.Unmarshal -}} {{- range first 1 (sort (where .Contents ".Key" "!=" ".foo") "LastModified" "asc") -}} {{- index (index (findRESubmatch `^[^-]+-(v[^-]+)[-\.]` .Key) 0) 1 -}} {{- end -}} {{- end -}}