dhruv's wiki

April 2021 Mistakes I made writing IAC

Resources

Properties based on language control flow

If a property (like availablity zone) is based on a for loop, it is likely to change if the order of the loop is changed.

cdk-for-loop

cdk-for-loop-2

If the list is changed, the availablity zones will also change, leading to creation of new AWS resources (as opposed to updating in place).