full-artist-27215
10/26/2022, 8:04 PMpulumi_aws.ec2transitgateway.VpcAttachmentAccepter
. My problem comes when trying to set up route table associations. I would like to have the gateway configured to automatically accept attachments, but route table associations can't be created if the attachment hasn't been accepted yet (the error is IncorrectState: tgw-attach-XXXXXXXXXXXX is in invalid state
). Auto-acceptance still takes some time, though, and I can't seem to find a way to have the route table associations to wait until the attachment has been accepted; the first pulumi up
fails on all the route table associations, but if I wait a minute, I can re-run and they'll all proceed. Is there a way to make this work in Pulumi? Thanks.billowy-army-68599
10/26/2022, 8:23 PMfull-artist-27215
10/26/2022, 8:28 PMbillowy-army-68599
10/26/2022, 8:29 PMVpcAttachmentAccepter
and likely build the routes inside an apply
full-artist-27215
10/26/2022, 8:31 PMbillowy-army-68599
10/26/2022, 8:36 PMfull-artist-27215
10/26/2022, 8:38 PMbillowy-army-68599
10/26/2022, 8:41 PMIs there a way to have Pulumi “wait” for a condition to be true before proceeding?it depends on the condition, you can do things inside an
apply
that poll something for examplefull-artist-27215
10/26/2022, 8:44 PMbillowy-army-68599
10/26/2022, 8:45 PMfull-artist-27215
10/26/2022, 8:47 PM