Unstable behaviour of S3 bucket policies

It has been observed that the Terraform deletes and adds bucket policy statement in every consecutive builds even when nothing has changed.
Build 1: removes the policy statements
Build 2: Add the removed statements
Build 3: removes the policy statements
Build 4: Add the removed statements
Build 5: removes the policy statements
Build 6: Add the removed statements
This has caused the policy to become unstable.
No proper response was provided at git hub.

Hi @Yashwant0108,

It’s impossible to guess why that might be happening without seeing the Terraform configuration you have written. It would also be helpful to see the full plan output proposing creation and the one proposing deletion because Terraform sometimes includes additional information in the plan output to try to explain why a particular action is being proposed.

Can you share both the relevant configuration and the full messages from Terraform when it’s describing the changes you are concerned about? Thanks!