-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[core] Skipping bundling on stack with -e flag #10732
Labels
@aws-cdk/core
Related to core CDK functionality
bug
This issue is a bug.
in-progress
This issue is being actively worked on.
needs-triage
This issue or PR still needs to be triaged.
Comments
quantumew
added
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
labels
Oct 6, 2020
SomayaB
changed the title
aws-cdk/core - Skipping bundling on stack with -e flag
[core] Skipping bundling on stack with -e flag
Oct 6, 2020
quantumew
pushed a commit
to quantumew/aws-cdk
that referenced
this issue
Oct 7, 2020
quantumew
pushed a commit
to quantumew/aws-cdk
that referenced
this issue
Oct 7, 2020
mergify bot
pushed a commit
that referenced
this issue
Oct 8, 2020
Use `minimatch` to match stack names when deciding whether to bundle assets or not. This will ensure that when `cdk deploy -e '*-stack'` is run and there is a stack with assets named `'my-stack`, the assets are bundled. fixes #10732 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
@aws-cdk/core
Related to core CDK functionality
bug
This issue is a bug.
in-progress
This issue is being actively worked on.
needs-triage
This issue or PR still needs to be triaged.
If I run
cdk deploy -e '*-whatever'
and the stack that matches that pattern has assets that need bundling, they are not bundled. However if I docdk deploy -e 'fullname-whatever'
, they are bundled. This-e
bundling feature should support partial wildcards, right? Glad to PR if so.Here is the line that likely needs updating https://github.com/aws/aws-cdk/blob/master/packages/@aws-cdk/core/lib/asset-staging.ts#L140. It looks like it only supports a full wildcard or an exact match.
Reproduction Steps
Have a stack with assets that is named
fullname-whatever
cdk deploy -e '*-whatever'
<- no assets bundledcdk deploy -e 'fullname-whatever'
<- assets bundledWhat did you expect to happen?
I expect any stack being built to get their assets built.
What actually happened?
Assets were not built with partial wildcard.
Environment
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: