Hello,
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?