-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from Infisical/daniel/databricks-integration
feat: databricks integration
- Loading branch information
Showing
6 changed files
with
398 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,59 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "infisical_integration_databricks Resource - terraform-provider-infisical" | ||
subcategory: "" | ||
description: |- | ||
Create Databricks integration & save to Infisical. Only Machine Identity authentication is supported for this data source | ||
--- | ||
|
||
# infisical_integration_databricks (Resource) | ||
|
||
Create Databricks integration & save to Infisical. Only Machine Identity authentication is supported for this data source | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
terraform { | ||
required_providers { | ||
infisical = { | ||
# version = <latest version> | ||
source = "infisical/infisical" | ||
} | ||
} | ||
} | ||
provider "infisical" { | ||
host = "https://app.infisical.com" # Only required if using self hosted instance of Infisical, default is https://app.infisical.com | ||
client_id = "<machine-identity-client-id>" | ||
client_secret = "<machine-identity-client-secret>" | ||
} | ||
resource "infisical_integration_databricks" "db-integration" { | ||
project_id = "<project-id>" | ||
environment = "<env-slug>" | ||
databricks_host = "<databricks-host>" # Example: https://afc-2a42f142-bb11.cloud.databricks.com | ||
databricks_token = "<databricks-personal-access-token>" | ||
databricks_secret_scope = "<databricks-secret-scope>" | ||
secret_path = "/some/infisical/folder" # "/" is the root folder | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `databricks_host` (String) The Databricks host URL. | ||
- `databricks_secret_scope` (String) The Databricks secret scope. Example: your-secret-scope | ||
- `databricks_token` (String, Sensitive) The Databricks access token. | ||
- `environment` (String) The slug of the environment to sync to Databricks (prod, dev, staging, etc). | ||
- `project_id` (String) The ID of your Infisical project. | ||
- `secret_path` (String) The secret path in Infisical to sync secrets from. | ||
|
||
### Read-Only | ||
|
||
- `integration_auth_id` (String) The ID of the integration auth, used internally by Infisical. | ||
- `integration_id` (String) The ID of the integration, used internally by Infisical. |
26 changes: 26 additions & 0 deletions
26
examples/resources/infisical_integration_databricks/resource.tf
This file contains 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,26 @@ | ||
terraform { | ||
required_providers { | ||
infisical = { | ||
# version = <latest version> | ||
source = "infisical/infisical" | ||
} | ||
} | ||
} | ||
|
||
provider "infisical" { | ||
host = "https://app.infisical.com" # Only required if using self hosted instance of Infisical, default is https://app.infisical.com | ||
client_id = "<machine-identity-client-id>" | ||
client_secret = "<machine-identity-client-secret>" | ||
} | ||
|
||
resource "infisical_integration_databricks" "db-integration" { | ||
project_id = "<project-id>" | ||
environment = "<env-slug>" | ||
|
||
databricks_host = "<databricks-host>" # Example: https://afc-2a42f142-bb11.cloud.databricks.com | ||
databricks_token = "<databricks-personal-access-token>" | ||
databricks_secret_scope = "<databricks-secret-scope>" | ||
|
||
secret_path = "/some/infisical/folder" # "/" is the root folder | ||
|
||
} |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.