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.
A conversion utility for creating Terraform resource definitions for Google Cloud DNS from BIND zonefiles.
Download the latest release.
bind_zone_to_tf_gcp -domain <domain-name> [flags] > gcp-domain.tf
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 |
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.