Grafana integration -aws cloudwatch dashboard

Hi
I have a problem loading aws ec2 dashboard data on our own grafana server. There are 3 aws account. two of them doesn’t work while one account works as it is supposed to. Different aws accounts are used as data source but the problem is when a different data source is selected other than the one that does work, the instance ids of that specific chosen data source don’t dynamically get changed. But when i get an ec2 instance id from any account and paste it in the instance id query box in the dashboard, it works. I am not sure if it is a variable/query issue because it works manually but it just doesn’t change instance id dynamically based no chosen data source. Anyone has any idea about what could be wrong?