I have an SSM environment in AWS, and I have client machines that are joining without any issues. I am able to remote connect to the terminal and run commands, everything works up to this point.
Now I am trying to run terminal commands on the devices en masse. So I would like to, for example, run this:
echo 192.168.1.1 MyServer.domain.com >> /etc/hostsapt install realmdecho MyPassword | realm join -v --user=MyUsername domain.comsudo rebootSo to package this script up in a tidy little unit of some kind that I can push out to devices as I require. But I can't seem to find any way that this can be done.