AWS CloudWatch integration with Elastic using Elastic Agent On-premise

I am in need of configuring the elastic agent in on-premise and connect with cloud watch logs for multiple AWS accounts and multiple Cloud watch log groups.

Any idea how to configure multiple log groups or automatically add log groups to Cloud watch.?