EOT yum install -y jq pip3 install boto3 cat >/home/ec2-user/send_metrics <>/var/log/send_metrics.log & /usr/bin/date EOT chmod 755 /home/ec2-user/send_metrics touch /var/log/send_metrics.log chmod 666 /var/log/send_metrics.log #/usr/bin/bash -x /home/ec2-user/send_metrics cat >/lib/systemd/system/spot.service <