<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Abhishek Rai</title>
    <description>The latest articles on DEV Community by Abhishek Rai (@arai).</description>
    <link>https://dev.to/arai</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1897173%2F8e6f5ed8-43a0-40ce-b1d2-66a03271f015.png</url>
      <title>DEV Community: Abhishek Rai</title>
      <link>https://dev.to/arai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/arai"/>
    <language>en</language>
    <item>
      <title>Save costs on your versioning-enabled S3 bucket!</title>
      <dc:creator>Abhishek Rai</dc:creator>
      <pubDate>Wed, 07 Aug 2024 15:59:47 +0000</pubDate>
      <link>https://dev.to/arai/save-costs-on-your-versioning-enabled-s3-bucket-2jmk</link>
      <guid>https://dev.to/arai/save-costs-on-your-versioning-enabled-s3-bucket-2jmk</guid>
      <description>&lt;p&gt;Just enable lifecycle policies in your versioning enabled bucket which expires Non Current Versions after 7 days. &lt;/p&gt;

&lt;p&gt;Read this document - &lt;a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-expire-general-considerations.html" rel="noopener noreferrer"&gt;link&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "Rules": [
    {
      "ID": "ExpireNonCurrentVersionsAfter7Days",
      "Status": "Enabled",
      "Filter": {
        "Prefix": ""
      },
      "NoncurrentVersionExpiration": {
        "NoncurrentDays": 7
      }
    }
  ]
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. Keeping it short. You can add filter conditions in case you want to keep the deletion radius smaller.&lt;/p&gt;

</description>
      <category>aws</category>
    </item>
  </channel>
</rss>
