This message was deleted.
# automation-api
s
This message was deleted.
l
Yep. Just await the first up, then run the 2nd up. You can use inline programs to make it clearer, but both methods work.
l
Here's an example of a go program that splits up a deployment across two stacks with automation api: https://github.com/pulumi/automation-api-examples/blob/main/go/multi_stack_orchestration/main.go
First it deploys the bucket in one stack, then it references that bucket as a stack output and it feeds that bucketId into a function that generates the next program. You can see here that the program for the object stack is parameterized to curry the bucketId.
c
great! thanks guys!