I am working on an s3 pipeline for a project I am working on. I would like to utilize the DELETE_FLAG variable to empty the destination bucket before the pipeline deploys the latest built code, but I would like to exclude a particular set of files from being removed during this process. Typically I do this manually with the following S3 command: aws s3 rm --recursive --exclude "sitemap*" s3://BUCKET
I was looking at the EXTRA_ARGS variable but this appears to only apply to what is being uploaded to the bucket. Is there any way for me to prevent files with the name sitemap (wildcard) from being deleted when using the DELETE_FLAG variable in my S3 pipeline?
Hello, @Kind !
Actually, in the pipe aws-s3-deploy pipe we are using sync aws cli command with this flag.
As I see AWS cli sync does not accept such an argument that you would like to use in EXTRA_ARGS since this is quite specific case.
But you can still remove not needed files with your command in after-script section
Hello Community! My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. In this video, I'll share my favorite Trello templates. Templates mentioned in ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events