cloudflare/cf-terraforming — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a small command line tool in Go that helps me take existing Cloudflare setup and turn it into Terraform files, so I can start managing what I already have without writing everything by hand. I want it to connect to the Cloudflare API with either an API token or an email and API key, and it should also read those from environment variables or a simple config file.

It should have a generate command that outputs valid Terraform configuration for the Cloudflare resource types I ask for, scoped by zone or account when needed. Some resources need specific IDs, so let me pass those in too. I also want an import command that can either print normal Terraform import commands or modern import blocks for newer Terraform versions.

Please make the tool friendly to use from a terminal, with clear help text and sensible flags, and let me point it at an existing Terraform working directory or binary if needed. Look up current Cloudflare and Terraform docs online if you need to.

Want more depth? Deep Reverse