# Use the Dynatrace Export Utility with Terraform Workflows

**URL:** <https://community.dynatrace.com/t/use-the-dynatrace-export-utility-with-terraform-workflows/39510>\
**Category:** Open Q&A\
**Tags:** technologies, terraform\
**Created:** [April 27, 2023, 10:23pm UTC](https://community.dynatrace.com/t/use-the-dynatrace-export-utility-with-terraform-workflows/39510 "2023-04-27T22:23:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![oluseyi](https://avatars.discourse-cdn.com/v4/letter/o/a698b9/32.png) [@oluseyi](https://community.dynatrace.com/u/oluseyi)\
**Post date:** [April 27, 2023, 10:23pm UTC](https://community.dynatrace.com/t/use-the-dynatrace-export-utility-with-terraform-workflows/39510/1 "2023-04-27T22:23:03Z")

</div>

_Summary:&nbsp;This post explains how the Dynatrace export utility can be used in Terraform workflows. It covers what the utility exports, how it interacts with Monaco/Terraform, and considerations for versioning._

How can I use the Dynatrace export utility in Terraform? I came across a video where the presenter actually exported an existing Dynatrace dashboard into his Terraform config. I followed the steps, and I couldn’t get the config to download on my VS Code.&nbsp;  
Does anyone have a step-by-step guide to using Terraform to export existing Dynatrace resources into their environment

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [April 27, 2023, 10:37pm UTC](https://community.dynatrace.com/t/use-the-dynatrace-export-utility-with-terraform-workflows/39510/2 "2023-04-27T22:37:19Z")

</div>

Hi,

Maybe you already know it but Dynatrace has its own tool:

- [Configuration as Code](https://www.dynatrace.com/support/help/shortlink/configuration-as-code).
- [Monaco documentation](https://dynatrace.github.io/dynatrace-configuration-as-code/).

If you still want Terraform, maybe [this webinar](https://www.youtube.com/watch?v=uAudyJNpda0) will be useful.

Best regards

---

<div class="post-metadata">

**Author:** ![AlainD](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@AlainD](https://community.dynatrace.com/u/AlainD)\
**Post date:** [October 7, 2024, 2:36pm UTC](https://community.dynatrace.com/t/use-the-dynatrace-export-utility-with-terraform-workflows/39510/3 "2024-10-07T14:36:50Z")

</div>

I try to use export utility with terraform provider as well in documentation you can user directly the executable&nbsp;terraform-provider-dynatrace\_v1.68.1.exe directly but in reality I have this message :  
This binary is a plugin. These are not meant to be executed directly.  
Please execute the program that consumes these plugins, which will  
load any plugins automatically.

Must be doing something wrong, any clue for this?

---

<div class="post-metadata">

**Author:** ![Fin\_Ubels](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fin_ubels/32/18008_2.png) [@Fin\_Ubels](https://community.dynatrace.com/u/Fin_Ubels)\
**Post date:** [October 8, 2024, 2:50am UTC](https://community.dynatrace.com/t/use-the-dynatrace-export-utility-with-terraform-workflows/39510/4 "2024-10-08T02:50:49Z")

</div>

Hey AlainD, there is a tutorial for the export utility [here](https://docs.dynatrace.com/docs/manage/configuration-as-code/terraform/guides/export-utility#export-guide), have you tried following this? If you’ve tried following the tutorial from the docs and you get that error, what command are you trying to execute that returns that?

---

<div class="post-metadata">

**Author:** ![Romanenkov\_Al3x](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/romanenkov_al3x/32/36257_2.png) [@Romanenkov\_Al3x](https://community.dynatrace.com/u/Romanenkov_Al3x)\
**Post date:** [October 8, 2024, 5:42am UTC](https://community.dynatrace.com/t/use-the-dynatrace-export-utility-with-terraform-workflows/39510/5 "2024-10-08T05:42:34Z")

</div>

Thanks for sharing!

Dynatrace provider for Terraform&nbsp;😍

 ![Romanenkov_Al3x_0-1728366392706.png](https://global.discourse-cdn.com/dynatrace/original/2X/f/f5eb9e27028a569ebf9d2416294d9ceccae257b8.png)

 ![Romanenkov_Al3x_2-1728366432718.png](https://global.discourse-cdn.com/dynatrace/original/2X/e/e9b140313b000c029f8c306d5e7cb69ea5a7bd82.png)

I would like to take a moment to express my heartfelt gratitude to this terraform provider. They have been an invaluable tool in assisting me with the transfer of a significant number of metrics and dashboards from one cluster to another, effectively moving everything between different environments. This provider made a complex process much smoother.

Regards,

Alex Romanenkov

---

<div class="post-metadata">

**Author:** ![AlainD](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@AlainD](https://community.dynatrace.com/u/AlainD)\
**Post date:** [October 9, 2024, 12:20pm UTC](https://community.dynatrace.com/t/use-the-dynatrace-export-utility-with-terraform-workflows/39510/6 "2024-10-09T12:20:43Z")

</div>

Hi,

Yes I did, using C:\Local\Dynatrace\Terraformv2\.terraform\providers\registry.terraform.io\dynatrace-oss\dynatrace\1.68.1\windows\_386\terraform-provider-dynatrace\_v1.68.1.exe cause this error.

---

<div class="post-metadata">

**Author:** ![Fin\_Ubels](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fin_ubels/32/18008_2.png) [@Fin\_Ubels](https://community.dynatrace.com/u/Fin_Ubels)\
**Post date:** [October 9, 2024, 9:47pm UTC](https://community.dynatrace.com/t/use-the-dynatrace-export-utility-with-terraform-workflows/39510/7 "2024-10-09T21:47:58Z")

</div>

Hey AlainD,

In step 3 of the tutorial I linked it adds -export to the end of the command. Under that there are also a bunch of export examples with descriptions of what each do. Directly invoking the exe without -export will result in the error you’re experiencing as seen below.

 ![Fin_Ubels_0-1728510330148.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/8/f8fd9c0fbf3682999023929ac1a4ece0af8151a7.png)

---

<div class="post-metadata">

**Author:** ![AlainD](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@AlainD](https://community.dynatrace.com/u/AlainD)\
**Post date:** [October 10, 2024, 1:57pm UTC](https://community.dynatrace.com/t/use-the-dynatrace-export-utility-with-terraform-workflows/39510/8 "2024-10-10T13:57:21Z")

</div>

As simple as that ! Thanks

---

<div class="post-metadata">

**Author:** ![adam\_gardner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/adam_gardner/32/20087_2.png) [@adam\_gardner](https://community.dynatrace.com/u/adam_gardner)\
**Post date:** [October 21, 2024, 6:09am UTC](https://community.dynatrace.com/t/use-the-dynatrace-export-utility-with-terraform-workflows/39510/9 "2024-10-21T06:09:32Z")

</div>

For other readers, if this interests you, you may also be interested in “wrapping” Terraform “in” crossplane and thus having auto-reconciling config as code:&nbsp;[1. About - Dynatrace Observability Lab: Automated Dynatrace Configuration as Code with Crossplane](https://dynatrace.github.io/demo-crossplane/)
