Documentation/Terraform Provider

Terraform Provider

Manage redirects as infrastructure-as-code.

Provider Configuration

terraform {
  required_providers {
    redirectflow = {
      source  = "redirectflow/redirectflow"
      version = "~> 1.0"
    }
  }
}

provider "redirectflow" {
  api_key = var.redirectflow_api_key
}

Resource Example

resource "redirectflow_redirect" "example" {
  website_id  = "abc123"
  source      = "/old-page"
  destination = "/new-page"
  status_code = 301
  enabled     = true
}

Available Resources

  • redirectflow_website - Manage websites
  • redirectflow_redirect - Manage redirects
  • redirectflow_group - Manage redirect groups

Coming Soon: Terraform provider is currently in development. Contact us for early access.