» tfe_team_member

Add or remove a user from a team.

» Example Usage

Basic usage:

resource "tfe_team" "test" {
  name         = "my-team-name"
  organization = "my-org-name"
}

resource "tfe_team_member" "test" {
  team_id  = "${tfe_team.test.id}"
  username = "sander"
}

» Argument Reference

The following arguments are supported:

  • team_id - (Required) ID of the team.
  • username - (Required) Name of the user to add.

» Import

A team member can be imported; use <TEAM ID>/<USERNAME> as the import ID. For example:

terraform import tfe_team_member.test team-47qC3LmA47piVan7/sander