Configure aws cloudwatch agent run at startup

You can run the following command in Ubuntu to make AWS Cloudwatch agent service auto start after the machine reboots:

sudo systemctl enable amazon-cloudwatch-agent.service

Output:

Created symlink 
/etc/systemd/system/multi-user.target.wants/amazon-cloudwatch-agent.service 
→ /etc/systemd/system/amazon-cloudwatch-agent.service.