Configuring CloudWatch log widget using terraform resource

Hi All, any pointer to configure CloudWatch log widget using terraform resource?

I think you just have to reference the JSON, I don’t believe you can build widgets using Terraform the last time I checked. For example, we manually made a dashboard, exported the json and then included that as part of the CloudWatch Dashboard Terraform.

Sure thanks , I couldn’t find option to exporting the widget into JSON code. Where we can do that?

You should just be able to export the Dashboard as a whole I believe then pick out the json part you need. From memory