webbankir / terraform-provider-apisix

Terraform provider for Apisix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-provider-apisix

!!!no longer supported by me !!!

Only from 2.11.0

Don't use without next hook. Docs

local apisix = require("apisix")
local core = require("apisix.core")

local old_http_init = apisix.http_init
apisix.http_init = function(...)

    local old_core_table_path = core.table.patch
    core.table.patch = function(node_value, sub_path, conf)
        if sub_path == "__patch_terraform_plugin_apisix__" then
            return old_core_table_path(conf, "", conf)
        else
            return old_core_table_path(node_value, sub_path, conf)
        end
    end

    old_http_init(...)
end

About

Terraform provider for Apisix


Languages

Language:Go 92.6%Language:Lua 6.6%Language:Makefile 0.8%