vault_audit

Example Usage (file audit device)

resource "vault_audit" "test" {
  type = "file"

  options = {
    file_path = "C:/temp/audit.txt"
  }
}

Example Usage (socket audit device)

resource "vault_audit" "test" {
  type  = "socket"
  path  = "app_socket"
  local = false

  options = {
    address     = "127.0.0.1:8000"
    socket_type = "tcp"
    description = "application x socket"
  }
}

Argument Reference

The following arguments are supported:

For a reference of the device types and their options, consult the Vault documentation.

Attributes Reference

No additional attributes are exported by this resource.

Import

Audit devices can be imported using the path, e.g.

$ terraform import vault_audit.test syslog