Closed adrian-montero-hkkd closed 6 months ago
@adrian-montero-hkkd Fix included in latest version v1.1.11 If the fix doesn't work for you feel free to re-open the issue.
@beevital It seems the issue is reappearing, I had over 200+ webhooks setup and did no change to them and now all the webhooks show as "update" in plan although I did not change anything on them. So in the plan I get all the webhooks with this change:
And later get this result in the apply:
After I apply the plan and re-run a plan-apply cycle with no changes I get yet again this in the plan:
Just like if in the previous cycle that attribute was not changed in the webhook.
Describe the bug The first time running a webhook creation it succeeds, but if you run a second apply in tf cloud with no changes to the resource, sometimes it will fail. When it fails, the second time it shows a change/update in the secret, although it was not changed:![image](https://github.com/fivetran/terraform-provider-fivetran/assets/145811752/0d353742-fc50-4725-86b5-9e5470ebe8fd)
If I delete the webhook via fivetran rest api and manually remove the resource from the tf state using tf state rm, and trigger a new run, all the time it works the first time.
My guess is that when the provider queries the webhook to check current state it returns: "secret": "**", and that doesn't match the actual secret string in the terraform file and triggers the update condition.
To Reproduce
Expected behavior If there are no changes in the webhook do not trigger an update.
Plugin version: 1.1.5