https://pulumi.com logo
#general
Title
# general
r

rhythmic-camera-25993

05/17/2020, 4:43 PM
Copy code
const userData = sshKey.apply(key => `
#cloud-config
users:
  - name: ${adminUser}
    ssh-authorized-keys:
      - ${sshKey}
    sudo: ['ALL=(ALL) NOPASSWD:ALL']
    groups: sudo
    shell: /bin/bash
`);