serverless-s3-sync icon indicating copy to clipboard operation
serverless-s3-sync copied to clipboard

Exclude files

Open aldarund opened this issue 6 years ago • 2 comments

Is it possible to exclude files by pattern\directory? For example i dont want to upload source map

aldarund avatar Jun 15 '18 23:06 aldarund

👍 I'm uploading to a bucket used for EMR/pyspark and it uploads the *.pyc and the timestamps on the files are off so the *.pyc files (which are outdated) now have a newer in s3 than the *.py files. It would be nice if I could exclude these files rather than having to delete or update all *.pyc files before I deploy.

TimLudwinski avatar May 24 '19 15:05 TimLudwinski

I support the need for this functionality. Is this in the roadmap?

As an alternate, if this isn't possible, can we have a failSilently flag, which doesn't end the process if any single file upload fails? This is so that we could add a bucket policy to DENY PutObject for *.map files. This is also the default behavior for CLI aws sync command.

pritamrungta avatar May 16 '23 13:05 pritamrungta