Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ If you want to onboard resources of a STACKIT service `foo` that was not yet in
```go
setStringField(providerConfig.FooCustomEndpoint, func(v string) { providerData.FooCustomEndpoint = v })
```
4. Create a utils package, for service `foo` it would be `stackit/internal/foo/utils`. Add a `ConfigureClient()` func and use it in your resource and datasource implementations.
4. Create a utils package, for service `foo` it would be `stackit/internal/services/foo/utils`. Add a `ConfigureClient()` func and use it in your resource and datasource implementations.

https://github.com/stackitcloud/terraform-provider-stackit/blob/main/.github/docs/contribution-guide/utils/util.go

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
data "stackit_dremio_instance" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
region = "eu01"
instance_id = "example-instance-id"
}
34 changes: 34 additions & 0 deletions examples/resources/stackit_dremio_instance/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
resource "stackit_dremio_instance" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
region = "eu01"
display_name = "exampleName"
description = "Example description"
authentication = {
type = "local-only" // "oauth" or "azuread" for IDP config

oauth = { // only needed if "oauth" is given as type
authority_url = "authority"
client_id = "client-id"
client_secret = "client-secret"
jwt_claims = {
user_name = "example"
}
scope = "idp-scope"
parameters = [
{ "name" : "example", "value" : "example-value" }
]
}

azuread = { // only needed if "azuread" is given as type
authority_url = "authority"
client_id = "client-id"
client_secret = "client-secret"
}
}
}

# Only use the import statement, if you want to import an existing dns zone
import {
to = stackit_dremio_instance.import_example
id = "${var.project_id},${var.region},${var.instance_id}"
}
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ require (
github.com/stackitcloud/stackit-sdk-go/services/cdn v1.16.0
github.com/stackitcloud/stackit-sdk-go/services/certificates v1.7.0
github.com/stackitcloud/stackit-sdk-go/services/dns v0.20.2
github.com/stackitcloud/stackit-sdk-go/services/dremio v0.1.0
github.com/stackitcloud/stackit-sdk-go/services/edge v0.11.0
github.com/stackitcloud/stackit-sdk-go/services/git v0.13.0
github.com/stackitcloud/stackit-sdk-go/services/iaas v1.12.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,8 @@ github.com/stackitcloud/stackit-sdk-go/services/certificates v1.7.0 h1:J7BVVHjRT
github.com/stackitcloud/stackit-sdk-go/services/certificates v1.7.0/go.mod h1:eJpB3/pukz+KzVPVHQ4g3DVtQkxGga18VbFBhq9ugdY=
github.com/stackitcloud/stackit-sdk-go/services/dns v0.20.2 h1:nMJRg1dKioOlMwXJnZZgIRwfTWYCksVA9GyfAVmib1g=
github.com/stackitcloud/stackit-sdk-go/services/dns v0.20.2/go.mod h1:FiYSv3D9rzgEVzi8Mpq5oYZBosrasa5uUYqVdEIbM1U=
github.com/stackitcloud/stackit-sdk-go/services/dremio v0.1.0 h1:yNFIU1+1dA2uK8ERdBb1Ut74Kt2szn4qgelBbM93JXA=
github.com/stackitcloud/stackit-sdk-go/services/dremio v0.1.0/go.mod h1:iMoiM8fM1mXC1Nz8FBiiQ08Yh+0C3yN0GPCdAbOlRXo=
github.com/stackitcloud/stackit-sdk-go/services/edge v0.11.0 h1:/JUxaJSGmg+PRj90e4fngWkXNQkRKHOYpVykJ3zoy7w=
github.com/stackitcloud/stackit-sdk-go/services/edge v0.11.0/go.mod h1:Ylse6gqGJtsd5TVmvha+hoLd1QQHLKvhY5dO15+q5kg=
github.com/stackitcloud/stackit-sdk-go/services/git v0.13.0 h1:BdamSnGYhDkDqUWQQcJ8Kqik90laTK1IlG5CQqyLVgA=
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 @@ -45,6 +45,7 @@ type ProviderData struct {
AuthorizationCustomEndpoint string
CdnCustomEndpoint string
DnsCustomEndpoint string
DremioCustomEndpoint string
EdgeCloudCustomEndpoint string
GitCustomEndpoint string
IaaSCustomEndpoint string
Expand Down
Loading