aws-toolkit-azure-devops
aws-toolkit-azure-devops copied to clipboard
S3 Upload - provide way to pass --delete argument for delete old files
We currently use S3 Upload task for upload to s3 for hosting website. It works really great but old files doesn't get remove.(Since most builder tool for client side application do cache busting out of the box, it generate new files when code changes)
In my opinion, there're 2 ways
- provide checkbox for delete old files (we can do this via passing --delete arg to aws cli)
- provide input for passing custom argument, so we don't need to have interface for every argument or only have one that's used frequently so UI isn't complicated with many input.
Hello, the AWS CLI task could do this for you. The project does not use the cli, but the AWS JS SDK, so I'm not sure how viable adding a delete to the task is. I'll flag this as a feature request to investigate.
I was looking for a feature request of an s3 sync task and (more or less) here it is :) I can try to develop it by myself but I would need some guidance