amazon web services - aws s3 replace file atomically -


environment

  • i copied file, ./barname.bin, s3, using command aws s3 cp ./barname.bin s3://fooname/barname.bin

  • i have different file, ./barname.1.bin want upload in place of file


how can upload , replace (overwrite) file @ s3://fooname/barname.bin ./barname.1.bin?

goals:

  • don't change s3 url used access file (new file should available @ s3://fooname/barname.bin).
  • zero/minimum 'downtime'/unavailability of s3 link.

as understand it, you've got existing file located @ s3://fooname/barname.bin , want replace new file. replace that, should upload new 1 on top of old one: aws s3 cp ./barname.1.bin s3://fooname/barname.bin.

the old file replaced. according s3 docs, this atomic, though due ec2s replication pattern, requests key may still return old file time.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -