Try it free

Configuration as Code via Terraform overview

  • Latest Dynatrace
  • Explanation
  • 2-min read

Dynatrace offers a dedicated Terraform provider to manage your monitoring environment.

Terraform overview

Terraform, by HashiCorp, is a widely adopted Infrastructure-as-Code (IaC) tool.

The Dynatrace Terraform provider is a library that allows you to use the Terraform syntax and functionalities to create a custom configuration (resource), such as a Dynatrace dashboard, workflow, or custom alert.

Additionally, it provides data sources such as the entity ID of a service detected by Dynatrace. The Dynatrace Terraform provider allows you to pull information from these data sources into Dynatrace.

Advantages of using the Dynatrace Terraform Provider

  • No manual edits in production.
  • Scale configs via teams and stages.
  • Keep configs or environments in sync.
  • Recreate configs (e.g., for purposes of disaster recovery).
  • Elevate Terraform features such as loops.
  • Group components in modules for reusability.
  • Team onboarding for building new apps and templating.

Steps

  • To install Terraform CLI, see Install Terraform CLI and set up Configuration as Code via Terraform.

  • Optional Migrate configurations between environments and export existing configurations from your environment. For more information, see Migrate between different environments using Terraform and Terraform CLI commands.

Learn more

Official Terraform documentation:

  • Terraform Documentation
  • Terraform Tutorials

Further Dynatrace documentation and material:

  • GitHub Repository: terraform-provider-dynatrace
  • Terraform Registry: Dynatrace Terraform Provider
Getting Started with Dynatrace Terraform