{"id":76210,"date":"2020-10-20T12:09:41","date_gmt":"2020-10-20T12:09:41","guid":{"rendered":"https:\/\/www.whizlabs.com\/blog\/?p=76210"},"modified":"2022-05-25T06:47:24","modified_gmt":"2022-05-25T12:17:24","slug":"create-a-lifecycle-policy-for-an-s3-bucket","status":"publish","type":"post","link":"https:\/\/www.whizlabs.com\/blog\/create-a-lifecycle-policy-for-an-s3-bucket\/","title":{"rendered":"How to Create a Lifecycle Policy for an S3 Bucket?"},"content":{"rendered":"<p style=\"text-align: justify;\"><em>Want to learn how to create a Lifecycle Policy for an S3 Bucket and optimize your AWS costs? Here we bring a step by step, detailed guide on how to create a lifecycle policy for an S3 bucket. Let&#8217;s dive deep and learn!\u00a0<\/em><\/p>\n<p style=\"text-align: justify;\"><span data-preserver-spaces=\"true\">Amazon S3 Bucket is a powerful storage tool for cloud computing. Different S3 storage classes allow you to store different types of data according to your access needs. AWS lifecycle policy actions include transitioning objects between classes, deleting or archiving them. You can create a lifecycle policy for all your S3 objects in a single bucket. These objects should use a shared tag or prefix. More so, you can have as many as 1000 policies for each S3 bucket.<\/span><\/p>\n<p style=\"text-align: justify;\"><span data-preserver-spaces=\"true\">Creating an Amazon S3 Lifecycle Policy is one of the best <a href=\"https:\/\/www.whizlabs.com\/blog\/aws-cost-optimization-best-practices\/\" target=\"_blank\" rel=\"noopener noreferrer\">AWS cost optimization best practices<\/a> that safely manages how data is stored in your S3 buckets. Using a lifecycle policy, you are instructing Amazon AWS on how to handle an object throughout its lifetime. A lifecycle policy will also let you define actions that apply to modern and legacy versions of objects. Lifecycle Policies are, therefore, crucial for cloud security, internal policy compliance, compliance with legislative requirements, and housekeeping.\u00a0<\/span><\/p>\n<blockquote><p>Try Now: <a href=\"https:\/\/play.whizlabs.com\/site\/task_details?lab_type=1&amp;task_id=45&amp;quest_id=31\" target=\"_blank\" rel=\"noopener noreferrer\">Free AWS Lab for Creating an S3 Lifecycle Policy<\/a><\/p><\/blockquote>\n<h2 style=\"text-align: justify;\"><span data-preserver-spaces=\"true\">How to Create a Lifecycle Policy for an S3 Bucket<\/span><\/h2>\n<p>So, are you ready to reduce your AWS bills with the Amazon S3 Lifecycle Policy AWS cost optimization strategy? If yes, let&#8217;s move forward to the step-by-step guide on how to create a lifecycle policy for an S3 bucket.<\/p>\n<p style=\"text-align: justify;\"><span data-preserver-spaces=\"true\">1. Log in to your AWS console. If you don\u2019t have an AWS account, you can sign up for a free-tier one. This gives you 12-month access to basic AWS Services that you can use to configure, test, and deploy your cloud projects.<\/span><\/p>\n<p style=\"text-align: justify;\"><span data-preserver-spaces=\"true\">Go to the\u00a0<\/span><a class=\"editor-rtfLink\" href=\"https:\/\/aws.amazon.com\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span data-preserver-spaces=\"true\">AWS Homepage<\/span><\/a><span data-preserver-spaces=\"true\">, Click\u00a0<\/span><strong><span data-preserver-spaces=\"true\">My Account<\/span><\/strong><span data-preserver-spaces=\"true\">, then select\u00a0<\/span><strong><span data-preserver-spaces=\"true\">AWS Management Console<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0under the pop-up menu.<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-76211 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image1.jpg\" alt=\"AWS Login Console\" width=\"1999\" height=\"759\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image1.jpg 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image1-300x114.jpg 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image1-1024x389.jpg 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image1-768x292.jpg 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image1-1536x583.jpg 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image1-1106x420.jpg 1106w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image1-640x243.jpg 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image1-681x259.jpg 681w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><\/p>\n<p style=\"text-align: justify;\">2. Click on <strong>Services<\/strong>, and you\u2019ll be redirected to a services tab displaying several AWS services categorized by functionality.<\/p>\n<p style=\"text-align: justify;\"><span data-preserver-spaces=\"true\">In the\u00a0<\/span><strong><span data-preserver-spaces=\"true\">Services\u00a0<\/span><\/strong><span data-preserver-spaces=\"true\">tab, under the\u00a0<\/span><strong><span data-preserver-spaces=\"true\">Storage\u00a0<\/span><\/strong><span data-preserver-spaces=\"true\">category, select\u00a0<\/span><strong><span data-preserver-spaces=\"true\">S3.<\/span><\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-76215 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image4-3.png\" alt=\"AWS Services Dashboard\" width=\"1758\" height=\"1083\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image4-3.png 1758w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image4-3-300x185.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image4-3-1024x631.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image4-3-768x473.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image4-3-1536x946.png 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image4-3-682x420.png 682w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image4-3-640x394.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image4-3-681x420.png 681w\" sizes=\"(max-width: 1758px) 100vw, 1758px\" \/><\/p>\n<blockquote><p>Enroll Now: <a href=\"https:\/\/www.whizlabs.com\/aws-cost-optimization\/\" target=\"_blank\" rel=\"noopener noreferrer\">AWS Cost Optimization Training<\/a><\/p><\/blockquote>\n<p style=\"text-align: justify;\">3. You will be sent to a page that lists all your S3 buckets. Select the bucket for which you\u2019d want to set lifecycle policies. This takes you to an overview tab that shows the contents of that bucket.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-76212 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image2-3-e1602708713388.png\" alt=\"AWS S3 Bucket List\" width=\"1999\" height=\"744\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image2-3-e1602708713388.png 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image2-3-e1602708713388-300x112.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image2-3-e1602708713388-1024x381.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image2-3-e1602708713388-768x286.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image2-3-e1602708713388-1536x572.png 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image2-3-e1602708713388-1128x420.png 1128w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image2-3-e1602708713388-640x238.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image2-3-e1602708713388-681x253.png 681w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-76217 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image6-3.png\" alt=\"AWS S3 Bucket Preview\" width=\"1023\" height=\"726\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image6-3.png 1023w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image6-3-300x213.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image6-3-768x545.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image6-3-592x420.png 592w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image6-3-640x454.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image6-3-681x483.png 681w\" sizes=\"(max-width: 1023px) 100vw, 1023px\" \/><\/p>\n<p style=\"text-align: justify;\"><strong><span data-preserver-spaces=\"true\">Quick Tip:\u00a0<\/span><em><span data-preserver-spaces=\"true\">Versioning<\/span><\/em><span data-preserver-spaces=\"true\">\u00a0<\/span><\/strong><span data-preserver-spaces=\"true\">allows you to set different lifecycle policies for different versions of objects. To enable versioning, click on your dashboard\u2019s <\/span><strong><span data-preserver-spaces=\"true\">Properties\u00a0<\/span><\/strong><span data-preserver-spaces=\"true\">tab, and click on the button in the\u00a0<\/span><strong><span data-preserver-spaces=\"true\">Versioning\u00a0<\/span><\/strong><span data-preserver-spaces=\"true\">column next to the word\u00a0<\/span><strong><span data-preserver-spaces=\"true\">Disabled.\u00a0<\/span><\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-76216 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image5-3.png\" alt=\"AWS S3 Bucket Versioning\" width=\"1213\" height=\"868\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image5-3.png 1213w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image5-3-300x215.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image5-3-1024x733.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image5-3-768x550.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image5-3-587x420.png 587w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image5-3-640x458.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image5-3-681x487.png 681w\" sizes=\"(max-width: 1213px) 100vw, 1213px\" \/><\/p>\n<p style=\"text-align: justify;\"><span data-preserver-spaces=\"true\">4. The <\/span><strong><span data-preserver-spaces=\"true\">Management\u00a0<\/span><\/strong><span data-preserver-spaces=\"true\">tab is where you will find all you need to create a lifecycle policy for your S3 bucket. Once you have clicked on the\u00a0<\/span><strong><span data-preserver-spaces=\"true\">Management\u00a0<\/span><\/strong><span data-preserver-spaces=\"true\">tab, click\u00a0<\/span><strong><span data-preserver-spaces=\"true\">\u2018Add Lifecycle Rule\u2019\u00a0<\/span><\/strong><span data-preserver-spaces=\"true\">among the options presented to you.<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-76224 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image8-2.png\" alt=\"AWS S3 Bucket - Add Lifecycle Rule\" width=\"1430\" height=\"578\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image8-2.png 1430w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image8-2-300x121.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image8-2-1024x414.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image8-2-768x310.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image8-2-1039x420.png 1039w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image8-2-640x259.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image8-2-681x275.png 681w\" sizes=\"(max-width: 1430px) 100vw, 1430px\" \/><\/p>\n<p style=\"text-align: justify;\"><span data-preserver-spaces=\"true\">5. Clicking on the <\/span><strong><span data-preserver-spaces=\"true\">Add Lifecycle Rule\u00a0<\/span><\/strong><span data-preserver-spaces=\"true\">button brings up a dialog box that lets you set your rule\u2019s\u00a0<\/span><strong><span data-preserver-spaces=\"true\">Name, Transition, Expiration,\u00a0<\/span><\/strong><span data-preserver-spaces=\"true\">and allows you to\u00a0<\/span><strong><span data-preserver-spaces=\"true\">Review\u00a0<\/span><\/strong><span data-preserver-spaces=\"true\">all your rule\u2019s settings.<\/span><\/p>\n<p style=\"text-align: justify;\">On the <strong>Name and Scope<\/strong> tab, enter a relevant Rule Name which must be unique and that helps you identify the Lifecycle later by its name.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-76218\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image7-1.png\" alt=\"AWS S3 Bucket Lifecycle Rule - Scope\" width=\"979\" height=\"495\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image7-1.png 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image7-1-300x152.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image7-1-1024x519.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image7-1-768x389.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image7-1-1536x778.png 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image7-1-829x420.png 829w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image7-1-640x324.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image7-1-681x345.png 681w\" sizes=\"(max-width: 979px) 100vw, 979px\" \/><\/p>\n<p style=\"text-align: justify;\"><strong><span data-preserver-spaces=\"true\">Quick Tip: <\/span><\/strong>AWS allows object tagging for easy segregation of storage. <span data-preserver-spaces=\"true\">If your S3 bucket does not have any object tags, skip the\u00a0<\/span><strong><span data-preserver-spaces=\"true\">\u2018Add filter to limit scope to prefix\/tags\u2019\u00a0<\/span><\/strong><span data-preserver-spaces=\"true\">portion. To know more about Prefix\/Tags, <a href=\"https:\/\/docs.aws.amazon.com\/AmazonS3\/latest\/dev\/object-tagging.html\" target=\"_blank\" rel=\"noopener noreferrer\">click here<\/a>.\u00a0<\/span><\/p>\n<p style=\"text-align: justify;\"><span data-preserver-spaces=\"true\">Once you\u2019ve named your rule, click\u00a0<\/span><strong><span data-preserver-spaces=\"true\">Next.<\/span><\/strong><\/p>\n<p style=\"text-align: justify;\"><span data-preserver-spaces=\"true\">6. The next page lets you configure your bucket\u2019s storage class <\/span><strong><span data-preserver-spaces=\"true\">Transition\u00a0<\/span><\/strong><span data-preserver-spaces=\"true\">options. This lets you instruct AWS on how to transition objects between the Standard S3 class and the Standard-IA, Glacier, Deep Storage Archives, and One Zone-IA.<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-76221 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image10-1-e1602712263561.png\" alt=\"AWS S3 Bucket Lifecycle Rule - Transitions\" width=\"1999\" height=\"644\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image10-1-e1602712263561.png 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image10-1-e1602712263561-300x97.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image10-1-e1602712263561-1024x330.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image10-1-e1602712263561-768x247.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image10-1-e1602712263561-1536x495.png 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image10-1-e1602712263561-1304x420.png 1304w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image10-1-e1602712263561-640x206.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image10-1-e1602712263561-681x219.png 681w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><\/p>\n<p style=\"text-align: justify;\"><strong><span data-preserver-spaces=\"true\">Quick Tip:\u00a0<\/span><\/strong><span data-preserver-spaces=\"true\">Since we enabled versioning, you can set different transitions for your bucket objects&#8217; previous and current versions.\u00a0<\/span><\/p>\n<p style=\"text-align: justify;\"><span data-preserver-spaces=\"true\">To add a transition to your object&#8217;s current version, click the radio button beside the words\u00a0<\/span><strong><span data-preserver-spaces=\"true\">Current Version,\u00a0<\/span><\/strong><span data-preserver-spaces=\"true\">then click\u00a0<\/span><strong><span data-preserver-spaces=\"true\">Add Transition.\u00a0<\/span><\/strong><span data-preserver-spaces=\"true\">You can do the same for previous versions of your object and select both buttons if you&#8217;d like to apply the transition to all versions of your object.<\/span><\/p>\n<p style=\"text-align: justify;\"><span data-preserver-spaces=\"true\">Each transition gives you five options:\u00a0<\/span><\/p>\n<ul style=\"text-align: justify;\">\n<li>Transition to Standard-IA after<\/li>\n<li>Transition to Intelligent Tiering after<\/li>\n<li>Transition to One Zone-IA after<\/li>\n<li>Transition to Glacier After<\/li>\n<li>Transition to Glacier Deep Archive After<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><span data-preserver-spaces=\"true\">You choose the S3 Storage Class you want to move your data after a set number of days.<\/span><\/p>\n<p style=\"text-align: justify;\"><span data-preserver-spaces=\"true\">Once you have set all your transitions, click\u00a0<\/span><strong><span data-preserver-spaces=\"true\">Next.<\/span><\/strong><\/p>\n<blockquote><p>Also Read: <a href=\"https:\/\/www.whizlabs.com\/blog\/ways-to-reduce-your-aws-bill\/\" target=\"_blank\" rel=\"noopener noreferrer\">8 Ways to Reduce Your AWS Bill<\/a><\/p><\/blockquote>\n<p><img decoding=\"async\" class=\"alignnone wp-image-76221 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image10-1-e1602712263561.png\" alt=\"AWS S3 Bucket Lifecycle Rule - Transition Days\" width=\"1999\" height=\"644\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image10-1-e1602712263561.png 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image10-1-e1602712263561-300x97.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image10-1-e1602712263561-1024x330.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image10-1-e1602712263561-768x247.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image10-1-e1602712263561-1536x495.png 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image10-1-e1602712263561-1304x420.png 1304w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image10-1-e1602712263561-640x206.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image10-1-e1602712263561-681x219.png 681w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><\/p>\n<p style=\"text-align: justify;\">7. The next step lets you configure the expiration of your S3 bucket objects.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-76222 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image11-1-e1602712358726.png\" alt=\"AWS S3 Bucket Lifecycle Rule - Expiration\" width=\"1999\" height=\"1119\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image11-1-e1602712358726.png 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image11-1-e1602712358726-300x168.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image11-1-e1602712358726-1024x573.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image11-1-e1602712358726-768x430.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image11-1-e1602712358726-1536x860.png 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image11-1-e1602712358726-750x420.png 750w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image11-1-e1602712358726-640x358.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image11-1-e1602712358726-681x381.png 681w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><\/p>\n<p style=\"text-align: justify;\"><span data-preserver-spaces=\"true\">For this exercise, we&#8217;ll be configuring expiration for both the current and previous versions of our data. Let&#8217;s check the boxes next to both the\u00a0<\/span><strong><em><span data-preserver-spaces=\"true\">Current version\u00a0<\/span><\/em><\/strong><em><span data-preserver-spaces=\"true\">and\u00a0<\/span><\/em><strong><em><span data-preserver-spaces=\"true\">Previous version\u00a0<\/span><\/em><\/strong><em><span data-preserver-spaces=\"true\">options.\u00a0<\/span><\/em><\/p>\n<p style=\"text-align: justify;\"><span data-preserver-spaces=\"true\">Check the box next to\u00a0<\/span><strong><span data-preserver-spaces=\"true\">Expire Current Version of This Object,\u00a0<\/span><\/strong><span data-preserver-spaces=\"true\">then set the number of days it will be deleted. When you choose this expire option, you cannot clean up expired object delete markers. In our case, we made the number of days 295.<\/span><\/p>\n<p style=\"text-align: justify;\"><span data-preserver-spaces=\"true\">Check the box next to\u00a0<\/span><strong><span data-preserver-spaces=\"true\">Permanently Delete Previous Versions\u00a0<\/span><\/strong><span data-preserver-spaces=\"true\">and enter the number of days between when the object becomes a previous version and its permanent deletion.<\/span><\/p>\n<p style=\"text-align: justify;\"><span data-preserver-spaces=\"true\">Check the box next to\u00a0<\/span><strong><span data-preserver-spaces=\"true\">Clean up incomplete multipart uploads\u00a0<\/span><\/strong><span data-preserver-spaces=\"true\">and set the number of days when large, partly uploaded objects can be deleted.<\/span><\/p>\n<p style=\"text-align: justify;\"><span data-preserver-spaces=\"true\">When you are done with the expiration configuration options, press\u00a0<\/span><strong><span data-preserver-spaces=\"true\">Next.<\/span><\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-76227 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image11-3-e1602712338564.png\" alt=\"AWS S3 Bucket Lifecycle Rule - Expired Objects\" width=\"1999\" height=\"924\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image11-3-e1602712338564.png 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image11-3-e1602712338564-300x139.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image11-3-e1602712338564-1024x473.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image11-3-e1602712338564-768x355.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image11-3-e1602712338564-1536x710.png 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image11-3-e1602712338564-909x420.png 909w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image11-3-e1602712338564-640x296.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image11-3-e1602712338564-681x315.png 681w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-76228 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image3-4-e1602712564937.png\" alt=\"AWS S3 Bucket Lifecycle Rule - Review\" width=\"1539\" height=\"509\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image3-4-e1602712564937.png 1539w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image3-4-e1602712564937-300x99.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image3-4-e1602712564937-1024x339.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image3-4-e1602712564937-768x254.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image3-4-e1602712564937-1536x508.png 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image3-4-e1602712564937-1270x420.png 1270w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image3-4-e1602712564937-640x212.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/image3-4-e1602712564937-681x225.png 681w\" sizes=\"(max-width: 1539px) 100vw, 1539px\" \/><\/p>\n<p style=\"text-align: justify;\">8. The Review tab lets you verify all your rule configuration settings. If you are unsatisfied with your settings, click Previous, and make corrections. If the settings match your needs, click Save. All Error-free rules are enabled and can be accessed on the Lifecycle page.<\/p>\n<p style=\"text-align: justify;\"><span data-preserver-spaces=\"true\">Your lifecycle policy is active and will direct AWS on transitions and expirations for your S3 bucket objects.<\/span><\/p>\n<blockquote>\n<p style=\"text-align: justify;\">Preparing to become an AWS Certified Solutions Architect? Follow this <a href=\"https:\/\/www.whizlabs.com\/blog\/new-aws-csaa-exam-preparation-released-march-2020\/\" target=\"_blank\" rel=\"noopener noreferrer\">preparation guide for the AWS Certified Solutions Architect Associate exam<\/a> and get ready to pass the exam.<\/p>\n<\/blockquote>\n<h3 style=\"text-align: justify;\"><span data-preserver-spaces=\"true\">Bottom Line<\/span><\/h3>\n<p style=\"text-align: justify;\"><span data-preserver-spaces=\"true\">An AWS S3 Lifecycle policy is excellent at optimizing your cloud costs if your bucket objects have a definite life cycle. If you upload your data to AWS for archiving, this tool will help you save tons in storage costs. The tool is also perfect for data that users access for a specific time duration. <\/span><\/p>\n<p style=\"text-align: justify;\"><span data-preserver-spaces=\"true\">With a proper understanding of your users&#8217; access patterns, you can create a lifecycle policy that will avail your data as-needed at slashed storage costs. Lifecycle policies are also worth a try if you upload periodic logs to an S3 bucket, as this improves availability and accessibility for applications that use them until they aren&#8217;t needed.<\/span><\/p>\n<p style=\"text-align: justify;\">AWS Cost Optimization is important to save on AWS bills when you are using the AWS platform and multiple AWS services. Hope this detailed guide will help create a lifecycle policy for an S3 Bucket and save on AWS bills. So, use this guide now and reduce your AWS bills. If you want to learn the hidden strategies of AWS cost optimization, enroll in <a href=\"https:\/\/www.whizlabs.com\/aws-cost-optimization\/\" target=\"_blank\" rel=\"noopener noreferrer\">Cost Optimization in AWS training course<\/a>, and become an AWS pro!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Want to learn how to create a Lifecycle Policy for an S3 Bucket and optimize your AWS costs? Here we bring a step by step, detailed guide on how to create a lifecycle policy for an S3 bucket. Let&#8217;s dive deep and learn!\u00a0 Amazon S3 Bucket is a powerful storage tool for cloud computing. Different S3 storage classes allow you to store different types of data according to your access needs. AWS lifecycle policy actions include transitioning objects between classes, deleting or archiving them. You can create a lifecycle policy for all your S3 objects in a single bucket. These [&hellip;]<\/p>\n","protected":false},"author":169,"featured_media":76265,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4],"tags":[123,184,1408],"class_list":["post-76210","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws-certifications","tag-amazon-aws","tag-aws","tag-s3"],"uagb_featured_image_src":{"full":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/creating-lifecycle-policy-for-an-s3-bucket.jpg",600,315,false],"thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/creating-lifecycle-policy-for-an-s3-bucket-150x150.jpg",150,150,true],"medium":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/creating-lifecycle-policy-for-an-s3-bucket-300x158.jpg",300,158,true],"medium_large":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/creating-lifecycle-policy-for-an-s3-bucket.jpg",600,315,false],"large":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/creating-lifecycle-policy-for-an-s3-bucket.jpg",600,315,false],"1536x1536":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/creating-lifecycle-policy-for-an-s3-bucket.jpg",600,315,false],"2048x2048":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/creating-lifecycle-policy-for-an-s3-bucket.jpg",600,315,false],"profile_24":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/creating-lifecycle-policy-for-an-s3-bucket.jpg",24,13,false],"profile_48":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/creating-lifecycle-policy-for-an-s3-bucket.jpg",48,25,false],"profile_96":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/creating-lifecycle-policy-for-an-s3-bucket.jpg",96,50,false],"profile_150":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/creating-lifecycle-policy-for-an-s3-bucket.jpg",150,79,false],"profile_300":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/creating-lifecycle-policy-for-an-s3-bucket.jpg",300,158,false],"tptn_thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/creating-lifecycle-policy-for-an-s3-bucket-250x250.jpg",250,250,true],"web-stories-poster-portrait":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/creating-lifecycle-policy-for-an-s3-bucket.jpg",600,315,false],"web-stories-publisher-logo":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/creating-lifecycle-policy-for-an-s3-bucket.jpg",96,50,false],"web-stories-thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2020\/10\/creating-lifecycle-policy-for-an-s3-bucket.jpg",150,79,false]},"uagb_author_info":{"display_name":"Girdharee Saran","author_link":"https:\/\/www.whizlabs.com\/blog\/author\/girdharee\/"},"uagb_comment_info":5,"uagb_excerpt":"Want to learn how to create a Lifecycle Policy for an S3 Bucket and optimize your AWS costs? Here we bring a step by step, detailed guide on how to create a lifecycle policy for an S3 bucket. Let&#8217;s dive deep and learn!\u00a0 Amazon S3 Bucket is a powerful storage tool for cloud computing. Different&hellip;","_links":{"self":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/76210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/users\/169"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/comments?post=76210"}],"version-history":[{"count":17,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/76210\/revisions"}],"predecessor-version":[{"id":79478,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/76210\/revisions\/79478"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/media\/76265"}],"wp:attachment":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/media?parent=76210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/categories?post=76210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/tags?post=76210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}