sparse-intern-71089
07/15/2022, 5:46 PMclever-sunset-76585
07/15/2022, 5:46 PMinstances
? And are you wanting to write the file to your local machine?millions-thailand-49227
07/15/2022, 5:47 PMnew aws.ec2.Instance
Yes, I want to write the file to my local machineclever-sunset-76585
07/15/2022, 5:59 PMpulumi.all(sshConfigFragments).apply(f => fs.writeFileSync("~/.ssh/config", f.join("\n\n")));
clever-sunset-76585
07/15/2022, 6:01 PMOutput
values that you need to wait on and pulumi.all
does that. Similar to Promise.all
. Note that pulumi
in my snippet is just an import alias for @pulumi/pulumi
.clever-sunset-76585
07/15/2022, 6:02 PMfs
is an import alias for Node's native fs
module.millions-thailand-49227
07/15/2022, 6:49 PM