Skip to main content

conveyor_project_user (Resource)

Links a user to a Conveyor project.

Example Usage

resource "conveyor_project" "my_project" {
name = "my_project"
}

resource "conveyor_project_user" "my_project_user" {
project_id = conveyor_project.my_project.id
user_id = "test@gmail.com"
role = "admin"
}

Schema

Required

  • project_id (String) The id of the project to add the user to.
  • role (String) The role the user should have on the project, either admin or contributor.
  • user_id (String) The email address of the user to add.

Read-Only

  • id (String) The ID of this resource.

Import

Import is supported using the following syntax:

export PROJECT_ID=$(conveyor project get --name my_project -ojson | jq -r ".id")
terraform import conveyor_project_user.my_project_user "$PROJECT_ID"/test@gmail.com