Hey guys!
I’m having the following problem:
I create the custom Debian 11 ami in the packer then run the ami in the terraform.
Logging into the instance there are two entries “admin ALL=(ALL) NOPASSWD:ALL” in the file “/etc/sudoers.d/90-cloud-init-users”
How can I just leave an entry of “admin ALL=(ALL) NOPASSWD:ALL” in 90-cloud-init-users and removing the option “NOPASSWD”?
Or how do I replace the cloud-init.cfg file to the way I want and on the next ami startup apply this new change?
Thanks!