
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@flaconi/serverless-s3-sync
Advanced tools
A plugin to sync local directories and S3 prefixes for Serverless Framework. Updated to use AWS SDK v3.
A plugin to sync local directories and S3 prefixes for Serverless Framework ⚡
🚀 AWS SDK v3 Ready! This is a modernized fork of the original serverless-s3-sync that has been updated to use AWS SDK v3, eliminating the deprecated AWS SDK v2 dependency that reached end-of-life in September 2024.
@auth0/s3 dependencySimply replace in your package.json:
- "serverless-s3-sync": "^3.4.0"
+ "@flaconi/serverless-s3-sync": "^4.0.0"
And in your serverless.yml:
plugins:
- - serverless-s3-sync
+ - "@flaconi/serverless-s3-sync"
No configuration changes needed! All existing configurations work exactly the same.
npm install --save @flaconi/serverless-s3-sync
Add the plugin to your serverless.yml:
plugins:
- "@flaconi/serverless-s3-sync"
Configure your S3 sync settings:
custom:
s3Sync:
- bucketName: my-static-site-assets
bucketPrefix: assets/
localDir: dist/assets
All original configuration options are supported:
custom:
s3Sync:
- bucketName: my-bucket # required
bucketPrefix: assets/ # optional
localDir: dist/assets # required
deleteRemoved: true # optional, defaults to true
acl: public-read # optional
followSymlinks: true # optional
defaultContentType: text/html # optional
params: # optional
- index.html:
CacheControl: 'no-cache'
- "*.js":
CacheControl: 'public, max-age=31536000'
bucketTags: # optional
tagKey1: tagValue1
tagKey2: tagValue2
enabled: true # optional, defaults to true
All original commands work:
# Sync after deployment
sls deploy
# Sync manually
sls s3sync
# Deploy without sync
sls deploy --nos3sync
# Remove with cleanup
sls remove
Works with serverless-offline and serverless-s3-local:
custom:
s3Sync:
endpoint: http://localhost:4569 # for local S3
buckets:
- bucketName: my-local-bucket
localDir: dist/assets
@auth0/s3)This project maintains backward compatibility with the original serverless-s3-sync. We welcome:
The original serverless-s3-sync plugin depends on @auth0/s3 which uses AWS SDK v2. AWS ended support for SDK v2 in September 2024, creating security and maintenance concerns for projects using it.
This fork:
This package is maintained by Flaconi GmbH, a leading beauty e-commerce platform. We're committed to maintaining this package and keeping it up-to-date with the latest AWS SDK versions.
MIT - same as the original project
Based on the excellent work by k1LoW and contributors of the original serverless-s3-sync project.
Need help? Open an issue or check our documentation.
FAQs
A plugin to sync local directories and S3 prefixes for Serverless Framework. Updated to use AWS SDK v3.
We found that @flaconi/serverless-s3-sync demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 50 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.