Skip to content

stackit_dremio_instance with azuread auth #1571

Description

@ttekampe-mm

Description

I deployed a stackit_dremio_instance with local auth only using terraform.
Later I tried to add entra ID auth with terraform.

Steps to reproduce

First:

resource "stackit_dremio_instance" "example" {
  project_id   = "my_project_id"
  region       = "eu01"
  display_name = "test"
  description  = "Eine Test instanz"
  authentication = {
    type = "local-only" 
  }
}

Then

resource "stackit_dremio_instance" "example" {
  project_id   = "my_project_id"
  region       = "eu01"
  display_name = "test"
  description  = "Eine Test instanz"
  authentication = {
    type = "azuread"
    azuread = {
      authority_url = "https://login.microsoftonline.com/${var.entra_tenant_id}"
      client_id     = ${var.client_id}
      client_secret = ${var.client_secret}
    }
  }
}

Actual behavior

The apply failed with the error:

 Calling API: no value given for required property clientSecret, status code 200, Body:

Now every plan, apply and destroy fails with the same error.
Looking at the stackit portal, the auth parameters have been added to the dremio instance though.
However, when I try to access the dremio webui, I can only log in with the local credentials, not with entra id.

Expected behavior

Apply should succeed and I should be able to log in to dremio with my entra credentials

Environment

  • OS: WSL

Terraform v1.15.6
on linux_amd64

  • provider registry.terraform.io/hashicorp/azuread v3.9.0
  • provider registry.terraform.io/hashicorp/azurerm v4.64.0
  • provider registry.terraform.io/stackitcloud/stackit v0.101.0

Additional information

Feel free to add any additional information here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions