Skip to content
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

feat(core): add include property specifying particular files for assets #33132

Draft
wants to merge 24 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs
go-to-k committed Jan 23, 2025
commit e212b4820b3a51f31c0196486b2ec051e9efcdbb
Original file line number Diff line number Diff line change
@@ -15,7 +15,10 @@ class TestStack extends Stack {
exclude: ['subdir/examples/*'],
}),
// code: lambda.Code.fromAsset(path.join(__dirname, 'assets-with-dummy'), {
// exclude: ['*', '!index.py', '!subdir', '!subdir/**/*', 'subdir/examples/*'],
// It can extract with the exclude only, but difficult to understand.
// Also the order is important in the exclude, but it doesn't need in the include.
// OK -> exclude: ['*', '!index.py', '!subdir', '!subdir/**/*', 'subdir/examples/*'],
// NG -> exclude: ['*', 'subdir/examples/*', '!index.py', '!subdir', '!subdir/**/*'],
// }),
runtime: lambda.Runtime.PYTHON_3_12,
handler: 'index.main',