How do I add environment labels to EC2 User data cloud-config?

I would add the environment labels like this - is this the correct?

  environment:
  CATTLE_HOST_LABELS: environment=production&hosttype=large

Full EC2 User data configurations (used to register agent and add label)

#cloud-config
rancher:
  services:
    register:
      privileged: true
      volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /var/lib/rancher:/var/lib/rancher
      image: rancher/agent:v1.2.2
      command:
      - https://rancher.domain.com/v1/scripts/<token>
      environment:
      CATTLE_HOST_LABELS: environment=production&hosttype=large

I would say:

      environment:
        - CATTLE_HOST_LABELS='environment=production&hosttype=large'