Closed nagendrasanthosh closed 1 year ago
hi @nagendrasanthosh
thanks for filing this issue!
yes, indeed, i noted the events list reports changes during terraform plan
even if the values did not change.
I will be making a PR to address this soon.
hi @nagendrasanthosh
I added fixes re: detecting changes on the circleci_webhook
resource. 🤓
this is released as per v0.11.0.
Specifically, for events
, I've made it a Set , instead of List.
Ref: https://registry.terraform.io/providers/kelvintaywl/circleci/latest/docs/resources/webhook#events
This way, it does not matter re: the order of the events' items, and thus should reflect no changes as expected when there is indeed no changes.
Can you try updating your use of this plugin to v0.11.0 and see if this fixes for you now? Thanks again! 🍻
terraform {
required_providers {
circleci = {
source = "kelvintaywl/circleci"
version = "0.11.0"
}
}
}
provider "circleci" {
# Configuration options
}
@kelvintaywl The issue is fixed after upgrading to the latest version for the provider. Thanks for your time and help fixing it
terraform plan shows the circleci_webhook resource events have been changed .
subsequently terraform apply runs and the final state of webhook remains unchanged. ideally no changes should be reported by terraform plan. this can be misleading . please help us fix this issue