<?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 Dynatrace Dashboard (Grail) via terraform in Dynatrace tips</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-tips/Dynatrace-Dashboard-Grail-via-terraform/m-p/257281#M1440</link>
    <description>&lt;P&gt;Hi, this is more of a YSK. It took me sometime to get the grail(swagger) dashboard to be deployed via Terraform. I have listed down a basic code in reply.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2024 14:28:03 GMT</pubDate>
    <dc:creator>Kaayush</dc:creator>
    <dc:date>2024-09-26T14:28:03Z</dc:date>
    <item>
      <title>Dynatrace Dashboard (Grail) via terraform</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Dynatrace-Dashboard-Grail-via-terraform/m-p/257281#M1440</link>
      <description>&lt;P&gt;Hi, this is more of a YSK. It took me sometime to get the grail(swagger) dashboard to be deployed via Terraform. I have listed down a basic code in reply.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 14:28:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Dynatrace-Dashboard-Grail-via-terraform/m-p/257281#M1440</guid>
      <dc:creator>Kaayush</dc:creator>
      <dc:date>2024-09-26T14:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace Dashboard (Grail) via terraform</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Dynatrace-Dashboard-Grail-via-terraform/m-p/257282#M1441</link>
      <description>&lt;P&gt;1. Create a grail dashboard on UI and download the json.&lt;/P&gt;&lt;P&gt;2. Terraform document link:&amp;nbsp;&lt;A href="https://registry.terraform.io/providers/dynatrace-oss/dynatrace/latest/docs/resources/document" target="_blank" rel="noopener"&gt;https://registry.terraform.io/providers/dynatrace-oss/dynatrace/latest/docs/resources/document&lt;/A&gt;&lt;BR /&gt;3. provider.tf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;terraform {
    required_providers {
        dynatrace = {
            version = "~&amp;gt; 1.0"
            source = "dynatrace-oss/dynatrace"
        }
    }
}

provider "dynatrace" {
  dt_env_url   = var.dynatrace_env_url
  dt_api_token = var.dynatrace_api_token

  automation_client_id = var.automation_client_id
  automation_client_secret = var.automation_client_secret
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. variables.tf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;variable "dynatrace_env_url" {
  description = "The ENV URL for your Dynatrace environment"
  type        = string
}

variable "dynatrace_api_token" {
  description = "The API token for your Dynatrace environment"
  type        = string
  sensitive   = true
}

variable "automation_client_id" {
  description = "The client ID for automation and swagger UI dashboard"
  type        = string
}

variable "automation_client_secret" {
  description = "The client secret for automation and swagger UI dashboard"
  type        = string
  sensitive   = true
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. swagger_dashboard.tf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;resource "dynatrace_document" "alb_example_tf" {
  type    = "dashboard"
  name    = "ALB Monitoring TF"
  private = false
  content = file(format("%s/alb_monitoring.json", path.module))
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DON'T FORGET TO ADD&lt;/STRONG&gt; `private: false`, otherwise only the owner(user who created automation automation secret) can view the dashboard.&amp;nbsp;&lt;BR /&gt;You can change owner to yours by setting `owner: UUID` in resource block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 14:34:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Dynatrace-Dashboard-Grail-via-terraform/m-p/257282#M1441</guid>
      <dc:creator>Kaayush</dc:creator>
      <dc:date>2024-09-26T14:34:39Z</dc:date>
    </item>
  </channel>
</rss>

