Aws cloudwatch and terraform

Just like data block gives the properties of an ec2 instance from aws console.

For a given ec2 instanceid , how can i get dimensions values for an ec2 metric (disk_used_percent) from cloudwatch into terraform.

The values in CW are for example

‘’’ instanceid | fstype | device | path | metric ‘’’

i-23456 | ext4 | no1te | /my-portal | disk_used_percent

I know the instanceid, want to get the other 4 values from Cloudwatch into terraform