LXD & cloud-init: automatically provision SSH keys on launch

Provision from Github

  1. Create a new profile

  2. Add the below instructions to the profile

config:
  cloud-init.user-data: |
    #cloud-config
    users:
      - name: ubuntu
        ssh_import_id:
          - gh:guiand888
description: ""
devices: {}
name: cloud_init-ssh_keys
used_by:
- /1.0/instances/docker-staging-ubt
  1. Add the profile to your LXD container or VM