Resource: auth0_rule_config

With Auth0, you can create custom Javascript snippets that run in a secure, isolated sandbox as part of your authentication pipeline, which are otherwise known as rules. This resource allows you to create and manage variables that are available to all rules via Auth0's global configuration object. Used in conjunction with configured rules.

Example Usage

resource "auth0_rule" "my_rule" {
  name    = "empty-rule"
  script  = <<EOF
    function (user, context, callback) {
      callback(null, user, context);
    }
  EOF
  enabled = true
}

resource "auth0_rule_config" "my_rule_config" {
  key   = "foo"
  value = "bar"
}
    function (user, context, callback) {
      callback(null, user, context);
    }
  EOF
  enabled = true
}

resource "auth0_rule_config" "my_rule_config" {
  key   = "foo"
  value = "bar"
}

Schema

Required

Read-Only

Import

Import is supported using the following syntax:

# Existing rule configs can be imported using their key name.
#
# Example:
terraform import auth0_rule_config.my_rule_config "foo"