aws-toolkit-azure-devops icon indicating copy to clipboard operation
aws-toolkit-azure-devops copied to clipboard

S3 Upload - provide way to pass --delete argument for delete old files

Open Elecweb opened this issue 3 years ago • 2 comments

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.

Elecweb avatar Jul 29 '20 14:07 Elecweb

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.

hunterwerlla avatar Jul 29 '20 15:07 hunterwerlla

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

cyuste avatar Nov 20 '20 07:11 cyuste