Problem creating kubernetes_deployment with a spec.container.env block

What should the spec.container.env block look like when setting multiple env vars? There is no example using all the options to show how things should be formatted. I keep getting the error " ‘env’ is not expected here. Did you mean to define a block of type ‘env’? "

You just specify multiple env blocks, as in:

      env {
        name  = "KAFKA_HEAP_OPTS"
        value = "-Xmx1G -Xms1G"
      }
      env {
        name  = "KAFKA_ALLOW_AUTO_CREATE_TOPICS"
        value = var.allow_auto_create_topics
      }