<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Best Resources to Target with Terraform in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Best-Resources-to-Target-with-Terraform/m-p/300559#M39164</link>
    <description>&lt;P&gt;We are beginning our adoption/ implementation of Dynatrace and before we're in too deep we want to try to capture some low hanging fruit with IaC. We're trying to greenfield as much as possible, at the same time we're also trying to invest heavily in using Terraform where it makes the most sense. Being brand new to Dynatrace we don't have that tribal knowledge that'd tell us what should be managed via IaC and what juice isn't worth the squeeze.&lt;/P&gt;&lt;P&gt;That said, we have a vague idea of a few resources to target like alerts, template/ boilerplate dashboards and IAM roles but we know there's literally hundreds of resources we can manage within Terraform.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would anyone be able to suggest what we should target first for IaC management? What we should maybe look at for Day 2 implementation and maybe what's not worth trying to manage within IaC?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jun 2026 16:23:59 GMT</pubDate>
    <dc:creator>woodchucker</dc:creator>
    <dc:date>2026-06-10T16:23:59Z</dc:date>
    <item>
      <title>Best Resources to Target with Terraform</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Best-Resources-to-Target-with-Terraform/m-p/300559#M39164</link>
      <description>&lt;P&gt;We are beginning our adoption/ implementation of Dynatrace and before we're in too deep we want to try to capture some low hanging fruit with IaC. We're trying to greenfield as much as possible, at the same time we're also trying to invest heavily in using Terraform where it makes the most sense. Being brand new to Dynatrace we don't have that tribal knowledge that'd tell us what should be managed via IaC and what juice isn't worth the squeeze.&lt;/P&gt;&lt;P&gt;That said, we have a vague idea of a few resources to target like alerts, template/ boilerplate dashboards and IAM roles but we know there's literally hundreds of resources we can manage within Terraform.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would anyone be able to suggest what we should target first for IaC management? What we should maybe look at for Day 2 implementation and maybe what's not worth trying to manage within IaC?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2026 16:23:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Best-Resources-to-Target-with-Terraform/m-p/300559#M39164</guid>
      <dc:creator>woodchucker</dc:creator>
      <dc:date>2026-06-10T16:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Best Resources to Target with Terraform</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Best-Resources-to-Target-with-Terraform/m-p/300604#M39168</link>
      <description>&lt;P&gt;Sure — I would answer like this:&lt;/P&gt;&lt;P&gt;I would start with the basic, repeatable configuration items that help establish standards across the environment:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;auto-tags,&lt;/LI&gt;&lt;LI&gt;management zones,&lt;/LI&gt;&lt;LI&gt;host naming,&lt;/LI&gt;&lt;LI&gt;process group naming,&lt;/LI&gt;&lt;LI&gt;service naming,&lt;/LI&gt;&lt;LI&gt;basic alerting profiles,&lt;/LI&gt;&lt;LI&gt;notification integrations,&lt;/LI&gt;&lt;LI&gt;optionally some baseline dashboards&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;These are good first targets for Terraform because they help standardize the environment early and avoid manual differences between applications, teams, or tenants.&lt;/P&gt;&lt;P&gt;I would not try to manage everything in Terraform from day one. Start simple: create a few baseline modules, onboard one application or one team as a pattern, validate that naming, tagging and MZs work correctly, and only then expand.&lt;/P&gt;&lt;P&gt;Once the basics are stable, you can move to a more advanced approach using modules, variables, for_each loops, multiple environments, more complex alerting, SLOs, request attributes, custom anomaly detection, dashboards per team/application, etc.&lt;/P&gt;&lt;P&gt;So my recommendation would be: start with standards and foundations first, then gradually automate the more complex configurations.&lt;BR /&gt;&lt;BR /&gt;Later, you can go one step further and start templating the configuration using variables, conditions and dynamic blocks.&lt;/P&gt;&lt;P&gt;For example, you can have a separate environment file:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# environments/prep.tfvars

environment                  = "PREP"
auto_tag_name                = "Tomek_terraform_new_template"
kubernetes_namespace_value   = ["tomek"]
synthetic_monitor_name_value = "Tomek_synthetic_new_template"
mode                         = "FULL"
external_monitor_name_value  = "Tomek-external-monitor_new_template"&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Then, inside the module, you can use conditions and dynamic rules, for example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;dynamic "rule" {
  for_each = var.synthetic_monitor_name_value != null ? [var.synthetic_monitor_name_value] : []

  content {
    type    = "ME"
    enabled = true

    attribute_rule {
      entity_type = "BROWSER_MONITOR"

      attribute_conditions {
        condition {
          key      = "BROWSER_MONITOR_TAGS"
          operator = "TAG_KEY_EQUALS"
          tag      = var.auto_tag_name
        }
      }
    }
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;This allows one module to support multiple use cases: Kubernetes, synthetic monitors, external monitors, web apps, databases, etc. You only control the behavior through variables and separate .tfvars files per environment.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2026 12:16:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Best-Resources-to-Target-with-Terraform/m-p/300604#M39168</guid>
      <dc:creator>t_pawlak</dc:creator>
      <dc:date>2026-06-11T12:16:30Z</dc:date>
    </item>
  </channel>
</rss>

