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

can we exlcude specific files from mentioned source directory? #4

Open
jagadish432 opened this issue Nov 20, 2020 · 1 comment
Open

Comments

@jagadish432
Copy link

I have a common folder containing shared files, now I gave the path to this common folder in the 'source' section, and in the destination section of 'packageCopyCommon' I gave some required path like 'src/common/' so that my lambda handler can easily access these shared files.

Now, I want to exclude some of the files in the common folder before copying to the destination path, is that possible ?? is there any way to do that ??

@norayr-im
Copy link

norayr-im commented Dec 21, 2022

At function level you can exclude them, but I would like to do it while packaging.
What I did is:

functions:
  func1:
    package:
      patterns:
        - '!your_new_external_package/README.md'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants