Terraform export of NEW Dashboards app

Hi all,

Just wondering if anyone has had luck exporting dashboards from the new dashboard app? I’m running -export -import-state and it’s giving me dashboard and json_dashboard modules. I am able to see dashboards created in the classic dashboards app but not the new one.

@tthi

The Terraform export showing only dashboard/json_dashboard means you’re exporting Dashboards Classic. For the new Dashboards app, use the Terraform dynatrace_document resource, which manages dashboards stored in the Document Service. Classic dashboards = dynatrace_json_dashboard; new dashboards = documents (type dashboard)dynatrace_document | Resources | dynatrace-oss/dynatrace | Terraform | Terraform Registry

Thanks @sujit_k_singh!

Looks like we had the right permissions already for OAuth but used the personal tokens instead. Not sure if there is a guide which highlights this, but finding the guide from DT for Terraform quite lacklustre