salmon-account-74572
06/09/2020, 4:49 PMpush
to create new items in an array deprecated/not supported in Pulumi 2.x? Example:
let privRtAssoc = [];
for (let i = 0; i < numberOfAZs; i++) {
privRtAssoc.push(new aws.ec2.RouteTableAssociation(`${baseName}-priv-rta-${i+1}`, {
routeTableId: privRt[i].id,
subnetId: privSubnetIds[i],
}));
};
I'm asking because I use this pattern a fair amount and need to find a replacement before migrating to Pulumi 2.x (yes, I'm lagging behind).gentle-diamond-70147
06/09/2020, 4:52 PMsalmon-account-74572
06/09/2020, 4:54 PM