Ansible role for installing cloudwatch agent on deb-based Linux.
After this role is applied, check that the ec2 instance role has the CloudWatchAgentServerPolicy policy attached.
CloudWatchAgentServerPolicy