cthu1hoo / bind-to-terraform

Imports BIND9 zone files to Terraform (hashicorp/dns)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Imports BIND9 zone files to Terraform (hashicorp/dns)

Generates both configuration snippets and import commands. For now, only supports A, CNAME, and TXT records.

Usage:

Generate Terraform configuration file:

./bind_to_terraform.py db.example example.com | tee zones.tf

Import existing resources into state file:

grep '# terraform import' zones.tf | sed 's/# //' | sh -

Adjust as necessary.

About

Imports BIND9 zone files to Terraform (hashicorp/dns)


Languages

Language:Python 100.0%