Terraform: user-data
Feb 9, 2022
How to check the if the user data shell file is rendered correctly
On the terraform user-data shell file add echo statements
for aws,
ssh into the instance,
sudo su# to see echo messages
tail -f /var/log/messages |grep cloud-init
To see the file with interpolated values
less /var/lib/cloud/instance/scripts/part-001