s3-deployment: allow disabling "sync --delete"
See original GitHub issueThe current behavior is aws sync --delete
, which means that destination files that don’t exist in source will be deleted. In some scenarios (see #936) it might be useful to retain old files for the transition period when an app is updated.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:19
- Comments:6 (1 by maintainers)
Top Results From Across the Web
aws-cdk/aws-s3-deployment module - AWS Documentation
By default, files in the destination bucket that don't exist in the source will be deleted when the BucketDeployment resource is created or...
Read more >Syncing data to Amazon S3 - Product documentation
If you want to enable or disable sync to S3 for a volume, select the volume and then click Sync to S3 or...
Read more >Troubleshoot failed request to delete an Amazon S3 bucket
To delete an S3 bucket in either scenario, first suspend versioning (if enabled). Then, set up lifecycle rules to expire objects in the...
Read more >AWS Sync Command: A Comprehensive Guide with 6 Examples
The above AWS sync command syncs objects of bucket to files in a local directory by uploading the local files to s3. Because...
Read more >GitLab Container Registry administration
When you disable the Registry by following these steps, you do not remove any ... Sync any changes since the initial data load...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@eladb with that prune option, how will the old files be deleted eventually? it’s necessary to keep them until the deployment is done but afterwards, we still want to remove them.
Still relevant for us too!
We’re trying to set different headers for only index.html, but currently it doesn’t seem to be possible. We’ve tried using two deployments, but since we can’t disable sync --delete it’s always one deployment or the other.
Is there any other way of setting headers for specific objects?