Closed anaghshineh closed 1 month ago
Thanks. I will update the provider to force a new job when the project changes. I tried changing the environment for a given project, and this works.
As a side note, are you still using the dbt_cloud_xxx
resources?
Since 0.3 I removed support for those and only allow dbtcloud_xxx
.
I was thinking of doing the change for this bug only be released for 0.3.x
.
I could also do a new 0.2.x
release as well for this one (if you need it), but this is not something I want to support on the long run.
Hey @b-per ! Thanks, as always, for such speedy & thorough responses! Appreciate you.
Yea, we're still using an instance of the dbt_cloud_xxx
resource. I'd like to upgrade our provider version & move to dbtcloud_xxx
. With that in mind – I feel good about your making this change for 0.3.x
without touching prior versions 😄.
THANK YOU!
Hey, @b-per – thought about this a little more. I actually think it'd be great to have the change apply to 0.2.x
as well. If I try to do the upgrade to 0.3.x
and dbt_cloud_xxx
=> dbtcloud_xxx
, it'll fail for my platform's various tenants, since the newer version got rid of dbt_cloud_xxx
.
That way, I can upgrade to the latest version for 0.2.x
& change to dbtcloud_xxx
and then in a later phase upgrade to 0.3.x
.
Understood.
I released 0.2.26
with this fix and will add it to the next 0.3.x
as well.
0.2.26
should show up on the registry in a few minutes.
Describe the bug
Hello! We ran into a weird issue recently where we updated the
project_id
andenvironment_id
attributes associated with a pre-existingdbt_cloud_job
resource. Instead of doing a replacement (destroy + create), Terraform tried to do an update-in-place operation, which seemed odd.Error message
When attempting an
apply
, we got the following404
error:Resource configuration
Expected behavior
I would expect Terraform to do a replacement of the job in this instance. Delete it from the project in which it was originally created & then create it in the new project associated with the new
project_id
value.I think
apply
failed because it was trying to locate the job in the new project and couldn't find it, since it still existed in the old project??Config (please complete the following information):
( the version can be retrieved running the command
terraform providers
)"0.2.6"
Additional context
Add any other context about the problem here.