Closed ErikAGriffin closed 1 year ago
Hi, in my serverless.yml file I've included the following:
serverless.yml
plugins: - serverless-s3-sync custom: s3Sync: buckets: - bucketName: my-bucket bucketPrefix: folder/ localDir: config/folder deleteRemoved: false noSync: true # Prevent removal of objects with `sls remove`
However, when I run sls remove -s stage, the objects are still getting removed from the bucket.
sls remove -s stage
Ah, just by writing this out again I believe I found my issue: noSync is a property that must be under the s3Sync property, not under and individual bucket.
noSync
s3Sync
Hi, in my
serverless.yml
file I've included the following:However, when I run
sls remove -s stage
, the objects are still getting removed from the bucket.