Fetch tags value with tag of names

Using cloudwatch as a data source in Grafana I would like to fetch the tags.Values. In variables I have defined a custom box and given tag.names. So now for the selected name i want the value.

For ec2 I have seen that we can use ec2_instance_attributes and query but would like to know how could we use it for any other services like ECS, EKS and all