Ignitify.dev
ignitify_group
Terraform

ignitify_group

A group of the tenant: a named set of permissions and the users that get them. Needs an owner key.

Example

access.tf
resource "ignitify_group" "deployers" {
  name        = "deployers"
  permissions = ["tasks.read", "tasks.write", "deployments.read", "deployments.write"]
  members     = [ignitify_user.ci.name]
}

Arguments and attributes

NameTypeUseMeaning
nameStringRequiredforces replacement · import idThe group name, unique in the tenant. 1 to 63 lower case letters, digits and -, starting with a letter or digit.
permissionsSet of StringRequiredThe permissions the group grants. At least one, from the list below.
membersSet of StringOptionalThe user names in the group. Empty when you do not set it, so a member added outside Terraform shows as drift.
created_atStringRead-onlyWhen the group was created (ISO 8601).
resource_idStringRead-onlyThe server id of the group.

Permissions

A group may grant these permissions, and no others. An unknown name is refused at plan time. schedules.read and schedules.write need provider 0.5.0 or later.

PermissionAllows
tasks.readRead tasks.
tasks.writeCreate and delete tasks. A delete also deletes the task's deployments, runs, hooks and recurring schedules.
deployments.readRead deployments and build logs.
deployments.writeDeploy, delete a deployment, ask for package advice.
runs.readRead runs, logs, timeline, failures and VMs.
runs.writeStart, cancel, delete runs; stop VMs.
secrets.readList secret names. A value is never readable.
secrets.writeSet and delete secrets.
hooks.readList the hooks of a task and read one hook.
hooks.writeCreate and delete hooks; set the notify callback. A hook can start runs.
schedules.readList schedules and read one schedule.
schedules.writeCreate, edit, pause, resume and delete schedules; a run at a later time also needs it. A schedule starts runs later and outlives the key that made it.
usage.readRead usage, series and notifications.

Behaviour

  • The group owns both lists. A grant or a member added outside Terraform shows as drift, and the next apply removes it.
  • A member must be an existing user. Refer to ignitify_user.ci.name and Terraform creates the user first.

Import

The import id is the group name.

terminal
$ terraform import ignitify_group.deployers deployers