{"id":3570,"date":"2026-05-08T00:35:00","date_gmt":"2026-05-07T16:35:00","guid":{"rendered":"https:\/\/ichwanchandra.com\/blog\/?p=3570"},"modified":"2026-12-02T10:32:19","modified_gmt":"2026-12-02T02:32:19","slug":"aws-solutions-architect-project-cost-optimization-part-4","status":"publish","type":"post","link":"https:\/\/ichwanchandra.com\/blog\/aws-solutions-architect-project-cost-optimization-part-4\/","title":{"rendered":"AWS Solutions Architect Project (Cost Optimization Pillar) \u2013 Automated Cost Management \u2013 Part 4"},"content":{"rendered":"\n<p>In this final part, we will execute the <strong>CostManager cleanup automation<\/strong>, which helps identify and remove unused AWS resources, such as unattached <strong>EBS volumes<\/strong>, un-associated <strong>Elastic IPs<\/strong>, and optionally **idle EC2 instances,**to reduce unnecessary spend. We&#8217;ll also apply S3 lifecycle policy to automatically transition old objects to cheaper storage tiers over time. All steps prioritize <strong>cost optimization<\/strong> and <strong>manual control<\/strong> through approval-based workflows.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Execute the Automation Document<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to AWS Systems Manager console, select <strong>Document<\/strong><\/li>\n\n\n\n<li>Locate <strong>CostManager-Cleanup<\/strong> document, click <strong>Execute Automation<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1059\" height=\"1162\" src=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-40.png\" alt=\"\" class=\"wp-image-3574\" srcset=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-40.png 1059w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-40-273x300.png 273w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-40-933x1024.png 933w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-40-768x843.png 768w\" sizes=\"auto, (max-width: 1059px) 100vw, 1059px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Select Simple execution to manually review all actions<\/li>\n\n\n\n<li>Fill the input parameters\n<ul class=\"wp-block-list\">\n<li><strong>AutomationAssumeRole:<\/strong> Leave as <strong>CostManager-AutomationRole<\/strong><\/li>\n\n\n\n<li><strong>Approver:<\/strong> Enter the <strong><em>IAM role&#8217;s ARN<\/em><\/strong> subscribed to the <code>CostManagerAlerts<\/code> SNS topic to receive approval requests.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1059\" height=\"1205\" src=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-41.png\" alt=\"\" class=\"wp-image-3575\" srcset=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-41.png 1059w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-41-264x300.png 264w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-41-900x1024.png 900w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-41-768x874.png 768w\" sizes=\"auto, (max-width: 1059px) 100vw, 1059px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click <strong>Execute<\/strong><\/li>\n\n\n\n<li>The automation workflow will start and it will pause at ApproveDeletion step as per flow chart above<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1059\" height=\"1146\" src=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-42.png\" alt=\"\" class=\"wp-image-3578\" srcset=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-42.png 1059w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-42-277x300.png 277w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-42-946x1024.png 946w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-42-768x831.png 768w\" sizes=\"auto, (max-width: 1059px) 100vw, 1059px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Return back to <strong>AWS Systems Manager<\/strong> console, select <strong>Automation<\/strong>, select <strong>Executions<\/strong><\/li>\n\n\n\n<li>Then select the running execution, click <strong>Actions<\/strong>, then select <strong>Approve\/Deny<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1783\" height=\"351\" src=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-44.png\" alt=\"\" class=\"wp-image-3580\" srcset=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-44.png 1783w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-44-300x59.png 300w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-44-1024x202.png 1024w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-44-768x151.png 768w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-44-1536x302.png 1536w\" sizes=\"auto, (max-width: 1783px) 100vw, 1783px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Logout from AWS console and login again as the <strong>Approver IAM user<\/strong> (not root), we can click <strong>Approve<\/strong> to proceed<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"845\" height=\"716\" src=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-45.png\" alt=\"\" class=\"wp-image-3581\" srcset=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-45.png 845w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-45-300x254.png 300w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-45-768x651.png 768w\" sizes=\"auto, (max-width: 845px) 100vw, 845px\" \/><\/figure>\n\n\n\n<p>Then the automation should be working well as per below screenshot where it shows all deletion and email notification (via SNS) have been sent right after the steps are completed<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1902\" height=\"863\" src=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-46.png\" alt=\"\" class=\"wp-image-3582\" srcset=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-46.png 1902w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-46-300x136.png 300w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-46-1024x465.png 1024w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-46-768x348.png 768w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-46-1536x697.png 1536w\" sizes=\"auto, (max-width: 1902px) 100vw, 1902px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"763\" height=\"323\" src=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-49.png\" alt=\"\" class=\"wp-image-3585\" srcset=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-49.png 763w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-49-300x127.png 300w\" sizes=\"auto, (max-width: 763px) 100vw, 763px\" \/><\/figure>\n\n\n\n<p>Finally we shall do the manual verification on EC2 console if the deletion has been completed<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to <strong>EC2 console<\/strong>, select <strong>Volumes<\/strong><\/li>\n\n\n\n<li>Verify the unattached volumes marked by automation are no longer exist. As we can see below, only the volumes with in-use state are exist<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1065\" height=\"323\" src=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-50.png\" alt=\"\" class=\"wp-image-3586\" srcset=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-50.png 1065w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-50-300x91.png 300w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-50-1024x311.png 1024w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-50-768x233.png 768w\" sizes=\"auto, (max-width: 1065px) 100vw, 1065px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Next, select <strong>Elastic IPs<\/strong> from the sidebar menu<\/li>\n\n\n\n<li>Verify there is no more unassigned elastic IP<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1065\" height=\"229\" src=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-51.png\" alt=\"\" class=\"wp-image-3587\" srcset=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-51.png 1065w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-51-300x65.png 300w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-51-1024x220.png 1024w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-51-768x165.png 768w\" sizes=\"auto, (max-width: 1065px) 100vw, 1065px\" \/><\/figure>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Manually Remove Idle EC2 Instances<\/h2>\n\n\n\n<p>The automation that we triggered doesn&#8217;t automatically terminate idle EC2 instances. Because Automation only removes unused EBS volumes and Elastic IPs. Stopped or idle EC2 instances still incur costs for <strong>storage or reserved capacity<\/strong>, so manual deletion ensures <strong>maximum cost savings<\/strong>. Therefore, we need to review and delete them manually.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to <strong>EC2 Console<\/strong>, select <strong>Instances<\/strong><\/li>\n\n\n\n<li>Select the instances generated via CloudFormation<\/li>\n\n\n\n<li>Select <strong>Instance State<\/strong>, choose <strong>Terminate<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1469\" height=\"217\" src=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-52.png\" alt=\"\" class=\"wp-image-3590\" srcset=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-52.png 1469w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-52-300x44.png 300w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-52-1024x151.png 1024w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-52-768x113.png 768w\" sizes=\"auto, (max-width: 1469px) 100vw, 1469px\" \/><\/figure>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Apply S3 Lifecycle Policy<\/h2>\n\n\n\n<p>Same like EC2 instances which are not automatically removed by the automation workflow, S3 buckets are also required a manual removal handling. Instead of removing the bucket, in this project we will choose another use case example to move the file into the cheaper storage class so after certain period of time it can reduce the S3 costs over the time.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to <strong>S3 Console<\/strong>, select our bucket, select <strong>Management<\/strong>, click <strong>Lifecycle Rules<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1055\" height=\"541\" src=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-53.png\" alt=\"\" class=\"wp-image-3592\" srcset=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-53.png 1055w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-53-300x154.png 300w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-53-1024x525.png 1024w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-53-768x394.png 768w\" sizes=\"auto, (max-width: 1055px) 100vw, 1055px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click <strong>Create Lifecycle Rule<\/strong> and give it name: <strong>MoveOldFilesToGlacier<\/strong><\/li>\n\n\n\n<li>Scope: <strong>Apply to all objects in the bucket<\/strong><\/li>\n\n\n\n<li><strong>Lifecycle Rule Actions:<\/strong> Select <strong>Transition current versions of objects between storage classes<\/strong> (required).<\/li>\n\n\n\n<li><strong>Set Transition Actions:<\/strong> \n<ul class=\"wp-block-list\">\n<li>Click <strong>Add transition<\/strong> under <strong>Current versions<\/strong>:\n<ul class=\"wp-block-list\">\n<li><strong>Days after object creation:<\/strong> <code>30<\/code><\/li>\n\n\n\n<li><strong>Storage class:<\/strong> <strong>S3 Standard-IA (Infrequent Access)<\/strong><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Click <strong>Add transition<\/strong> again:\n<ul class=\"wp-block-list\">\n<li><strong>Days after object creation:<\/strong> <code>90<\/code><\/li>\n\n\n\n<li><strong>Storage class:<\/strong> <strong>S3 Glacier Flexible Retrieval<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1055\" height=\"1335\" src=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-56.png\" alt=\"\" class=\"wp-image-3597\" srcset=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-56.png 1055w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-56-237x300.png 237w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-56-809x1024.png 809w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-56-768x972.png 768w\" sizes=\"auto, (max-width: 1055px) 100vw, 1055px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click <strong>Create rule<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"520\" src=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-57-1024x520.png\" alt=\"\" class=\"wp-image-3598\" srcset=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-57-1024x520.png 1024w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-57-300x152.png 300w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-57-768x390.png 768w, https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/05\/image-57.png 1055w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>This rule <strong>automatically moves rarely accessed files<\/strong> to cheaper storage classes and optionally deletes very old files, reducing long-term S3 costs without manual effort. For this project scope, we can also removes the bucket once we see the files moved to the lower S3 tier storage.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Project Conclusion<\/h2>\n\n\n\n<p>We have now built a real-world cost-control system that detects unused resources, sends alerts, and automates cleanup, securely and with approval. This hands-on project reflects the <strong>Cost Optimization<\/strong> pillar of the AWS Well-Architected Framework.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Resources Cleanup<\/h2>\n\n\n\n<p>To avoid ongoing AWS charges, remember to delete what we created:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Since CloudFormation cannot delete <strong>non-empty<\/strong> S3 buckets, we need to manually remove it.\n<ul class=\"wp-block-list\">\n<li>Go to <strong>S3 Dashboard<\/strong><\/li>\n\n\n\n<li>Locate the bucket created by the CloudFormation stack (costmanager-frontend)<\/li>\n\n\n\n<li>Empty the bucket and delete the bucket<br><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Delete the CloudFormation stack\n<ul class=\"wp-block-list\">\n<li>Go to <strong>CloudFormation Console<\/strong> <\/li>\n\n\n\n<li>Select the stack we deployed (e.g., <code>CostManager-for-Wasteful-Infra<\/code>) <\/li>\n\n\n\n<li>Click <strong>Delete Stack<\/strong> and confirm\n<ul class=\"wp-block-list\">\n<li>This will automatically delete EC2 instances, launch template, volumes, and elastic IP<br><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Review and delete CloudWatch logs\n<ul class=\"wp-block-list\">\n<li>Go to <strong>CloudWatch, <\/strong>select <strong>Log Management<\/strong><\/li>\n\n\n\n<li>Check for logs created by EC2 instances or the ALB Optionally and delete them<br><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Review billing dashboard\n<ul class=\"wp-block-list\">\n<li>Go to <strong>Billing and Cost Management <\/strong>console<strong>, <\/strong>select <strong>Cost Explorer<\/strong><\/li>\n\n\n\n<li>Filter by service or tag (if tagging was enabled) <\/li>\n\n\n\n<li>Ensure there are no ongoing charges from unused resources<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>In this final part, we will execute the CostGuardian cleanup automation, which helps identify and remove unused AWS resources, such as unattached EBS volumes, unassociated Elastic IPs, and optionally **idle EC2 instances,**to reduce unnecessary spend. We&#8217;ll also apply S3 lifecycle policy to automatically transition old objects to cheaper storage tiers over time. All steps prioritize cost optimization and manual control through approval-based workflows.<\/p>\n","protected":false},"author":1,"featured_media":3610,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,20,85,75,8],"tags":[],"class_list":["post-3570","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws","category-backend","category-projects","category-system-design","category-technology"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>AWS Solutions Architect Project (Cost Optimization Pillar) \u2013 Automated Cost Management \u2013 Part 4 - Ichwan Chandra<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ichwanchandra.com\/blog\/aws-solutions-architect-project-cost-optimization-part-4\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AWS Solutions Architect Project (Cost Optimization Pillar) \u2013 Automated Cost Management \u2013 Part 4 - Ichwan Chandra\" \/>\n<meta property=\"og:description\" content=\"In this final part, we will execute the CostGuardian cleanup automation, which helps identify and remove unused AWS resources, such as unattached EBS volumes, unassociated Elastic IPs, and optionally **idle EC2 instances,**to reduce unnecessary spend. We&#039;ll also apply S3 lifecycle policy to automatically transition old objects to cheaper storage tiers over time. All steps prioritize cost optimization and manual control through approval-based workflows.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ichwanchandra.com\/blog\/aws-solutions-architect-project-cost-optimization-part-4\/\" \/>\n<meta property=\"og:site_name\" content=\"Ichwan Chandra\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-07T16:35:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-12-02T02:32:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/11\/aws-solutions-architect-project-cost-optimization-part-4.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"1376\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ichwan Chandra\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ichwan Chandra\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/aws-solutions-architect-project-cost-optimization-part-4\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/aws-solutions-architect-project-cost-optimization-part-4\\\/\"},\"author\":{\"name\":\"Ichwan Chandra\",\"@id\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/#\\\/schema\\\/person\\\/2fa69a7a1008a3369584752194b063d5\"},\"headline\":\"AWS Solutions Architect Project (Cost Optimization Pillar) \u2013 Automated Cost Management \u2013 Part 4\",\"datePublished\":\"2026-05-07T16:35:00+00:00\",\"dateModified\":\"2026-12-02T02:32:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/aws-solutions-architect-project-cost-optimization-part-4\\\/\"},\"wordCount\":714,\"image\":{\"@id\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/aws-solutions-architect-project-cost-optimization-part-4\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/aws-solutions-architect-project-cost-optimization-part-4.jpeg\",\"articleSection\":[\"AWS\",\"Backend\",\"Projects\",\"System Design\",\"Technology\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/aws-solutions-architect-project-cost-optimization-part-4\\\/\",\"url\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/aws-solutions-architect-project-cost-optimization-part-4\\\/\",\"name\":\"AWS Solutions Architect Project (Cost Optimization Pillar) \u2013 Automated Cost Management \u2013 Part 4 - Ichwan Chandra\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/aws-solutions-architect-project-cost-optimization-part-4\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/aws-solutions-architect-project-cost-optimization-part-4\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/aws-solutions-architect-project-cost-optimization-part-4.jpeg\",\"datePublished\":\"2026-05-07T16:35:00+00:00\",\"dateModified\":\"2026-12-02T02:32:19+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/#\\\/schema\\\/person\\\/2fa69a7a1008a3369584752194b063d5\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/aws-solutions-architect-project-cost-optimization-part-4\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/aws-solutions-architect-project-cost-optimization-part-4\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/aws-solutions-architect-project-cost-optimization-part-4\\\/#primaryimage\",\"url\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/aws-solutions-architect-project-cost-optimization-part-4.jpeg\",\"contentUrl\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/aws-solutions-architect-project-cost-optimization-part-4.jpeg\",\"width\":1376,\"height\":768},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/aws-solutions-architect-project-cost-optimization-part-4\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AWS Solutions Architect Project (Cost Optimization Pillar) \u2013 Automated Cost Management \u2013 Part 4\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/\",\"name\":\"Ichwan Chandra\",\"description\":\"In a Lifelong Learning Mode\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/#\\\/schema\\\/person\\\/2fa69a7a1008a3369584752194b063d5\",\"name\":\"Ichwan Chandra\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8d8d64c76e361108ee058442df7c49c539eefd1d1e5a3e8dbcc9d70289e0bbf2?s=96&d=retro&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8d8d64c76e361108ee058442df7c49c539eefd1d1e5a3e8dbcc9d70289e0bbf2?s=96&d=retro&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8d8d64c76e361108ee058442df7c49c539eefd1d1e5a3e8dbcc9d70289e0bbf2?s=96&d=retro&r=g\",\"caption\":\"Ichwan Chandra\"},\"sameAs\":[\"https:\\\/\\\/ichwanchandra.com\\\/blog\"],\"url\":\"https:\\\/\\\/ichwanchandra.com\\\/blog\\\/author\\\/isuchan193\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AWS Solutions Architect Project (Cost Optimization Pillar) \u2013 Automated Cost Management \u2013 Part 4 - Ichwan Chandra","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ichwanchandra.com\/blog\/aws-solutions-architect-project-cost-optimization-part-4\/","og_locale":"en_US","og_type":"article","og_title":"AWS Solutions Architect Project (Cost Optimization Pillar) \u2013 Automated Cost Management \u2013 Part 4 - Ichwan Chandra","og_description":"In this final part, we will execute the CostGuardian cleanup automation, which helps identify and remove unused AWS resources, such as unattached EBS volumes, unassociated Elastic IPs, and optionally **idle EC2 instances,**to reduce unnecessary spend. We'll also apply S3 lifecycle policy to automatically transition old objects to cheaper storage tiers over time. All steps prioritize cost optimization and manual control through approval-based workflows.","og_url":"https:\/\/ichwanchandra.com\/blog\/aws-solutions-architect-project-cost-optimization-part-4\/","og_site_name":"Ichwan Chandra","article_published_time":"2026-05-07T16:35:00+00:00","article_modified_time":"2026-12-02T02:32:19+00:00","og_image":[{"width":1376,"height":768,"url":"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/11\/aws-solutions-architect-project-cost-optimization-part-4.jpeg","type":"image\/jpeg"}],"author":"Ichwan Chandra","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ichwan Chandra","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ichwanchandra.com\/blog\/aws-solutions-architect-project-cost-optimization-part-4\/#article","isPartOf":{"@id":"https:\/\/ichwanchandra.com\/blog\/aws-solutions-architect-project-cost-optimization-part-4\/"},"author":{"name":"Ichwan Chandra","@id":"https:\/\/ichwanchandra.com\/blog\/#\/schema\/person\/2fa69a7a1008a3369584752194b063d5"},"headline":"AWS Solutions Architect Project (Cost Optimization Pillar) \u2013 Automated Cost Management \u2013 Part 4","datePublished":"2026-05-07T16:35:00+00:00","dateModified":"2026-12-02T02:32:19+00:00","mainEntityOfPage":{"@id":"https:\/\/ichwanchandra.com\/blog\/aws-solutions-architect-project-cost-optimization-part-4\/"},"wordCount":714,"image":{"@id":"https:\/\/ichwanchandra.com\/blog\/aws-solutions-architect-project-cost-optimization-part-4\/#primaryimage"},"thumbnailUrl":"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/11\/aws-solutions-architect-project-cost-optimization-part-4.jpeg","articleSection":["AWS","Backend","Projects","System Design","Technology"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/ichwanchandra.com\/blog\/aws-solutions-architect-project-cost-optimization-part-4\/","url":"https:\/\/ichwanchandra.com\/blog\/aws-solutions-architect-project-cost-optimization-part-4\/","name":"AWS Solutions Architect Project (Cost Optimization Pillar) \u2013 Automated Cost Management \u2013 Part 4 - Ichwan Chandra","isPartOf":{"@id":"https:\/\/ichwanchandra.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ichwanchandra.com\/blog\/aws-solutions-architect-project-cost-optimization-part-4\/#primaryimage"},"image":{"@id":"https:\/\/ichwanchandra.com\/blog\/aws-solutions-architect-project-cost-optimization-part-4\/#primaryimage"},"thumbnailUrl":"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/11\/aws-solutions-architect-project-cost-optimization-part-4.jpeg","datePublished":"2026-05-07T16:35:00+00:00","dateModified":"2026-12-02T02:32:19+00:00","author":{"@id":"https:\/\/ichwanchandra.com\/blog\/#\/schema\/person\/2fa69a7a1008a3369584752194b063d5"},"breadcrumb":{"@id":"https:\/\/ichwanchandra.com\/blog\/aws-solutions-architect-project-cost-optimization-part-4\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ichwanchandra.com\/blog\/aws-solutions-architect-project-cost-optimization-part-4\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ichwanchandra.com\/blog\/aws-solutions-architect-project-cost-optimization-part-4\/#primaryimage","url":"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/11\/aws-solutions-architect-project-cost-optimization-part-4.jpeg","contentUrl":"https:\/\/ichwanchandra.com\/blog\/wp-content\/uploads\/2026\/11\/aws-solutions-architect-project-cost-optimization-part-4.jpeg","width":1376,"height":768},{"@type":"BreadcrumbList","@id":"https:\/\/ichwanchandra.com\/blog\/aws-solutions-architect-project-cost-optimization-part-4\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ichwanchandra.com\/blog\/"},{"@type":"ListItem","position":2,"name":"AWS Solutions Architect Project (Cost Optimization Pillar) \u2013 Automated Cost Management \u2013 Part 4"}]},{"@type":"WebSite","@id":"https:\/\/ichwanchandra.com\/blog\/#website","url":"https:\/\/ichwanchandra.com\/blog\/","name":"Ichwan Chandra","description":"In a Lifelong Learning Mode","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ichwanchandra.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ichwanchandra.com\/blog\/#\/schema\/person\/2fa69a7a1008a3369584752194b063d5","name":"Ichwan Chandra","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/8d8d64c76e361108ee058442df7c49c539eefd1d1e5a3e8dbcc9d70289e0bbf2?s=96&d=retro&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/8d8d64c76e361108ee058442df7c49c539eefd1d1e5a3e8dbcc9d70289e0bbf2?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8d8d64c76e361108ee058442df7c49c539eefd1d1e5a3e8dbcc9d70289e0bbf2?s=96&d=retro&r=g","caption":"Ichwan Chandra"},"sameAs":["https:\/\/ichwanchandra.com\/blog"],"url":"https:\/\/ichwanchandra.com\/blog\/author\/isuchan193\/"}]}},"_links":{"self":[{"href":"https:\/\/ichwanchandra.com\/blog\/wp-json\/wp\/v2\/posts\/3570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ichwanchandra.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ichwanchandra.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ichwanchandra.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ichwanchandra.com\/blog\/wp-json\/wp\/v2\/comments?post=3570"}],"version-history":[{"count":16,"href":"https:\/\/ichwanchandra.com\/blog\/wp-json\/wp\/v2\/posts\/3570\/revisions"}],"predecessor-version":[{"id":3652,"href":"https:\/\/ichwanchandra.com\/blog\/wp-json\/wp\/v2\/posts\/3570\/revisions\/3652"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ichwanchandra.com\/blog\/wp-json\/wp\/v2\/media\/3610"}],"wp:attachment":[{"href":"https:\/\/ichwanchandra.com\/blog\/wp-json\/wp\/v2\/media?parent=3570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ichwanchandra.com\/blog\/wp-json\/wp\/v2\/categories?post=3570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ichwanchandra.com\/blog\/wp-json\/wp\/v2\/tags?post=3570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}