Socket
Socket
Sign inDemoInstall

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


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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc