sparse-intern-71089
09/21/2022, 4:06 PMsquare-hair-965
09/21/2022, 4:07 PMpulumi.all({group1, group2}) and then doing dot notation .apply([...groups]) would work and not break pulumi plan tracking?little-cartoon-10569
09/21/2022, 8:12 PMall() or apply().little-cartoon-10569
09/21/2022, 8:14 PMapply(), then the answer depends on what's happening in the apply(). If it's a simple pulumi.info.log() or similar, then you can use the ... notation still. If you're creating more resources, then plan tracking will break, and you'll need to find another way to solve the problem.square-hair-965
09/21/2022, 8:14 PMsquare-hair-965
09/21/2022, 8:15 PMlittle-cartoon-10569
09/21/2022, 8:16 PMsquare-hair-965
09/21/2022, 8:17 PMsquare-hair-965
09/21/2022, 8:18 PMsquare-hair-965
09/21/2022, 8:19 PMlittle-cartoon-10569
09/21/2022, 8:20 PMlittle-cartoon-10569
09/21/2022, 8:20 PMsquare-hair-965
09/21/2022, 8:21 PMsquare-hair-965
09/21/2022, 8:21 PMlittle-cartoon-10569
09/21/2022, 8:21 PMsquare-hair-965
09/21/2022, 8:22 PMlittle-cartoon-10569
09/21/2022, 8:23 PMsquare-hair-965
09/21/2022, 8:26 PMsquare-hair-965
09/21/2022, 8:50 PMexport const metricAlarms = pulumi.all(_metricAlarms).apply(([...alarms]) => alarms.map((alarm) => {
return {
id: alarm.id,
arn: alarm.arn
}
}));
i get the stripped down export I want and can simply just add new MetricAlarms to the _metricAlarm array