Alarm for direct connect is showing insufficient data with terraform, how to fix that?

I tried creating alarm for direct connect using this link.

But it is showing insufficient data, so I tried creating manually from aws console and it is working.

So, did a side by side comparison and tried following changes in dimensions.

connection_id → ConnectionId aws_account_id → “Account ID”,AccountID,AccountId region → kept and removed

Not fruitful, as getting same insufficient data.

Please suggest.