Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enabled parameter for Plugin API #39

Closed
posquit0 opened this issue Sep 13, 2018 · 3 comments
Closed

enabled parameter for Plugin API #39

posquit0 opened this issue Sep 13, 2018 · 3 comments

Comments

@posquit0
Copy link
Contributor

Hi there,

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.

Terraform Version

$ terraform -v
Terraform v0.11.8
+ provider.kong v1.7.0

Affected Resource(s)

Please list the resources as a list, for example:

  • kong_plugin

Terraform Configuration Files

resource "kong_plugin" "plugin-bot-detection" {
  name = "bot-detection"
  enabled = true
  config = {
    # A comma separated array of regular expressions
    # The regular expressions will be checked against the User-Agent header
    whitelist = ""
    blacklist = ""
  }
}

Expected Behavior

enabled parameter exists in the official documentation.

Actual Behavior

$ terraform apply

Error: kong_plugin.plugin-bot-detection: : invalid or unknown key: enabled
@kevholditch
Copy link
Owner

not going to support this as you can just remove the plugin in terraform if you want to turn it off. It is enabled by default

@posquit0
Copy link
Contributor Author

Hope to support this still. With this support, we can dynamically control kong plugin with Terraform interpolation feature.

@posquit0
Copy link
Contributor Author

@kevholditch I want to hear your opinion. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants