-
Notifications
You must be signed in to change notification settings - Fork 89
Onboarding Intake(2/3): Onboard intakes resource #1689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
devanshcache
wants to merge
7
commits into
stackitcloud:main
Choose a base branch
from
stackit-intake:onboard-intakes-resource
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
1e1ed02
feat(intake): implement intake resource and data source
69e24ff
get dremio pat, added acceptance test for intakes
3824148
fix(intake): update payload schema compliance and dynamic PAT test ha…
8c1c6f5
Merge branch 'main' into onboard-intakes-resource
devanshcache b866091
fix dremio user password requirements and update config isolation
88a84fd
fix(intake): address review comments on intakes resource and data source
8cd63c6
fixed minor issue in intake_acc_test.go
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| --- | ||
| # generated by https://github.com/hashicorp/terraform-plugin-docs | ||
| page_title: "stackit_intakes Data Source - stackit" | ||
| subcategory: "" | ||
| description: |- | ||
| Datasource for STACKIT Intake. | ||
| --- | ||
|
|
||
| # stackit_intakes (Data Source) | ||
|
|
||
| Datasource for STACKIT Intake. | ||
|
|
||
| ## Example Usage | ||
|
|
||
| ```terraform | ||
| data "stackit_intakes" "example" { | ||
| project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | ||
| intake_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | ||
| } | ||
| ``` | ||
|
|
||
| <!-- schema generated by tfplugindocs --> | ||
| ## Schema | ||
|
|
||
| ### Required | ||
|
|
||
| - `intake_id` (String) The intake ID. | ||
| - `project_id` (String) STACKIT Project ID to which the intake is associated. | ||
|
|
||
| ### Optional | ||
|
|
||
| - `region` (String) The resource region. If not defined, the provider region is used. | ||
|
|
||
| ### Read-Only | ||
|
|
||
| - `catalog_auth_type` (String) The catalog authentication type. | ||
| - `catalog_namespace` (String) The catalog namespace. | ||
| - `catalog_partition_by` (List of String) The catalog partition by. | ||
| - `catalog_partitioning` (String) The catalog partitioning. | ||
| - `catalog_table_name` (String) The catalog table name. | ||
| - `catalog_uri` (String) The catalog URI. | ||
| - `catalog_warehouse` (String) The catalog warehouse. | ||
| - `create_time` (String) The creation time of the intake. | ||
| - `dead_letter_topic` (String) The topic where undelivered messages are published (Dead Letter Queue). | ||
| - `description` (String) The description of the intake. | ||
| - `display_name` (String) The display name of the intake. | ||
| - `dremio_token_endpoint` (String) The Dremio token endpoint. | ||
| - `id` (String) Terraform's internal resource identifier. It is structured as `project_id`,`region`,`intake_id`. | ||
| - `labels` (Map of String) User-defined labels. | ||
| - `runner_id` (String) The runner ID. | ||
| - `topic` (String) The topic to publish data to. | ||
| - `uri` (String) The URI of the intake. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| --- | ||
| # generated by https://github.com/hashicorp/terraform-plugin-docs | ||
| page_title: "stackit_intakes Resource - stackit" | ||
| subcategory: "" | ||
| description: |- | ||
| Manages STACKIT Intake. | ||
| --- | ||
|
|
||
| # stackit_intakes (Resource) | ||
|
|
||
| Manages STACKIT Intake. | ||
|
|
||
| ## Example Usage | ||
|
|
||
| ```terraform | ||
| resource "stackit_intakes" "example" { | ||
| project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | ||
| runner_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | ||
| display_name = "example-intake" | ||
| description = "An example intake for STACKIT Intake service" | ||
| catalog_auth_type = "dremio" | ||
| catalog_warehouse = "default" | ||
| catalog_uri = "https://dremio.eu01.onstackit.cloud/iceberg" | ||
| dremio_token_endpoint = "https://dremio.eu01.onstackit.cloud/oauth/token" | ||
| dremio_personal_access_token_wo = "my-dremio-pat-token" | ||
| dremio_personal_access_token_wo_version = 1 | ||
|
|
||
| labels = { | ||
| "env" = "development" | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| <!-- schema generated by tfplugindocs --> | ||
| ## Schema | ||
|
|
||
| ### Required | ||
|
|
||
| - `catalog_uri` (String) The catalog URI. | ||
| - `catalog_warehouse` (String) The catalog warehouse. | ||
| - `display_name` (String) The display name of the intake. | ||
| - `project_id` (String) STACKIT Project ID to which the intake is associated. | ||
| - `runner_id` (String) The runner ID. | ||
|
|
||
| ### Optional | ||
|
|
||
| > **NOTE**: [Write-only arguments](https://developer.hashicorp.com/terraform/language/resources/ephemeral#write-only-arguments) are supported in Terraform 1.11 and later. | ||
|
|
||
| - `catalog_auth_type` (String) The catalog authentication type. | ||
| - `catalog_namespace` (String) The catalog namespace. | ||
| - `catalog_partition_by` (List of String) The catalog partition by. | ||
| - `catalog_partitioning` (String) The catalog partitioning. | ||
| - `catalog_table_name` (String) The catalog table name. | ||
| - `description` (String) The description of the intake. | ||
| - `dremio_personal_access_token` (String, Sensitive) The Dremio personal access token. Write-only argument `dremio_personal_access_token_wo` should be preferred. | ||
| - `dremio_personal_access_token_wo` (String, Sensitive, [Write-only](https://developer.hashicorp.com/terraform/language/resources/ephemeral#write-only-arguments)) The Dremio personal access token. Write-only - never stored in state and never returned by the API. To rotate the token, update this value AND increment `dremio_personal_access_token_wo_version`. Changing this field alone will NOT trigger an update. | ||
| - `dremio_personal_access_token_wo_version` (Number) User-managed rotation counter for `dremio_personal_access_token_wo`. Must be incremented every time `dremio_personal_access_token_wo` is changed. Terraform diffs this field to detect token rotations - changing `dremio_personal_access_token_wo` alone will NOT trigger an update because it is write-only and never stored in state. | ||
| - `dremio_token_endpoint` (String) The Dremio token endpoint. | ||
| - `labels` (Map of String) User-defined labels. | ||
| - `region` (String) The resource region. If not defined, the provider region is used. | ||
|
|
||
| ### Read-Only | ||
|
|
||
| - `create_time` (String) The creation time of the intake. | ||
| - `dead_letter_topic` (String) The topic where undelivered messages are published (Dead Letter Queue). | ||
| - `id` (String) Terraform's internal resource identifier. It is structured as `project_id`,`region`,`intake_id`. | ||
| - `intake_id` (String) The intake ID. | ||
| - `topic` (String) The topic to publish data to. | ||
| - `uri` (String) The URI of the intake. | ||
|
|
||
| ## 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 | ||
| # Only use the import statement, if you want to import an existing intake | ||
| import { | ||
| to = stackit_intakes.import-example | ||
| id = "${var.project_id},${var.region},${var.intake_id}" | ||
| } | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| data "stackit_intakes" "example" { | ||
| project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | ||
| intake_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Only use the import statement, if you want to import an existing intake | ||
| import { | ||
| to = stackit_intakes.import-example | ||
| id = "${var.project_id},${var.region},${var.intake_id}" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| resource "stackit_intakes" "example" { | ||
| project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | ||
| runner_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | ||
| display_name = "example-intake" | ||
| description = "An example intake for STACKIT Intake service" | ||
| catalog_auth_type = "dremio" | ||
| catalog_warehouse = "default" | ||
| catalog_uri = "https://dremio.eu01.onstackit.cloud/iceberg" | ||
| dremio_token_endpoint = "https://dremio.eu01.onstackit.cloud/oauth/token" | ||
| dremio_personal_access_token_wo = "my-dremio-pat-token" | ||
| dremio_personal_access_token_wo_version = 1 | ||
|
|
||
| labels = { | ||
| "env" = "development" | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.