mapbox / cloudfriend

Helper functions for assembling CloudFormation templates in JavaScript
ISC License
69 stars 9 forks source link

Role created by Lambda shortcut does not get the shortcut's Condition #118

Closed drboyer closed 3 years ago

drboyer commented 3 years ago

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).

Affected Versions: v4.5.0