Channels
esc
welcome
pulumi-cdk
cloudengineering
yaml
blog-posts
localstack
pulumi-ai
package-authoring
policy-as-code
pulumiup-booth-support
oracle-cloud-infrastructure
learn-pulumi-events
linen
registry
built-with-pulumi
pulumi-cloud
contribex
testingtesting321
hacktoberfest
pulumi-crosscode
content-share
finops
multi-language-hackathon
office-hours
workshops
gitlab
general
pulumi-kubernetes-operator
jobs
pulumi-deployments
dotnet
aws
golang
announcements
java
pulumiverse
python
install
getting-started
cloudengineering-support
testingtesting123
hackathon-03-19-2020
typescript
google-cloud
contribute
azure
kubernetes
docs
automation-api
status
Powered by
#golang
Title
# golang
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
Post