sparse-intern-71089
03/02/2020, 11:41 PMlemon-agent-27707
03/02/2020, 11:45 PMgreen-morning-1318
03/02/2020, 11:46 PMgreen-morning-1318
03/02/2020, 11:46 PMlemon-agent-27707
03/02/2020, 11:51 PM&ec2.GetInstanceArgs{}
instead of nil
for that fourth parametergreen-morning-1318
03/02/2020, 11:53 PMgreen-morning-1318
03/03/2020, 1:03 AMlemon-agent-27707
03/03/2020, 1:59 AMpulumi.Apply
to execute a callback on the raw values. Some docs on this here:
https://www.pulumi.com/docs/intro/concepts/programming-model/#apply
A common pattern we use if unit testing functionality is to pass the raw values back into channels. There's an example of that here:
https://github.com/pulumi/pulumi/blob/master/sdk/go/pulumi/types_test.go#L320-L349
Does that help? Let me know if you have more questions.green-morning-1318
03/03/2020, 2:16 AMgreen-morning-1318
03/03/2020, 5:28 PMApply
was exactly what I was looking for. Thanks for the help 🙌