sparse-intern-71089
05/09/2021, 5:29 PMbored-oyster-3147
05/10/2021, 1:15 PMPulumiFn
class. It is just another way of providing your pulumi program delegate.
You could either:
• PulumiFn.Create<TStack>();
• PulumiFn.Create(delegate);
It is the same functionality as before Automation API where you would either:
• Deployment.RunAsync<TStack>();
• Deployment.RunAsync(delegate);
bored-activity-40468
05/10/2021, 2:28 PMbored-oyster-3147
05/10/2021, 2:34 PMTStack
type than internally Pulumi is just doing that for you. I can link you the code 1 secbored-oyster-3147
05/10/2021, 2:37 PMbored-oyster-3147
05/10/2021, 2:42 PMTStack
and delegate programs, the following code:
var parent = type == Stack._rootPulumiStackTypeName
? null
: (options.Parent ?? Deployment.InternalInstance.Stack);
parent
would be set by Deployment.InternalInstance.Stack
It just ensures that Pulumi.Stack
resource never has a parentNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by