Unfortunately, systemd reads /etc/machine-id prior to launching any tasks, so I think this not a cloud-init issue. The proper solution, I guess, would be to delete /etc/machine-id before making an ami out of a running instance. Sorry to bother :(
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1563951 Title: Cloud-init does not initialize systemd machine id To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1563951/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs