# Terraform export

**URL:** <https://community.dynatrace.com/t/terraform-export/38918>\
**Category:** Open Q&A\
**Tags:** terraform\
**Created:** [March 21, 2023, 4:18am UTC](https://community.dynatrace.com/t/terraform-export/38918 "2023-03-21T04:18:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abnerlusung](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@abnerlusung](https://community.dynatrace.com/u/abnerlusung)\
**Post date:** [March 21, 2023, 4:18am UTC](https://community.dynatrace.com/t/terraform-export/38918/1 "2023-03-21T04:18:37Z")

</div>

Hi all,

I have setup my environment variables:

DYNATRACE\_ENV\_URL

DYNATRACE\_API\_TOKEN

DYNATRACE\_ENV\_URL

After running my command:

terraform-provider-dynatrace\_v1.23.0.exe -export dynatrace\_mobile\_application

I’m getting this lines

Post-Processing Resources…

exec: not started

I have Windows 10, 64 bit.

I downloaded the 1.23.0\_windows\_amd64

Any ideas how to troubleshoot ?

Regards,

Abner

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [March 21, 2023, 9:07am UTC](https://community.dynatrace.com/t/terraform-export/38918/2 "2023-03-21T09:07:49Z")

</div>

Hi Abner,

Depending on what version of Dynatrace (SaaS, Managed) you are using you will need to set this up&nbsp;dt\_env\_url:

- Managed:&nbsp;https://{environmentid}.live.dynatrace.com/
- SaaS:&nbsp;https://{environmentid}.live.dynatrace.com

In the next step, generate the appropriate token with below&nbsp;permissions:

- Read configuration
- Capture request data
- Read SLO
- Read settings
- Read API tokens
- Read entities
- Read Geographic regions
- Read network zones
- Read synthetic locations
- Read synthetic monitors, locations, and nodes
- Capture request data
- Read credential vault entries
- Access problem and event feed, metrics and topology
- Read synthetic monitors, locations, and nodes
- Write settings
- Write API tokens
- Write entities
- Write network zones
- Write SLO
- Write synthetic locations
- Write credential vault entries
- Change data privacy settings
- Create and read synthetic monitors, locations
- Write configuration

Example of provider configuration:

```auto
provider "dynatrace" {
    dt_env_url = "https://{environmentid}.live.dynatrace.com"
    dt_api_token = "################"
}

```

Radek

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [March 21, 2023, 9:09am UTC](https://community.dynatrace.com/t/terraform-export/38918/3 "2023-03-21T09:09:52Z")

</div>

DYNATRACE\_ENV\_URL is the URL for your Environment:

https://{your-domain}/e/{your-environment-id}/e/{env\_id}
