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
Add possibility for to exclude not needed files from deployment package #308
Comments
The local package logic actually exists in the AWS CLI ( |
FYI for anyone that comes across this. The new |
In addition to the above .npmignore tip, file property of package.json also works with https://docs.npmjs.com/misc/developers#keeping-files-out-of-your-package
|
@talawahtech I tried this, but I can still see the files inside the |
Is this possible to do? Is there a flag to pass with files that one can exclude during |
+1 none of the proposed solutions work for a project other than node-js. This feature would be very useful. |
Quick workaround with a .samignore file and a clean-sam-build.sh .samignore
clean-sam-build.sh
|
Same. Seems no longer to be working |
One other approach –for all projects– instead of ignoring files, could be including a soft-linked file of only other files or directories that you want to be included, in your CodeUri. |
Hello here is my project structure:
And here is template.yaml content:
When i deploy for example Func2, result package contain all folders inside application, instead only Func2. Is it possible to configure through yaml file, what files will included in result package?
For example if i deploy Func2 i want to see in package next:
The text was updated successfully, but these errors were encountered: