You can add a Condition property to the Lambda shortcut to conditionally create or skip creation of the Lambda region (to skip deploying in certain regions, etc.). Unfortunately, it seems that this condition does not get propagated to ~other resources~ the IAM Role generated by the shortcut. This can cause problems if the Statements reference resources that may not exist at deploy time (missing Resources or Import Values).
You can add a
Condition
property to the Lambda shortcut to conditionally create or skip creation of the Lambda region (to skip deploying in certain regions, etc.). Unfortunately, it seems that this condition does not get propagated to ~other resources~ the IAM Role generated by the shortcut. This can cause problems if theStatements
reference resources that may not exist at deploy time (missing Resources or Import Values).Affected Versions: v4.5.0