dbt-labs / terraform-provider-dbtcloud

dbt Cloud Terraform Provider
https://registry.terraform.io/providers/dbt-labs/dbtcloud
MIT License
85 stars 19 forks source link

Error 400 on dbt_cloud_environment ressource #132

Closed jean-mercier-hivebrite closed 1 year ago

jean-mercier-hivebrite commented 1 year ago

Hello

when we try to change the dbt_version of the resource dbt_cloud_environment, we have an error

  ~ resource "dbt_cloud_environment" "environment" {
      ~ dbt_version       = "1.3.0-latest" -> "1.4.0-latest"
        id                = "770:1111"
        name              = "myname"
        # (6 unchanged attributes hidden)
    } 
╷
│ Error: POST url: https://emea.dbt.com/api/v3/accounts/XXX/projects/XXXX/environments/XXXX/, status: 400, body: {"status":{"code":400,"is_success":false,"user_message":"The request was invalid. Please double check the provided data and try again.","developer_message":""},"data":{"credentials":"{'id': XXX, 'account_id': XXX, 'project_id': XXX, 'type': 'bigquery', 'state': 1, 'threads': 4, 'user': '', 'auth_type': '', 'database': '', 'role': '', 'warehouse': '', 'schema': 'mydataset'} is not valid under any of the given schemas"}}

When we do it in the UI it's working fine

github-actions[bot] commented 1 year ago

This issue has been marked as Stale because it has been open for 90 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days.