/datadog-to-terraform

Converts Datadog monitor JSON into Terraform alarm code.

Primary LanguageJavaScriptMIT LicenseMIT

Datadog to Terraform Converter

Converts Datadog monitor JSON into Terraform alarm code.

Installation

Chrome Extension | Firefox Add-on

How to Use

  1. Create your monitor (but don't save) in the Datadog UI and copy the monitor JSON.
  2. Open the extension, fill in the resource name and paste in the monitor JSON.
  3. Paste the resulting code into your terraform file and run terraform fmt (you can automate this with editor plugins)

And that's it.

Click to enlarge:


Contributing

We'd love for folks to contribute! Feel free to add your own ideas or take a look at the issues for inspiration. The Contributing Guide explains development setup and the release process.