Does everything have to be contained within the `...
# golang
m
Does everything have to be contained within the
pulumi.Run
function in
main
? I'm getting to the point where I'd like to break out some stuff into separate functions. For example, probing a generated url from an output until there's a response with go's native
http
package
b
You can definitely break things up but just keep in mind that Pulumi isn’t procedural, as most of the stuff it’ll do will only happen asynchronously once it’s built the list of steps to execute. So if you need to add procedural components, you may need to use the automation API.
m
Good point. Thanks @bored-table-20691