This Repository has been archived and merge to GoogleCloudPlatform/terraformer
Export existing Datadog resources to HCL
brew install kterada0509/tap/datadog-terraformer
Download from releases page.
- datadog_monitor
- datadog_integration_aws
- datadog_integration_gcp
- datadog_metric_metadata
- datadog_screenboard
- datadog_synthetics_test
- datadog_timeboard
- datadog_user
- datadog_downtime
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.
-
command
$ datadog-terraformer user [email protected] -
output
resource "datadog_user" "user_handle" { disabled = false email = "[email protected]" handle = "[email protected]" name = "Test user" //Deprecated is_admin = false }
Datadog Terraformer is released under the Apache 2.0 license. See LICENSE.txt