Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
0ec71dc
Add create instance functionality
May 5, 2026
799f873
Add Read update delete func for mlflow instance
May 6, 2026
f355865
Add mlflow instance token resource
May 6, 2026
e98dc3e
Removed unnecessary boxing
May 6, 2026
6c2ac84
fix bugs in mlflow api
May 7, 2026
e0217f7
Improve create update payload mapping
May 8, 2026
921d56f
Improve conversion in token update payload method
May 8, 2026
0adb7ea
Add unit tests
May 8, 2026
94e5c35
Add acc test
May 8, 2026
e4037cc
Fix bug with bucket_name mapping
May 8, 2026
8ba5d7e
Add instance token to acc test
May 11, 2026
f6a0b49
Fix lining
May 11, 2026
295445a
Fix test
May 11, 2026
8d7c16c
Add documentation
May 11, 2026
ce321c2
Change sdk clients to DefaultAPI
May 11, 2026
147de51
Add some mocks and test_utils
May 11, 2026
07be756
Add unit test
May 12, 2026
422a145
Remove ginkgo testing framework
May 12, 2026
5b331aa
Add update unit test
May 12, 2026
2bde803
Add instance unit tests
May 13, 2026
f345a9f
Add unit tests
May 13, 2026
82e0d85
Fix linting & remove testify framework
May 13, 2026
1e336b5
feat: Change wait handler to public go sdk
Jun 25, 2026
c220f0f
feat: refractor unit tests and resources
Jun 25, 2026
dcafae4
feat: adapt to new serviceEnablementUtils
Jun 25, 2026
e03d6af
feat: remove "unknown" resource state in creation
Jun 26, 2026
55759f5
feat(mexp): refractor tests and resources
Jun 26, 2026
eb5231b
chore(mexp): add docs and fix tests
Jun 29, 2026
41e3b7a
chore(mexp): fix description.md
Jun 29, 2026
a71cd85
chore(mexp): fix docs
Jun 30, 2026
ed019fd
chore(mexp): incorporate feedback
Jul 14, 2026
8daba46
chore(mexp): include token feedback
Jul 14, 2026
a550847
chore(mexp): incorporate feedback
Jul 15, 2026
d5b2337
chore(mexp): correct token scheme description
Jul 15, 2026
77f00bd
chore(mexp): remove state deletion in update
Jul 15, 2026
8b51fc7
chore(mexp): update docs
Jul 15, 2026
3ae6e47
chore(mexp): Add mapLabels func
Jul 20, 2026
8bfacf1
chore(mexp): incorporate feedback
Jul 22, 2026
a4cd3c8
chore(mexp): add note to test
Jul 22, 2026
f8238e2
chore(mexp): incorporate feedback
Jul 22, 2026
5d1dbf5
chore(mexp): update example
Jul 23, 2026
4b603fa
chore(mexp): add comments
Jul 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions docs/data-sources/modelexperiments_instance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "stackit_modelexperiments_instance Data Source - stackit"
subcategory: ""
description: |-
Datasource scheme for a STACKIT AI Model Experiments instance.
---

# stackit_modelexperiments_instance (Data Source)

Datasource scheme for a STACKIT AI Model Experiments instance.

## Example Usage

```terraform
data "stackit_modelexperiments_instance" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
region = "eu01"
instance_id = "example-instance-id"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `instance_id` (String) The AI Model Experiments instance ID.
- `project_id` (String) STACKIT Project ID to which the resource is associated.

### Optional

- `region` (String) The STACKIT region name the resource is located in. If not defined, the provider region is used.

### Read-Only

- `bucket_name` (String) The object storage bucket name of the AI Model Experiments instance.
- `deleted_experiment_retention` (String) The deleted experiment retention time of the AI Model Experiments instance.
- `description` (String) The description is a longer text chosen by the user to provide more context for the resource.
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`region`,`instance_id`".
- `labels` (Map of String) A map of arbitrary key/value pairs that can be attached to the resource
- `name` (String) The display name is a short name chosen by the user to identify the resource.
- `url` (String) The Dashboard URL of the AI Model Experiments instance.
43 changes: 43 additions & 0 deletions docs/data-sources/modelexperiments_token.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "stackit_modelexperiments_token Data Source - stackit"
subcategory: ""
description: |-
Datasource scheme for a STACKIT AI Model Experiments instance tokens.
---

# stackit_modelexperiments_token (Data Source)

Datasource scheme for a STACKIT AI Model Experiments instance tokens.

## Example Usage

```terraform
data "stackit_modelexperiments_token" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
region = "eu01"
instance_id = "example-instance-id"
token_id = "example-token-id"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `instance_id` (String) The AI Model Experiments instance ID.
- `project_id` (String) STACKIT Project ID to which the resource is associated.
- `token_id` (String) The AI Model Experiments instance token ID.

### Optional

- `region` (String) The STACKIT region name the resource is located in. If not defined, the provider region is used.

### Read-Only

- `description` (String) The description is a longer text chosen by the user to provide more context for the resource.
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`region`,`token_id`".
- `labels` (Map of String) A map of arbitrary key/value pairs that can be attached to the resource
- `name` (String) The display name is a short name chosen by the user to identify the resource.
- `valid_until` (String) The time until the AI Model Experiments instance token is valid.
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ See this [example](https://professional-service.git.onstackit.cloud/professional
- `logme_custom_endpoint` (String) Custom endpoint for the LogMe service
- `logs_custom_endpoint` (String) Custom endpoint for the Logs service
- `mariadb_custom_endpoint` (String) Custom endpoint for the MariaDB service
- `modelexperiments_custom_endpoint` (String) Custom endpoint for the AI Model Experiments service
- `modelserving_custom_endpoint` (String) Custom endpoint for the AI Model Serving service
- `mongodbflex_custom_endpoint` (String) Custom endpoint for the MongoDB Flex service
- `objectstorage_custom_endpoint` (String) Custom endpoint for the Object Storage service
Expand Down
61 changes: 61 additions & 0 deletions docs/resources/modelexperiments_instance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "stackit_modelexperiments_instance Resource - stackit"
subcategory: ""
description: |-
Manages a STACKIT AI Model Experiments instance.
---

# stackit_modelexperiments_instance (Resource)

Manages a STACKIT AI Model Experiments instance.

## Example Usage

```terraform
resource "stackit_modelexperiments_instance" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
region = "eu01"
name = "Example name"
description = "Example description"
deleted_experiment_retention = "30d"
labels = {
label = "ExampleLabel"
}
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `name` (String) The display name is a short name chosen by the user to identify the resource.
- `project_id` (String) STACKIT Project ID to which the resource is associated.

### Optional

- `deleted_experiment_retention` (String) The deleted experiment retention time of the AI Model Experiments instance.
- `description` (String) The description is a longer text chosen by the user to provide more context for the resource.
- `labels` (Map of String) A map of arbitrary key/value pairs that can be attached to the resource
- `region` (String) The STACKIT region name the resource is located in. If not defined, the provider region is used.

### Read-Only

- `bucket_name` (String) The object storage bucket name of the AI Model Experiments instance.
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`region`,`instance_id`".
- `instance_id` (String) The AI Model Experiments instance ID.
- `url` (String) The Dashboard URL of the AI Model Experiments instance.

## Import

Import is supported using the following syntax:

In Terraform v1.5.0 and later, the [` + "`" + `import` + "`" + ` block](https://developer.hashicorp.com/terraform/language/import) can be used with the ` + "`" + `id` + "`" + ` attribute, for example:

```terraform
import {
to = stackit_modelexperiments_instance.import_example
id = "${var.project_id},${var.region},${var.instance_id}"
}
```
82 changes: 82 additions & 0 deletions docs/resources/modelexperiments_token.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "stackit_modelexperiments_token Resource - stackit"
subcategory: ""
description: |-
Manages a STACKIT AI Model Experiments instance tokens.
---

# stackit_modelexperiments_token (Resource)

Manages a STACKIT AI Model Experiments instance tokens.

## Example Usage

```terraform
resource "stackit_modelexperiments_instance" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
region = "eu01"
name = "Example name"
description = "Example description"
deleted_experiment_retention = "30d"
labels = {
label = "ExampleLabel"
}
}

resource "time_rotating" "rotate" {
rotation_days = 80
}

resource "stackit_modelexperiments_token" "token" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "Example token nane"
region = "eu01"
instance_id = stackit_modelexperiments_instance.example.instance_id
description = "Example token description"
ttl_duration = "1h"
labels = {
label = "ExampleLlabel"
}
rotate_when_changed = {
rotation = time_rotating.rotate.id
}
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `instance_id` (String) The AI Model Experiments instance ID.
- `name` (String) The display name is a short name chosen by the user to identify the resource.
- `project_id` (String) STACKIT Project ID to which the resource is associated.

### Optional

- `description` (String) The description is a longer text chosen by the user to provide more context for the resource.
- `labels` (Map of String) A map of arbitrary key/value pairs that can be attached to the resource
- `region` (String) The STACKIT region name the resource is located in. If not defined, the provider region is used.
- `rotate_when_changed` (Map of String) A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- `ttl_duration` (String) The TTL duration of the AI Model Experiments instance token. E.g. 5h30m40s,5h,5h30m,30m,30s

### Read-Only

- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`region`,`token_id`".
- `token` (String, Sensitive) The content of the AI Model Experiments instance token.
- `token_id` (String) The AI Model Experiments instance token ID.
- `valid_until` (String) The time until the AI Model Experiments instance token is valid.

## Import

Import is supported using the following syntax:

In Terraform v1.5.0 and later, the [` + "`" + `import` + "`" + ` block](https://developer.hashicorp.com/terraform/language/import) can be used with the ` + "`" + `id` + "`" + ` attribute, for example:

```terraform
import {
to = stackit_modelexperiments_token.import_example
id = "${var.project_id},${var.region},${var.instance_id},${var.token_id}"
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
data "stackit_modelexperiments_instance" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
region = "eu01"
instance_id = "example-instance-id"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
data "stackit_modelexperiments_token" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
region = "eu01"
instance_id = "example-instance-id"
token_id = "example-token-id"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import {
to = stackit_modelexperiments_instance.import_example
id = "${var.project_id},${var.region},${var.instance_id}"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
resource "stackit_modelexperiments_instance" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
region = "eu01"
name = "Example name"
description = "Example description"
deleted_experiment_retention = "30d"
labels = {
label = "ExampleLabel"
}
Comment thread
paul-sffrth marked this conversation as resolved.
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import {
to = stackit_modelexperiments_token.import_example
id = "${var.project_id},${var.region},${var.instance_id},${var.token_id}"
}
29 changes: 29 additions & 0 deletions examples/resources/stackit_modelexperiments_token/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
resource "stackit_modelexperiments_instance" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
region = "eu01"
name = "Example name"
description = "Example description"
deleted_experiment_retention = "30d"
labels = {
label = "ExampleLabel"
}
}

resource "time_rotating" "rotate" {
rotation_days = 80
}

resource "stackit_modelexperiments_token" "token" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "Example token nane"
region = "eu01"
instance_id = stackit_modelexperiments_instance.example.instance_id
description = "Example token description"
ttl_duration = "1h"
labels = {
label = "ExampleLlabel"
}
rotate_when_changed = {
rotation = time_rotating.rotate.id
}
}
Comment thread
paul-sffrth marked this conversation as resolved.
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ require (
github.com/stackitcloud/stackit-sdk-go/services/logme v1.0.1
github.com/stackitcloud/stackit-sdk-go/services/logs v0.10.0
github.com/stackitcloud/stackit-sdk-go/services/mariadb v1.0.1
github.com/stackitcloud/stackit-sdk-go/services/modelexperiments v0.2.0
github.com/stackitcloud/stackit-sdk-go/services/modelserving v0.11.0
github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v1.12.0
github.com/stackitcloud/stackit-sdk-go/services/objectstorage v1.9.0
Expand All @@ -50,6 +51,7 @@ require (
github.com/stackitcloud/stackit-sdk-go/services/telemetryrouter v0.4.0
github.com/stackitcloud/stackit-sdk-go/services/vpn v0.14.0
github.com/teambition/rrule-go v1.8.2
go.uber.org/mock v0.6.0
golang.org/x/mod v0.38.0
)

Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,8 @@ github.com/stackitcloud/stackit-sdk-go/services/logs v0.10.0 h1:g7zpfQFFq3UhAWrM
github.com/stackitcloud/stackit-sdk-go/services/logs v0.10.0/go.mod h1:tvRejL8w5KpGBbLFPQ+dXOJURgZ3OMbZmwxlKQrGMuA=
github.com/stackitcloud/stackit-sdk-go/services/mariadb v1.0.1 h1:Ll1erKKms7OnFva3bRXOs9PEYLoWJp5prSg985K0glk=
github.com/stackitcloud/stackit-sdk-go/services/mariadb v1.0.1/go.mod h1:joa89Y1dyn0j22FstRcIKfW2ada3FDxNfttxSvq27uY=
github.com/stackitcloud/stackit-sdk-go/services/modelexperiments v0.2.0 h1:4cM9P38lQkJRtz0ZdDRhMam/J2rlL0m3sa1JBcIPcdc=
github.com/stackitcloud/stackit-sdk-go/services/modelexperiments v0.2.0/go.mod h1:TW2PYG0kSrfAos3yY8wUxDem0J9ZYSXulnbzBZ4BTaE=
github.com/stackitcloud/stackit-sdk-go/services/modelserving v0.11.0 h1:LfcQ++Z8a13jrJ5NOaCY/hwToh/e+QJj0eS6rd6s6k8=
github.com/stackitcloud/stackit-sdk-go/services/modelserving v0.11.0/go.mod h1:u7T85YqoqncJevbPU1ODKthbmxxEh1zw+bVaAO8v0Sg=
github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v1.12.0 h1:SVd3WMmLAE0Jxk2SaRuM85DTOOXHycyMpZGx9vzqNkI=
Expand Down Expand Up @@ -843,6 +845,8 @@ go.opentelemetry.io/otel/trace v1.43.0 h1:BkNrHpup+4k4w+ZZ86CZoHHEkohws8AY+WTX09
go.opentelemetry.io/otel/trace v1.43.0/go.mod h1:/QJhyVBUUswCphDVxq+8mld+AvhXZLhe+8WVFxiFff0=
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
go.uber.org/mock v0.6.0 h1:hyF9dfmbgIX5EfOdasqLsWD6xqpNZlXblLB/Dbnwv3Y=
go.uber.org/mock v0.6.0/go.mod h1:KiVJ4BqZJaMj4svdfmHM0AUx4NJYO8ZNpPnZn1Z+BBU=
go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ=
go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=
Expand Down
1 change: 1 addition & 0 deletions stackit/internal/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ type ProviderData struct {
MariaDBCustomEndpoint string
MongoDBFlexCustomEndpoint string
ModelServingCustomEndpoint string
ModelExperimentsCustomEndpoint string
ObjectStorageCustomEndpoint string
ObservabilityCustomEndpoint string
OpenSearchCustomEndpoint string
Expand Down
Loading
Loading