Channels
announcements
automation-api
aws
azure
blog-posts
built-with-pulumi
cloudengineering
cloudengineering-support
content-share
contribex
contribute
docs
dotnet
finops
general
getting-started
gitlab
golang
google-cloud
hackathon-03-19-2020
hacktoberfest
install
java
jobs
kubernetes
learn-pulumi-events
linen
localstack
multi-language-hackathon
office-hours
oracle-cloud-infrastructure
package-authoring
pulumi-ai
pulumi-cdk
pulumi-cloud
pulumi-crosscode
pulumi-deployments
pulumi-kubernetes-operator
pulumiverse
python
registry
status
testingtesting123
testingtesting321
typescript
welcome
workshops
yaml
Powered by
Title
b
bored-spoon-83710
08/11/2022, 3:22 PM
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?
3 Views
#golang
Join Slack