Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is it possible to exclude files from being removed with DELETE_FLAG in an S3 pipeline? Edited


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?

1 answer

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Trello

📹 Favorite Trello templates

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 ...

75 views 4 5
Read article

Community Events

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

Events near you