Terraform export

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

Hi Abner,

Depending on what version of Dynatrace (SaaS, Managed) you are using you will need to set this up dt_env_url:

  • Managed: https://{environmentid}.live.dynatrace.com/
  • SaaS: https://{environmentid}.live.dynatrace.com

In the next step, generate the appropriate token with below 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:

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

Radek

DYNATRACE_ENV_URL is the URL for your Environment:

https://{your-domain}/e/{your-environment-id}/e/{env_id}