Skip to content
This repository was archived by the owner on Jun 28, 2019. It is now read-only.

teraken0509/datadog-terraformer

Repository files navigation

This Repository has been archived and merge to GoogleCloudPlatform/terraformer

datadog-terraformer

Export existing Datadog resources to HCL

Build Status

Installing the CLI

MacOS X with Homebrew

brew install kterada0509/tap/datadog-terraformer

Download Packages

Download from releases page.

Supported Resources

Usage

Export Monitor Configuration
datadog-terraformer monitor [monitorID]

e.g.

  • command

    $ datadog-terraformer monitor 123456789
    
  • output

    resource "datadog_monitor" "monitor_123456789" {
        name               = "sample monitor"
        type               = "query alert"
        message            = "sample message"
    
        query = "sample query"
    
        ...
    
        tags = [
            "sample",
        ]
    }
    
Export Timeboard Configuration
datadog-terraformer timeboard [dashboard id]

e.g.

  • command

    $ datadog-terraformer timeboard 123456789
    
  • output

    resource "datadog_timeboard" "timeboard_123456789" {
        title       = "Sample Dashboard"
        description = "sample dashboard"
        read_only   = true
    
    
        graph {
            title = "Sample Graph"
            viz   = "timeseries"
            request {
                q    = "query1"
                type = "line"
    
            }
            request {
                q    = "query2"
                type = "line"
    
            }
            request {
                q    = "query3"
                type = "line"
    
            }
    
        }
    
        ...
    
    }
    
Export User Configuration
datadog-terraformer user [dashboard user handler]

e.g.

License

Datadog Terraformer is released under the Apache 2.0 license. See LICENSE.txt

About

Merge to GoogleCloudPlatform/terraformer

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors