Hello, I need to put a sleep between the creation ...
# golang
b
Hello, I need to put a sleep between the creation of two resources to accommodate eventual consistency issues (like here https://github.com/pulumi/pulumi-eks/blob/00ae8e77a63f0bca99f188c003e7cdb89d5aebeb/nodejs/eks/cluster.ts#L335 for example), but I don’t know how to do this properly in Go. I tried the same approach as in the link (time.Sleep in an ApplyT), but it seems to sleep also during preview, which is annoying. Therefore, I looked for an equivalent of this Terraform resource https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep and found https://github.com/pulumiverse/pulumi-time, but it doesn’t seem fully functional at the time. How can I proceed?