-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Description
Asset bundling is currently broken when using the --exclusively option during deploy.
In our case we have an aws-lambda-nodejs with forceDockerBuild set to true (but it shouldn't matter).
However, due to the following check the bundling never happens when e.g. running cdk deploy --exclusively 'MyStack' -
as in it will skip the bundling step completely.
Concretely, this minimatch evaluates to false for any given stack name, except when using --all which evaluates to the wildcard * satisfying anything.
| skip = !bundlingStacks.find(pattern => minimatch(Stack.of(this).stackName, pattern)); |
That is because Stack.of(this).stackName is not resolved at this point. The screenshot shows the output of running with --all (bundlingStacks contains [*]) against the unresolved stack name:
Tested on Linux and Windows and CDK 1.88.
This is 🐛 Bug Report
