This resource allows you to create and manage access rules, to give users and/or service accounts permissions on directories.

Example Usage

resource "secrethub_access_rule" "demo_app" {
  account_name =
  dir          = "workspace/demo"
  permission   = "read"

Argument Reference

The following arguments are supported:

  • account_name - (Required) The name of the account (username or service ID) for which the permission holds.
  • dir - (Required) The path of the directory on which the permission holds.
  • permission - (Required) The permission that the account has on the given directory: read, write or admin


Access rules can be imported using the id: <path>:<account_name> e.g. path/to/dir:alice.