Teams on Digital Ocean are very recent and there is no documentation about using them with Terraform.
All information I can found is how to work with them manually.
I was hoping that I could say something like:
resource "digitalocean_droplet" "host" {
image = "${var.image}"
name = "${var.host_name}"
region = "${var.region}"
size = "${var.size}"
private_networking = "${var.private_networking}"
ssh_keys = ["${var.ssh_fingerprint}"]
team = "${var.team}"
}
Note the team = "${var.team}" at the end.
Since Terraform is just a wrapper on the top of the provider APIs I looked at the documentation trying to find some endpoint of field about this but found nothing.
How should I use Digital Ocean teams with Terraform? Or I am stuck with the main account if I want to automate things with Terraform?