nomad_plugin

Lookup a plugin by ID. The aim of this datasource is to determine whether a particular plugin exists on the cluster, to find information on the health and availability of the plugin, and to optionally wait for the plugin before performing actions the require an available plugin controller.

If a plugin with the specified ID does not exist and the datasource is not configured to wait, it will result in an error. For simple existence checks, use the nomad_plugins listing datasource.

Example Usage

Check for the existence of a plugin:

data "nomad_plugin" "ebs" {
  plugin_id        = "aws-ebs0"
  wait_for_healthy = true
}

This will check for a plugin with the ID aws-ebs0, waiting until the plugin is healthy before returning.

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported: