dbt-labs / terraform-provider-dbtcloud

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

Unable to modify an existing dbt Cloud job #220

Closed bsuryachandra closed 7 months ago

bsuryachandra commented 7 months ago

Describe the bug

I am unable to update a dbt Cloud job executed through Terraform. Initially, I created the job with execute_steps: ["dbt build"], but later when I updated it to execute_steps: ["dbt run"], it started failing.

Error message

The error message from running terraform.

image image

Resource configuration

The relevant resource configuration (sanitised so it doesn't contain sensitive data)

image

Expected behavior

Execution steps should be updated with the given new steps

Config (please complete the following information):

( the version can be retrieved running the command terraform providers )

Additional context

Add any other context about the problem here.

b-per commented 7 months ago

Hi!

There have been a few bugs fixed since 0.2.2

Could you try with 0.2.15 and see if there is the same problem?

bsuryachandra commented 7 months ago

@b-per , seeing the same issues with 0.2.15 version

b-per commented 7 months ago

It looks like you are also removing the git_provider_webhook key under triggers. Could you keep it set at false as it was before?

If it still doesn't work, could you please send across the full config of the resource dbtcloud_job.test?

bsuryachandra commented 7 months ago

it got executed after setting git_provider_webhook: false thanks @b-per 👍 i am closing this as it's working expected

b-per commented 7 months ago

Thanks for getting back. I might try to update the provider so it doesn't crash at least when this happens and provide a better error message.