I've got a userdata file that uses the aws
and jq
commands, but since these aren't ubuntu 18.04 AMI. How can I make software available for userdata?
I tried making a new AMI with those installed. It lets me use
aws
andjq
when I log in, but the logs from userdata still say "aws: command not found" and "jq: command not found".I checked to see if the logs were left over from the AMI creation, but no. An instance started without userdata doesn't have this log file at all.
I don't want to explicitly install them from apt in userdata itself in case the repositories change in a way that breaks the servers.
I'm still pretty sure that AMIs are the way to go, (older custom AMIs other people have made seem to work fine with this userdata), but if the commands are available to bash, why aren't they available to userdata?