How to add delay between each iteration of for each loop?

I’m trying to add a delay between each iteration but not able to find any resources. I found depends_on and time_sleep options but I was not able to apply it on each iteration but just resources.

Hi @sourabhnarayang,

Terraform uses a declarative language, so there really isn’t any iteration at runtime, and the order of resource evaluation is only based on the dependencies in the configuration. It would help if you showed an example of the configuration you are using, and describe the problem you are trying to solve.

Thanks!