Skip to content

Instantly share code, notes, and snippets.

View ZimbiX's full-sized avatar

Brendan Weibrecht ZimbiX

  • Melbourne, Australia
  • 00:35 (UTC +11:00)
  • X @ZimbiX
View GitHub Profile
@ZimbiX
ZimbiX / tf-dd-prov-imp2tf.py
Last active April 9, 2018 01:23 — forked from htnosm/tf-dd-prov-imp2tf.py
Convert tfstate to tf for datadog_monitor on Terraform Datadog Provider
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import sys
import codecs
sys.stdout = codecs.getwriter('utf8')(sys.stdout)
f = open('terraform.tfstate', 'r')
data = json.load(f)