Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
b18f51a
Add create instance functionality
May 5, 2026
4446500
Add Read update delete func for mlflow instance
May 6, 2026
e6aa8af
Add mlflow instance token resource
May 6, 2026
0e669b8
Removed unnecessary boxing
May 6, 2026
a2683b5
fix bugs in mlflow api
May 7, 2026
148f2c4
Improve create update payload mapping
May 8, 2026
65dab38
Improve conversion in token update payload method
May 8, 2026
16a6cf2
Add unit tests
May 8, 2026
85a5d3a
Add acc test
May 8, 2026
9767a5f
Fix bug with bucket_name mapping
May 8, 2026
2d3f67a
Add instance token to acc test
May 11, 2026
a8fa49f
Fix lining
May 11, 2026
d17e12c
Fix test
May 11, 2026
5cf697b
Add documentation
May 11, 2026
b699604
Change sdk clients to DefaultAPI
May 11, 2026
be28a59
Add some mocks and test_utils
May 11, 2026
9958b94
Add unit test
May 12, 2026
f4a1c7c
Remove ginkgo testing framework
May 12, 2026
f1cce93
Add update unit test
May 12, 2026
e9e9d36
Add instance unit tests
May 13, 2026
4b9e9bd
Add unit tests
May 13, 2026
398e068
Fix linting & remove testify framework
May 13, 2026
def071b
feat: Change wait handler to public go sdk
Jun 25, 2026
a53dc91
feat: refractor unit tests and resources
Jun 25, 2026
044f426
feat: adapt to new serviceEnablementUtils
Jun 25, 2026
d81efc1
feat: remove "unknown" resource state in creation
Jun 26, 2026
8ce92ba
feat(mexp): refractor tests and resources
Jun 26, 2026
ed274a0
chore(mexp): add docs and fix tests
Jun 29, 2026
0562d79
chore(mexp): fix description.md
Jun 29, 2026
45cc5c4
chore(mexp): fix docs
Jun 30, 2026
55c976d
chore(mexp): incorporate feedback
Jul 14, 2026
02abb97
chore(mexp): include token feedback
Jul 14, 2026
f8a7500
chore(mexp): incorporate feedback
Jul 15, 2026
6622747
chore(mexp): correct token scheme description
Jul 15, 2026
0411965
chore(mexp): remove state deletion in update
Jul 15, 2026
0d51d01
chore(mexp): update docs
Jul 15, 2026
13dc2c2
chore(mexp): Add mapLabels func
Jul 20, 2026
ea386db
chore(mexp): incorporate feedback
Jul 22, 2026
1cb7bca
chore(mexp): add note to test
Jul 22, 2026
48ddb09
chore(mexp): incorporate feedback
Jul 22, 2026
433571b
chore(mexp): update example
Jul 23, 2026
32437d9
chore(mexp): add comments
Jul 23, 2026
6524a3a
chore(mexp): add feedback
Aug 4, 2026
602c3b2
chore(mexp): add nil check for map functions
Aug 5, 2026
58cb366
chore(mexp): fix go mod
Aug 5, 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 = "80d"
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 = "80d"
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.1.0
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 @@ -187,6 +187,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.1.0 h1:3IZ3baztlqmkkDxwBfRymYTFeZa3AARVXYlt3hohfPs=
github.com/stackitcloud/stackit-sdk-go/services/mariadb v1.1.0/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 @@ -261,6 +263,8 @@ go.opentelemetry.io/otel/sdk/metric v1.43.0 h1:S88dyqXjJkuBNLeMcVPRFXpRw2fuwdvfC
go.opentelemetry.io/otel/sdk/metric v1.43.0/go.mod h1:C/RJtwSEJ5hzTiUz5pXF1kILHStzb9zFlIEe85bhj6A=
go.opentelemetry.io/otel/trace v1.43.0 h1:BkNrHpup+4k4w+ZZ86CZoHHEkohws8AY+WTX09nk+3A=
go.opentelemetry.io/otel/trace v1.43.0/go.mod h1:/QJhyVBUUswCphDVxq+8mld+AvhXZLhe+8WVFxiFff0=
go.uber.org/mock v0.6.0 h1:hyF9dfmbgIX5EfOdasqLsWD6xqpNZlXblLB/Dbnwv3Y=
go.uber.org/mock v0.6.0/go.mod h1:KiVJ4BqZJaMj4svdfmHM0AUx4NJYO8ZNpPnZn1Z+BBU=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.53.0 h1:QZ4Muo8THX6CizN2vPPd5fBGHyogrdK9fG4wLPFUsto=
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 @@ -56,6 +56,7 @@ type ProviderData struct {
MariaDBCustomEndpoint string
MongoDBFlexCustomEndpoint string
ModelServingCustomEndpoint string
ModelExperimentsCustomEndpoint string
ObjectStorageCustomEndpoint string
ObservabilityCustomEndpoint string
OpenSearchCustomEndpoint string
Expand Down
Loading
Loading