Skip to content
/ tfz53 Public
forked from carlpett/tfz53

Convert a BIND zonefile to Terraform resource definitions for Google Cloud DNS

Notifications You must be signed in to change notification settings

vfiset/tfz53

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disclaimer

This is a quick and dirty adaptation of tfz53 to manage Cloud DNS zones instead of Route 53. Tests were not adapted and are completely broken.

The legacy-syntax switch has also been completly ignored untested in this version.

bind_zone_to_tf_gcp

A conversion utility for creating Terraform resource definitions for Google Cloud DNS from BIND zonefiles.

Installation

Download the latest release.

Usage

bind_zone_to_tf_gcp -domain <domain-name> [flags] > gcp-domain.tf

Flags

Name Description Default
-domain Name of domain. Required.
-zone-file Path to zone file. Optional. <domain>.zone
-exclude Record types to ignore, comma-separated. Optional. SOA,NS
-skip-zone-creation Do not create the zone itself, only records false

Building

If you want to build from source, you will first need the Go tools. Instructions for installation are available from the documentation.

Once that is done, run

go get github.com/vfiset/bind_zone_to_tf_gcp
cd $GOPATH/src/github.com/vfiset/bind_zone_to_tf_gcp
go build

You should now have a finished binary.

This project uses dep to manage external dependencies. See the Github repo for more information.

About

Convert a BIND zonefile to Terraform resource definitions for Google Cloud DNS

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 90.2%
  • Makefile 9.8%