amazon ec2 – Automating cloudwatch agent installation for multiple arch types

I need to automate cloudwatch agent installation on new and existing instances created in EC2. We have a mix x86_64 and arm64 arch type vms as well different OSes(Ubuntu/Amazon Linux).

I found Chef cookbooks( and Ansible plays( that do the install and config, and I can provide my config file for the agent

But going through the code both only support x86_64 endpoints.
I checked AWS System manager which also supports installing cloudwatch agent package however they require an additional SSM agent to be installed first. That seems like an unnecessary overhead.

Is there a broader automation either in chef or ansible or any aws tool that covers multiple os and arch type to install cloudwatch agent?

My other alternative is to modify the cookbook and update vars to include download links for arm64 installers listed at