sparse-intern-71089
05/30/2022, 11:44 PMlittle-cartoon-10569
05/30/2022, 11:56 PMvalueAsOutput.apply(value => console.log(`The value is ${value}`));
little-cartoon-10569
05/30/2022, 11:56 PMlittle-cartoon-10569
05/30/2022, 11:58 PMconst newResource = new provider.NewResource("example", {
value: oldResource.apply(old => `Value for new resource is ${old}`)
});
little-cartoon-10569
05/30/2022, 11:59 PMconst newResource = new provider.NewResource("example", {
value: pulumi.interpolate`Value for new resource is ${oldResource}`
});
mysterious-hamburger-19066
05/31/2022, 5:01 AMlittle-cartoon-10569
05/31/2022, 5:03 AMlittle-cartoon-10569
05/31/2022, 5:04 AMlittle-cartoon-10569
05/31/2022, 5:05 AMapply()
echoing-dinner-19531
05/31/2022, 6:23 AMwitty-vegetable-61961
05/31/2022, 9:52 AMwitty-vegetable-61961
06/08/2022, 10:37 PMlittle-cartoon-10569
06/08/2022, 11:18 PMclientApp.ClientId
is the output you want, you don't need to apply to use it.little-cartoon-10569
06/08/2022, 11:18 PMwitty-vegetable-61961
06/08/2022, 11:21 PMwitty-vegetable-61961
06/08/2022, 11:22 PMlittle-cartoon-10569
06/08/2022, 11:33 PMlittle-cartoon-10569
06/08/2022, 11:34 PMclientApp.ClientId.Apply(id => "consoleApp".exec(id))
little-cartoon-10569
06/08/2022, 11:35 PMpulumi up
is run. This might not be what you want.witty-vegetable-61961
06/08/2022, 11:35 PMlittle-cartoon-10569
06/08/2022, 11:36 PMAll()
that does this. Which language are you using?witty-vegetable-61961
06/09/2022, 8:34 AMlittle-cartoon-10569
06/09/2022, 8:42 AMwitty-vegetable-61961
06/09/2022, 8:48 AMlittle-cartoon-10569
06/09/2022, 9:12 AMechoing-dinner-19531
06/09/2022, 9:13 AMI will be passing this to a console app which will persist it to Octopus DeployYou might want to give the pulumi command package a try for that (https://www.pulumi.com/registry/packages/command/)
witty-vegetable-61961
06/09/2022, 12:41 PM