• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

AWS S3 objects not expiring

Ranch Hand
Posts: 540
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

I've set expiration rule through Java code for my S3 objects, but the objects are not expiring from S3.

When I do HEAD-object, I am able to see "Expiration" and the correct rule against the object, but nothing seems to happen even though at least 2 UTC midnights have passed since I set up the rule.

On the other hand, I tried creating a rule manually using the UI in S3. That seems to have removed the object correctly. Both rules had exactly similar prefixes.

When I upload the file, I see that my Java code executes and creates the rule simultaneously, setting up the prefix correctly. I am not sure why removal doesn't happen as expected.

Any help would be greatly appreciated. I can share more details if necessary.

Thank you.
[Thumbnail for HEAD-object.png]
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic