-
Notifications
You must be signed in to change notification settings - Fork 85
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
5
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
5 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
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,51 @@ | ||
| --- | ||
| # 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. | ||
| - `description` (String) The description of the intake. | ||
| - `dremio_personal_access_token` (String, Sensitive) The Dremio personal access token. | ||
| - `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. | ||
| - `name` (String) The name of the intake. | ||
| - `runner_id` (String) The runner ID. | ||
| - `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,62 @@ | ||
| --- | ||
| # 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" | ||
| 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 = "my-dremio-pat-token" | ||
|
|
||
| labels = { | ||
| "env" = "development" | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| <!-- schema generated by tfplugindocs --> | ||
| ## Schema | ||
|
|
||
| ### Required | ||
|
|
||
| - `name` (String) The name of the intake. | ||
| - `project_id` (String) STACKIT Project ID to which the intake is associated. | ||
| - `runner_id` (String) The runner ID. | ||
|
|
||
| ### Optional | ||
|
|
||
| - `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. | ||
| - `description` (String) The description of the intake. | ||
| - `dremio_personal_access_token` (String, Sensitive) The Dremio personal access token. | ||
| - `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. | ||
| - `id` (String) Terraform's internal resource identifier. It is structured as `project_id`,`region`,`intake_id`. | ||
| - `intake_id` (String) The intake ID. | ||
| - `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,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,15 @@ | ||
| resource "stackit_intakes" "example" { | ||
| project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | ||
| runner_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | ||
| 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 = "my-dremio-pat-token" | ||
|
|
||
| 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add "import-by-string-id.tf" (import statement)