Re: [Cloud-init] cloud-init user data deployed by terraform on custom AWS AMI

2022-02-10 Thread Chad Smith
Hi Colin, Some notes: - Cloud-init run scripts as "root" user so "sudo" is unnecessary for your commands - The script stdout and stderr ends up in /var/log/cloud-init-output.log. So expect to see any errors or script output there. - When writing to files in /tmp early in boot, be aware

Re: [Cloud-init] cloud-init user data deployed by terraform on custom AWS AMI

2022-02-10 Thread Colin Williams
Here's the debugging information based on Chads' response which may not have been delivered to the list. Note that I have to type out the details due to firewall and network details. It looks like everything is ok based on described. I do have to run the script as root for it to succeed. However th

Re: [Cloud-init] cloud-init user data deployed by terraform on custom AWS AMI

2022-02-09 Thread Colin Williams
I made a look at /var/lib/cloud/instance/user-data.txt and it appears that the cloud config script is *deployed*. On Wed, Feb 9, 2022 at 10:30 PM Colin Williams wrote: > > Hi, > > I am trying to mount a instance block device (non EBS) similar to > > https://stackoverflow.com/a/67723667 > > With t