if you look at the JSON, you can see that aggregations.bucketAgg.buckets
is an array, and thus you cannot just use the key
field as it is inside an array.
This example in the docs should help to show how to loop through such an array using mustache.
--Alex