calm-parrot-72437
06/10/2020, 4:26 AMassoc-${i}
, {
clientVpnEndpointId: vpnEndpoint.id,
subnetId: subnetId,
});
i++;
}gentle-diamond-70147
06/10/2020, 4:30 AMpulumi preview --diff
output?calm-parrot-72437
06/10/2020, 4:46 AMgentle-diamond-70147
06/10/2020, 5:01 AMprivateSubnetIds
coming from?privateSubnetIds
doesn't appear to be in consistent order. Sorting it should work.calm-parrot-72437
06/10/2020, 3:36 PMhundreds-musician-51496
06/10/2020, 5:40 PMprivateSubnetId
is unique & stable (doesn't change), then you should be able to hash (sha1/md5) that value and use it to create an ID that won't change. If the ID doesn't change, pulumi won't try to delete/create - it will only update if the subnetId of vpnEndpoint.id value changes.calm-parrot-72437
06/10/2020, 7:30 PMhundreds-musician-51496
06/10/2020, 9:05 PMcalm-parrot-72437
06/10/2020, 11:53 PMassoc-${subnetId}
, {
clientVpnEndpointId: vpnEndpoint.id,
subnetId: subnetId,
}));
}hundreds-musician-51496
06/12/2020, 4:19 PM