Skip to content

Inconsistent behavior for creating / reading atlassian-operations_team #35

@skoenig

Description

@skoenig

Hello, I am trying to get started with this Terraform provider but ran into an issue pretty quick. I am trying to create an operations team in a JSM Cloud instance (sandbox environment) with this manifest:

terraform {

  required_providers {
    atlassian-operations = {
      source  = "registry.terraform.io/atlassian/atlassian-operations"
      version = "1.0.3"
    }
  }
}

provider "atlassian-operations" {
  cloud_id      = var.cloud_id
  domain_name   = var.domain_name
  email_address = var.email_address
  token         = var.token
}

data "atlassian-operations_user" "skoenig" {
  email_address = "[email protected]"
}

output "example" {
  value = data.atlassian-operations_user.skoenig
}
resource "atlassian-operations_team" "ops_team" {
  description     = "This is a team created by Terraform"
  organization_id = var.atlassian_organization_id
  display_name    = "Ops Team"
  team_type       = "OPEN"
  member = [
    { account_id = data.atlassian-operations_user.skoenig.account_id }
  ]
}

While the output for the user resource works as expected, I am getting an error from from the team resource creation:

╷
│ Error: Client Error
│ 
│   with atlassian-operations_team.ops_team,
│   on main.tf line 25, in resource "atlassian-operations_team" "ops_team":
│   25: resource "atlassian-operations_team" "psp_rotation_0" {
│ 
│ Unable to create team, status code: 400. Got response:
│ {"errors":[{"code":"INVALID_OR_PARAMETER_MISSING","message":"Invalid or missing parameter. Please
│ refer to the documentation."}]}

What could be the reason? The manifest follows this basic example.

If needed, I can provide more detailed logs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions