terraformify

command module
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 1 Imported by: 0

README

terraformify

An experimental CLI that generates Terraform files for managing existing Fastly services.

[!IMPORTANT] Known Issue: Incompatibility with Terraform 1.4.6 and Later
terraformify is not compatible with Terraform versions 1.4.6 and later because of changes in the Terraform binary. Please use terraformify with Terraform version 1.4.5 or earlier. For more information, see the issue at https://github.com/hrmsk66/terraformify/issues/49.

Installation / Upgrade

go install github.com/hrmsk66/terraformify@latest

Alternatively, download the prebuild binary from the latest release.

Configuration

terraformify requires read access to your Fastly resources. Choose one of the following options to give terraformify access to your API token:

  • Include the token explicitly on each command you run using the --api-key or -k flags.
  • Set a FASTLY_API_KEY environment variable.

Usage

Run terraformify command in an empty directory or in an existing TF directory.

[!IMPORTANT] Executing the command within a directory containing existing TF files will alter the current state file and may modify other files (notably variables.tf and terraform.tfvars). It's advisable to back up your TF files before importing a new service.

Importing VCL Service
terraformify service vcl <service-id>
Importing Compute Service

For Compute services, provide the service ID and the path to the WASM package as arguments:

terraformify service compute <service-id> -p <path-to-package>

For more detailed usage instructions, including available flags and commands, see the Usage Documentation.

Supported Resources

terraformify supports the import of both Compute and VCL services, along with their associated resources. The following resources are supported:

Supported Resources for VCL
Supported Resources for Compute

License

MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
cli

Jump to

Keyboard shortcuts

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