User and Team Management

The Shipa provider for Terraform allows you to manage both teams and user provisioning on Shipa directly from Terraform.

Creating Teams

terraform {
  required_providers {
    shipa = {
      version = "0.0.13"
      source = "shipa-corp/shipa"
    }
  }
}

provider "shipa" {
  host = "http://target.shipa.cloud:80"
  token = "<your-shipa-token>"
}

resource "shipa_team" "team" {
  team {
    name = "terraform-team"
    tags = ["dev", "sandbox"]
  }
}

Top-Level Attributes

ComponentDescriptionType
resourceshipa_team is Shipa's Terraform component for managing teams.string
teamThe team definitions used by Shipa when creating the team

Team

ComponentDescriptionType
nameThe name that should be assigned to the team.

Required: Yes
string
tagsTags that should be assigned to the team being created.

Required: No
string

Creating Users

terraform {
  required_providers {
    shipa = {
      version = "0.0.13"
      source = "shipa.io/terraform/shipa"
    }
  }
}

provider "shipa" {}

resource "shipa_user" "tf" {
  email = "[email protected]"
  password = "terraform"
}

Component Attributes

ComponentDescriptionType
resourceshipa_user is Shipa's Terraform component for managing users.string
emailThe email of the user. This will be the user's login credential.

Required: Yes
string
passwordThe password for the user. This will be the user's password credential.

Required: Yes
string