cloudflare-terraform-import

command module
v0.0.0-...-4b40c29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2019 License: MIT Imports: 1 Imported by: 0

README

No longer maintained, there is an official Cloudflare importer tool to import existing resources into terraform.

quick'n dirty cloudflare to terraform importer for DNS records

(Only tested with A, CAA, CNAME, MX, TXT records so far)

build & run

Requires Go >= 1.11

$ git clone git@github.com:emgag/cloudflare-terraform-import.git
$ go get && make
$ export CF_API_EMAIL="user@example.org" 
$ export CF_API_KEY="..."
$ ./cti import example.org
  • Copy contents of import.tf to your terraform config.
  • Review
  • Run import.sh to import records into state

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL