Terraform - AWS CloudWatch Dashboards

Hi team,
I am trying to create a single dashboard using a modular approach. The CloudWatch dashboard will have text and metrics-type graphs in it and will look something like this:

Health - text
MWAA - text
queuedtasks - metric, schedulerheartbeat - metric,
EC2 - text
cpu-utilization - metric

All of the approaches I have tested have failed in my case to deliver. Please find the attached reference and looking forward to your contributions asap.