Score:0

Automating cloudwatch agent installation for multiple arch types

ua flag

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(https://github.com/gp42/aws_cloudwatch) and Ansible plays(https://github.com/christiangda/ansible-role-amazon-cloudwatch-agent) 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 https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/download-cloudwatch-agent-commandline.html

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.