dbt-labs / terraform-provider-dbtcloud

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

Bug - Some changes to environments are not applied to dbt Cloud #114

Closed b-per closed 1 year ago

b-per commented 1 year ago

Currently, only changes to name, dbt_version, credential_id and project_id are correctly applied to dbt Cloud:

if d.HasChange("name") || d.HasChange("dbt_version") || d.HasChange("credential_id") || d.HasChange("project_id") {
    environment, err := c.GetEnvironment(projectId, environmentId)
...

We should also track changes to type, custom_branch and use_custom_branch which can be set via the UI and via the API