Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

emgag/cloudflare-terraform-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published