AWS EC2 log userdata output to cloudwatch logs

Advertisements I’m doing pre-processing tasks using EC2. I execute shell commands using the userdata variable. The last line of my userdata has sudo shutdown now -h. So the instance gets terminated automatically once the pre-processing task completed. This is how my code looks like. import boto3 userdata = ”’#!/bin/bash pip3 install boto3 pandas scikit-learn aws… Read More AWS EC2 log userdata output to cloudwatch logs