title: cloud-init how to add default user to sudoers.d
body: <p>I boot strap a centos 6.5 AMI with this user data:</p>
  
  <pre><code>#cloud-config
  users:
    - default
    - name: my-user
    - sudo: ALL=(ALL) NOPASSWD:ALL
  </code></pre>
  
  <p>My machine comes up with the user cloud-user as the default user, not my-user. My public key has been copied to the cloud-user. So, in short, it does not work.</p>
  
  <p>If I do this, the default user is my-user:</p>
  
  <pre><code>#cloud-config
  user: my-user
  sudo: ALL=(ALL) NOPASSWD:ALL
  </code></pre>
  
  <p>But I cannot sudo -i with this user.</p>
  
  <p>How can I in userdata set my-user to be the default and have sudo provileges set?</p>