Skip to content

[ISSUE] Error deploying workspace to https://accounts-dod.cloud.databricks.us/ #998

@airizarryDB

Description

@airizarryDB

Description
Received the following error deploying a workspace to https://accounts-dod.cloud.databricks.us/ via Terraform

Reproduction
I used https://github.com/databricks/terraform-databricks-sra. Ive added a branch for govcloud support which should be merged shortly

Expected behavior
I should be able to register my network object via the api, and then eventually have a functional workspace

Is it a regression?
This never worked to my knowledge

Debug Logs
│ Error: cannot create mws networks: unexpected error handling request: invalid character 'M' looking for beginning of value. This is likely a bug in the Databricks SDK for Go or the underlying REST API. Please report this issue with the following debugging information to the SDK issue tracker at https://github.com/databricks/databricks-sdk-go/issues. Request log:
│ ```
│ POST /api/2.0/accounts/b5d6deaa-82e8-4527-9ec5-51f9f305e6b3/networks
│ > * Host:
│ > * Accept: application/json
│ > * Authorization: REDACTED
│ > * Content-Type: application/json
│ > * Traceparent: 00-cb34323e01b10698fd81a0d1ebb66320-08782eb9d77bb045-01
│ > * User-Agent: databricks-tf-provider/1.46.0 databricks-sdk-go/0.41.0 go/1.21.10 os/darwin terraform/1.9.2 resource/mws_networks auth/oauth-m2m
│ > {
│ > "account_id": "b5d6deaa-82e8-4527-9ec5-51f9f305e6b3",
│ > "network_name": "govsratest-network",
│ > "security_group_ids": [
│ > "sg-0198d0c8f444c1a67"
│ > ],
│ > "subnet_ids": [
│ > "subnet-0893f61154c9d5d41",
│ > "subnet-04f95decf18ef5ba0",
│ > "subnet-0780582ec842b2467"
│ > ],
│ > "vpc_endpoints": {
│ > "dataplane_relay": [
│ > "81a167ad-ebed-4fb0-8a1a-aaa0f3fb5a54"
│ > ],
│ > "rest_api": [
│ > "3b7d15eb-4b21-4487-8d04-d7e540efdb1f"
│ > ]
│ > },
│ > "vpc_id": "vpc-075f51cd4addb76b4"
│ > }
│ < HTTP/2.0 400 Bad Request
│ < * Content-Type: text/plain; charset=utf-8
│ < * Date: Wed, 24 Jul 2024 21:19:40 GMT
│ < * Server: databricks
│ < * Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
│ < * Vary: Accept-Encoding
│ < * X-Content-Type-Options: nosniff
│ < MALFORMED_REQUEST: vpc_endpoints malformed parameters: VPC Endpoint 3b7d15eb-4b21-4487-8d04-d7e540efdb1f with use_case DATAPLANE_RELAY_ACCESS cannot be attached in rest_api list, VPC Endpoint 81a167ad-ebed-4fb0-8a1a-aaa0f3fb5a54 with use_case WORKSPACE_ACCESS cannot be attached in dataplane_relay list

Other Information

  • OS: tried from MacOS terminal
  • Version: 14.4.1

From Terraform init
Initializing provider plugins...

  • Finding hashicorp/aws versions matching ">= 3.28.0, >= 5.0.0"...
  • Finding latest version of hashicorp/external...
  • Finding latest version of hashicorp/null...
  • Finding latest version of hashicorp/time...
  • Finding databricks/databricks versions matching "~> 1.46.0"...
  • Installing hashicorp/time v0.12.0...
  • Installed hashicorp/time v0.12.0 (signed by HashiCorp)
  • Installing databricks/databricks v1.46.0...
  • Installed databricks/databricks v1.46.0 (self-signed, key ID 92A95A66446BCE3F)
  • Installing hashicorp/aws v5.59.0...
  • Installed hashicorp/aws v5.59.0 (signed by HashiCorp)
  • Installing hashicorp/external v2.3.3...
  • Installed hashicorp/external v2.3.3 (signed by HashiCorp)
  • Installing hashicorp/null v3.2.2...
  • Installed hashicorp/null v3.2.2 (signed by HashiCorp)

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions