Skip to main content

conveyor_project_tags (Resource)

Assigns tags to a project.

Example Usage

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

resource "conveyor_tag" "test" {
name = "my_tag"
description = "some tag description"
color = "blue"
}

resource "conveyor_project_tags" "dev_tags" {
project_id = conveyor_project.dev.id
tags = [conveyor_tag.test.id]
}

Schema

Required

  • project_id (String) The id of the project to add the tags to.
  • tags (List of String) The list of tags for the project.

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_tags.dev_tags "$PROJECT_ID"