🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

github.com/promiseofcake/datadog-fetch-hcl

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/promiseofcake/datadog-fetch-hcl

v0.0.0-20191107182513-38a55955abac
Source
Go
Version published
Created
Source

datadog-fetch-hcl

Tool to fetch Datadog Dashboards and output an HCL representation of them to stdout.

Useful for managing Dashboard state in: TerraForm

installation

go get github.com/promiseofcake/datadog-fetch-hcl

usage

Ensure your Datadog API / APP keys are exported

export DATADOG_API_KEY=foo
export DATADOG_APP_KEY=bar

Run via the following, you can redirect to a .tf file as you wish.

datadog-fetch-hcl -id <dashboard id> -title <resource title>

limitations

Hackery:

  • Resource title is passed in via CLI, not pulled from the remote dashboard (due to HCL encoder limitations)

Missing features:

  • Datadog events overlays
  • Precision / Aggreation metrics
  • Probably lots else

FAQs

Package last updated on 07 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts