Skip to content

Commit

Permalink
added changes suggested by @nfx
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Gross committed Dec 9, 2020
1 parent 5ff8272 commit 8d07eff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 0.3.0

* Added [support for other clouds](https://github.com/databrickslabs/terraform-provider-databricks/pull/437).
* Added optional parameter azure_environment to provider config which defaults to public ([#437](https://github.com/databrickslabs/terraform-provider-databricks/pull/437)).
* Added [databricks_service_principal](https://github.com/databrickslabs/terraform-provider-databricks/pull/386) resource.

**Behavior changes**
Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ resource "databricks_scim_user" "my-user" {
* `azure_client_id` - (optional) This is the Azure Enterprise Application (Service principal) client id. This service principal requires contributor access to your Azure Databricks deployment. Alternatively, you can provide this value as an environment variable `DATABRICKS_AZURE_CLIENT_ID` or `ARM_CLIENT_ID`.
* `azure_tenant_id` - (optional) This is the Azure Active Directory Tenant id in which the Enterprise Application (Service Principal)
resides. Alternatively, you can provide this value as an environment variable `DATABRICKS_AZURE_TENANT_ID` or `ARM_TENANT_ID`.
* `azure_environment` - (optional) This is the Azure Environment which defaults to the `public` cloud. Other options are `german`, `china` and `usgovernment`.
* `azure_environment` - (optional) This is the Azure Environment which defaults to the `public` cloud. Other options are `german`, `china` and `usgovernment`. Alternatively, you can provide this value as an environment variable `ARM_ENVIRONMENT`.
* `pat_token_duration_seconds` - The current implementation of the azure auth via sp requires the provider to create a temporary personal access token within Databricks. The current AAD implementation does not cover all the APIs for Authentication. This field determines the duration in which that temporary PAT token is alive. It is measured in seconds and will default to `3600` seconds.
* `debug_truncate_bytes` - Applicable only when `TF_LOG=DEBUG` is set. Truncate JSON fields in HTTP requests and responses above this limit. Default is *96*.
* `debug_headers` - Applicable only when `TF_LOG=DEBUG` is set. Debug HTTP headers of requests made by the provider. Default is *false*.
Expand All @@ -211,7 +211,7 @@ The following configuration attributes can be passed via environment variables:
| `azure_client_secret` | `DATABRICKS_AZURE_CLIENT_SECRET` or `ARM_CLIENT_SECRET` |
| `azure_client_id` | `DATABRICKS_AZURE_CLIENT_ID` or `ARM_CLIENT_ID` |
| `azure_tenant_id` | `DATABRICKS_AZURE_TENANT_ID` or `ARM_TENANT_ID` |
| `azure_environment` | `DATABRICKS_AZURE_ENVIRONMENT` or `ARM_ENVIRONMENT` |
| `azure_environment` | `ARM_ENVIRONMENT` |
| `debug_truncate_bytes` | `DATABRICKS_DEBUG_TRUNCATE_BYTES` |
| `debug_headers` | `DATABRICKS_DEBUG_HEADERS` |

Expand Down
3 changes: 1 addition & 2 deletions provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,7 @@ func DatabricksProvider() *schema.Provider {
"azure_environment": {
Type: schema.TypeString,
Optional: true,
Sensitive: true,
DefaultFunc: schema.MultiEnvDefaultFunc([]string{"DATABRICKS_AZURE_ENVIRONMENT", "ARM_ENVIRONMENT"}, "public"),
DefaultFunc: schema.EnvDefaultFunc("ARM_ENVIRONMENT", "public"),
},
"skip_verify": {
Type: schema.TypeBool,
Expand Down

0 comments on commit 8d07eff

Please sign in to comment.