<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Suleyman Akman on Medium]]></title>
        <description><![CDATA[Stories by Suleyman Akman on Medium]]></description>
        <link>https://medium.com/@suleymanakman?source=rss-7e167902c175------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kqXWwWzgGD5XaTmEuqsW8g.jpeg</url>
            <title>Stories by Suleyman Akman on Medium</title>
            <link>https://medium.com/@suleymanakman?source=rss-7e167902c175------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 07:58:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@suleymanakman/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building an Autonomous FinOps Engine: Leveraging AWS Serverless, Slack, and GenAI for Cost…]]></title>
            <link>https://medium.com/@suleymanakman/building-an-autonomous-finops-engine-leveraging-aws-serverless-slack-and-genai-for-cost-fbf1e2bd7207?source=rss-7e167902c175------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbf1e2bd7207</guid>
            <category><![CDATA[aws-finops]]></category>
            <category><![CDATA[finops]]></category>
            <category><![CDATA[cloud-finops]]></category>
            <dc:creator><![CDATA[Suleyman Akman]]></dc:creator>
            <pubDate>Fri, 24 Apr 2026 10:29:10 GMT</pubDate>
            <atom:updated>2026-04-24T10:29:10.848Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building an Autonomous FinOps Engine: Leveraging AWS Serverless, Slack, and GenAI for Cost Optimization</h3><p>Cloud waste is a silent budget killer. Idle EBS volumes, unassociated Elastic IPs, and orphan snapshots can inflate AWS bills by thousands of dollars without adding a single cent of business value.</p><p>To solve this, I designed and built GSBD Cloud FinOps Bot — an autonomous, event-driven remediation engine that doesn’t just find waste, but acts on it through a “Human-in-the-loop” governance model.</p><h3>The Core Architecture: “The Scanner and the Worker”<br>The system is built on a decoupled architecture to ensure security and scalability.</h3><ul><li>The Scanner (Initiator): Triggered daily by Amazon EventBridge, an AWS Step Functions workflow starts. It invokes a Lambda function that scans the environment for:</li><li>Available EBS Volumes: Disks no longer attached to EC2 instances.</li><li>Unassociated Elastic IPs: IPs costing money while doing nothing.</li><li>Orphan Snapshots: Old backups of deleted volumes.</li><li>Idle ALBs: Application Load Balancers with no active targets.</li><li>The Governance (Human-in-the-loop): Instead of auto-deleting resources (which can be risky), the bot sends an interactive report to a Slack channel.</li><li>The Worker (Remediator): Using the Step Functions “Wait for Task Token” pattern, the workflow pauses until a human clicks “Approve” or “Reject” in Slack. Upon approval, a Worker Lambda executes the termination and logs the results.</li></ul><h3>Adding the “Premium” Twist: AI-Powered Governance with RAG<br>A modern FinOps tool should do more than just delete; it should educate. I integrated Amazon Bedrock and OpenSearch Serverless to create a RAG (Retrieval-Augmented Generation) module.</h3><p>Users can mention the bot in Slack and ask technical or policy questions:</p><p>“What is our corporate policy for EBS data retention before deletion?”</p><p>The bot retrieves the answer from our internal documentation stored in the Knowledge Base and provides a compliant response. This bridges the gap between infrastructure management and corporate governance.</p><h3>Executive Visibility: The Savings Dashboard<br>To provide C-Level visibility, every successful cleanup is recorded in Amazon DynamoDB.</h3><p>I deployed a static S3 Dashboard (accessible via a secure URL) that fetches data through Amazon API Gateway and a dedicated Read-Lambda. This dashboard displays:</p><ul><li>Total amount saved (All-time).</li><li>A timeline of recently terminated resources.</li><li>The Monthly Recurring Revenue (MRR) saved from the cloud bill.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*11RbVIPut1jmWccqt2gDQg.png" /><figcaption>Flow</figcaption></figure><h3>The Architect’s Dilemma: The Trade-off Analysis<br>As engineers, we often get excited about the “latest and greatest” tech. However, a true FinOps professional must calculate the ROI of the tool itself.</h3><p>During development, I encountered a crucial trade-off:</p><ul><li>The Lean Version: Running the bot without AI costs &lt;$1/month (pure Serverless).</li><li>The Premium Version: Enabling OpenSearch Serverless for the AI/RAG module introduces a base cost of ~$170/month due to OCU (OpenSearch Compute Units).</li></ul><p>The Verdict: If you are managing a $5,000/month account, the Lean version is the engineering marvel. If you are managing a $100,000+/month Enterprise account, the Premium AI version is a steal, as it provides automated compliance and high-level consulting that pays for itself in reduced human-hours.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*50OpFjc5-2R927BYSVP5EA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*WUQR8UwTJJTQ0bx_WaDnpg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WeGpu4OcE833MFCf07wC5A.jpeg" /></figure><h3>Conclusion</h3><p>FinOps is not just about cutting costs; it’s about Cloud Efficiency. By combining AWS Step Functions for orchestration, Slack for governance, and Amazon Bedrock for intelligence, we can transform cloud management from a manual chore into an autonomous, value-adding asset.</p><h3>🚀 Technical Stack Summary:</h3><ul><li>Orchestration: AWS Step Functions, EventBridge.</li><li>Compute: AWS Lambda (Python).</li><li>AI/LLM: Amazon Bedrock (Knowledge Bases), OpenSearch Serverless.</li><li>Database: Amazon DynamoDB.</li><li>Frontend: S3 (Static Website), API Gateway.</li><li>Communication: Slack API (Interactive Blocks).</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbf1e2bd7207" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an Event-Driven, AI-Powered Driver Monitoring System on AWS with Amazon Bedrock]]></title>
            <link>https://medium.com/@suleymanakman/building-an-event-driven-ai-powered-driver-monitoring-system-on-aws-with-amazon-bedrock-d4bb7313e1a7?source=rss-7e167902c175------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4bb7313e1a7</guid>
            <category><![CDATA[amazon-bedrock]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Suleyman Akman]]></dc:creator>
            <pubDate>Thu, 16 Apr 2026 21:51:54 GMT</pubDate>
            <atom:updated>2026-04-16T21:51:54.912Z</atom:updated>
            <content:encoded><![CDATA[<p>Driver fatigue and distraction are among the leading causes of accidents in the logistics and transportation sectors. While traditional fleet management systems track vehicle location and speed, they often fail to monitor the most critical component: <strong>the driver’s real-time state.</strong></p><p>To solve this, I designed and built an end-to-end, event-driven AI Driver Monitoring System on AWS. By leveraging <strong>Amazon Bedrock (Generative AI)</strong>, <strong>Amazon Kinesis Video Streams</strong>, and a <strong>Serverless</strong> event flow, this prototype detects risky behaviors (like sleeping or using a phone) and alerts fleet managers in real-time.</p><p>But as a Cloud Architect, my goal wasn’t just to build a system that works — it was to build a system that is highly scalable, fault-tolerant, and strictly optimized for <strong>FinOps</strong>.</p><p>Here is a deep dive into the architecture and the technologies that make it tick.</p><h3>The Architecture Overview</h3><p>The system is built on a decoupled, microservices-based architecture. Instead of a monolithic application processing video streams, each AWS service handles a specific, isolated task.</p><p>Here is the complete flow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W7f48_jxh9j3ipv62lhOwQ.png" /></figure><h3>Step-by-Step Data Flow</h3><h3>1. Ingestion &amp; Streaming (Amazon Kinesis Video Streams)</h3><p>The journey begins at the edge. In-vehicle cameras stream continuous live video to <strong>Amazon KVS</strong>. Why KVS instead of direct-to-S3? Because in the logistics world, raw video serves as critical legal evidence during an accident. KVS acts as a resilient buffer, securely storing the continuous timeline of the drive even if network connections drop in tunnels or remote areas.</p><h3>2. The Consumer (Amazon EC2)</h3><p>Processing continuous video through Generative AI is prohibitively expensive. To optimize costs, an <strong>Amazon EC2</strong> instance runs a lightweight consumer script. This script watches the KVS stream and uses OpenCV to extract a single still frame every 5 seconds. It then pushes this lightweight .jpg image directly to an Amazon S3 bucket.</p><h3>3. The AI Brain (AWS Lambda + Amazon Bedrock)</h3><p>The moment the image lands in S3, it triggers an <strong>AWS Lambda</strong> function. This is where the magic happens entirely serverless. Lambda wraps the image and a strict prompt, sending it to <strong>Amazon Bedrock</strong>:</p><ul><li><strong>Claude 4.5 Haiku:</strong> Analyzes the image to determine if the driver is focused, sleeping, or distracted, returning a clean JSON output.</li><li><strong>Amazon Titan Multimodal:</strong> Simultaneously converts the image and the text description into a high-dimensional vector (Embedding).</li></ul><h3>4. Memory &amp; Proactive Alerts (Amazon RDS + SNS)</h3><p>The Lambda function evaluates Claude’s response. If the driver is marked as “Risk” (e.g., using a phone), Lambda instantly triggers <strong>Amazon SNS</strong> to send an SMS alert to the fleet manager’s phone. Regardless of the status, the metadata, AI analysis, and vector embeddings are permanently logged in an <strong>Amazon RDS (PostgreSQL)</strong> database.</p><h3>5. Real-Time NOC Dashboard (S3 + API Gateway)</h3><p>Fleet operators monitor the system via a modern, dark-themed Web Dashboard. Hosted simply via <strong>S3 Static Web Hosting</strong>, the frontend polls an <strong>API Gateway</strong> endpoint every 5 seconds. A secondary Lambda function queries the RDS database, generates secure S3 Pre-Signed URLs for the images, and feeds the dashboard with a live, animated feed of driver statuses with distinct Green (Normal) and Red (Risk) indicators.</p><h3>What Makes This Architecture Special?</h3><p>Designing a system is one thing; designing it for enterprise-scale production is another. Here are the core architectural pillars I focused on:</p><h3>💡 FinOps &amp; Cost Optimization</h3><p>The biggest trap in AI video processing is cost. By decoupling the video stream from the AI engine, we introduced a “Sampling” strategy. The EC2 consumer ensures that we only pay Amazon Bedrock to analyze 1 frame every 5 seconds, rather than 30 frames per second. This single architectural decision reduces Generative AI inference costs by over <strong>99%</strong>.</p><h3>💡 Event-Driven &amp; Decoupled</h3><p>There is no monolithic bottleneck. If the RDS database goes down for maintenance, KVS still records the video, and S3 still holds the frames. The AI processor (Lambda) only wakes up — and incurs charges — when an S3 PutObject event is fired.</p><h3>💡 Future-Proofing with Vector Databases (pgvector)</h3><p>By enabling the pgvector extension in PostgreSQL and storing Amazon Titan embeddings, the system is fully prepared for future RAG (Retrieval-Augmented Generation) applications. Soon, a manager could type a prompt like, <em>&quot;Show me all instances where drivers were distracted by their phones last month,&quot;</em> and the system will perform a semantic similarity search across thousands of images in milliseconds.</p><h3>Wrapping Up</h3><p>Building this prototype demonstrated the immense power of combining traditional AWS infrastructure with modern Generative AI services. AWS Bedrock abstracts away the heavy lifting of managing foundational models, allowing Cloud Engineers to focus on what matters most: designing resilient, scalable, and cost-effective architectures.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4bb7313e1a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Zero Downtime: A Practical Guide to Blue-Green Deployment on AWS with Ansible]]></title>
            <link>https://medium.com/@suleymanakman/mastering-zero-downtime-a-practical-guide-to-blue-green-deployment-on-aws-with-ansible-4c18bbea62b7?source=rss-7e167902c175------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c18bbea62b7</guid>
            <dc:creator><![CDATA[Suleyman Akman]]></dc:creator>
            <pubDate>Tue, 06 Jan 2026 11:29:19 GMT</pubDate>
            <atom:updated>2026-01-06T11:29:19.672Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Stop sweating deployments. Learn how to implement a robust Blue-Green strategy for a Python Flask application using Ansible and pre-provisioned AWS infrastructure.</strong></p><p>Every DevOps engineer knows the anxiety of a Friday afternoon deployment. Will the new version break production? Will users notice the downtime during the upgrade? If something goes wrong, how fast can we revert?</p><p>The answer to these anxieties is often <strong>Blue-Green Deployment</strong>.</p><p>In this article, we will walk through a practical, hands-on implementation of a Blue-Green deployment strategy for a simple “Phonebook” Flask web application. We will leverage the power of <strong>AWS</strong> for infrastructure and <strong>Ansible</strong> for configuration management and orchestration.</p><h3>What is Blue-Green Deployment?</h3><p>Before diving into the code, let’s define the concept. Blue-Green deployment is a technique that reduces downtime and risk by running two identical production environments, only one of which serves live traffic at any time.</p><ul><li><strong>Blue Environment:</strong> The currently running version hosting live production traffic.</li><li><strong>Green Environment:</strong> A clone of the production environment running the <em>new</em> version of the application.</li><li><strong>The Switch:</strong> Once the Green environment is deployed and tested successfully, a load balancer redirects all traffic from Blue to Green.</li><li><strong>Rollback:</strong> If issues arise on Green after the switch, traffic can be instantly reverted to Blue, as it is still running.</li></ul><h3>The Architecture</h3><p>Our project relies on infrastructure previously provisioned using Terraform. We won’t cover the Terraform setup here, but it provides us with the necessary AWS foundation.</p><p>Our central nervous system is an <strong>Ansible Control Node</strong> sitting inside AWS, from which all deployment commands are issued.</p><p>Here is the high-level architecture:</p><ul><li><strong>Control Node (EC2):</strong> The command center with Ansible installed. We connect here via SSH to run our playbooks.</li><li><strong>Application Load Balancer (ALB):</strong> The traffic cop. It decides whether to send users to the Blue pool or the Green pool.</li><li><strong>Blue &amp; Green Servers (EC2):</strong> Identical web servers hosting our Flask application.</li><li><strong>Database Server (EC2):</strong> A shared MySQL database accessible by both Blue and Green application servers.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hlGd4gF5qD0Z1VjOIdop4w.png" /></figure><h3>The Journey: Step-by-Step Implementation</h3><p>Let’s break down how we achieve zero-downtime deployments using Ansible.</p><h4>Phase 1: The Setup and Secure Configuration</h4><p>We start by connecting to our <strong>Control Node</strong> on AWS. We fork the project repository containing our Ansible playbooks and clone it onto the control node.</p><p>A critical aspect of modern deployment is handling secrets securely. We don’t hardcode database passwords in plain text files. Instead, we use <strong>Ansible Vault</strong> integrated with the <strong>AWS Systems Manager Parameter Store</strong>.</p><p>We store the Vault encryption password securely in AWS Parameter Store. When Ansible runs, it fetches this password automatically to decrypt our sensitive variables on the fly.</p><h4>Phase 2: The Initial Deployment</h4><p>Using Ansible playbooks targeted with tags, we build our environment layer by layer.</p><ol><li><strong>Database Layer:</strong> We deploy the MySQL schema and user configurations to the dedicated DB server.</li><li><strong>Blue Layer (Current Production):</strong> We deploy the Flask application to the “Blue” server.</li><li><strong>Green Layer (Staging):</strong> We deploy the application to the “Green” server.</li></ol><p>At this stage, our Load Balancer is configured to direct traffic only to the <strong>Blue</strong> server. The Green server is running but receiving no public traffic.</p><h4>Phase 3: The Blue-Green Switch</h4><p>This is where the magic happens. We want to promote Green to production without dropping a single user connection.</p><p>We use a specialized Ansible playbook designed for this switch mechanism. It performs the following steps autonomously:</p><ol><li><strong>Pre-Switch Health Check:</strong> It queries the /health endpoint of the Green server locally. If Green isn&#39;t healthy, the deployment stops immediately.</li><li><strong>The Traffic Flip:</strong> If Green is healthy, Ansible instructs the AWS Application Load Balancer to modify its listeners. It points the production listener rule to the <strong>Green Target Group</strong>.</li><li><strong>Verification:</strong> The playbook asserts that the deployment was successful and logs the event.</li></ol><p>This entire process takes about 30 seconds. To the outside world, the site just updated instantly.</p><h4>Phase 4: The Automated Safety Net (Rollback)</h4><p>What if the new version on Green has a bug that only appears under load? We need an instant undo button.</p><p>Our Ansible switch playbook is built using a block-rescue structure.</p><p>We test this by deliberately breaking the Green application (e.g., stopping the app process) and running the switch playbook. Ansible detects the failure during the health check phase and triggers the rescue block, ensuring Blue remains active. Production is safe.</p><h3>Key Takeaways</h3><p>By completing this project, we demonstrate several crucial DevOps patterns:</p><ul><li><strong>Infrastructure as Code (IaC):</strong> Combining Terraform for provisioning and Ansible for configuration ensures environments are reproducible.</li><li><strong>AWS Dynamic Inventory:</strong> We don’t manage static IP lists. Ansible dynamically queries AWS EC2 tags to know which servers belong to the “Blue” group and which belong to “Green”.</li><li><strong>Automated Testing &amp; Rollbacks:</strong> Deployments aren’t just about pushing code; they are about validating health and having an automated recovery plan.</li><li><strong>Secrets Management:</strong> Decoupling secrets from code using Vault and AWS Parameter Store is essential for security.</li></ul><h3>Conclusion</h3><p>Moving to a Blue-Green deployment strategy transforms software delivery from a high-stress event into a routine, low-risk process. By combining the infrastructure capabilities of AWS with the orchestration power of Ansible, you can achieve true zero-downtime deployments and sleep better at night.</p><p>The full source code, playbooks, and detailed step-by-step instructions are available in the repository below.</p><p><a href="https://github.com/suleyman00akman/ansible-project">https://github.com/suleyman00akman/ansible-project</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c18bbea62b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying a Modern Resume Website on AWS: From S3 to CodePipeline]]></title>
            <link>https://medium.com/@suleymanakman/deploying-a-modern-resume-website-on-aws-from-s3-to-codepipeline-3b1aed42ea28?source=rss-7e167902c175------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b1aed42ea28</guid>
            <dc:creator><![CDATA[Suleyman Akman]]></dc:creator>
            <pubDate>Sat, 27 Dec 2025 07:50:16 GMT</pubDate>
            <atom:updated>2025-12-27T07:50:16.272Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Summary</strong></h3><p>In the fast-paced world of technology, sending a static PDF resume is no longer enough to stand out. As a DevOps &amp; Cloud Engineer, the best way to demonstrate your skills is to turn your resume into a living project.</p><p>In this article, I will walk you through how I built an interactive, high-performance resume website hosted on <strong>AWS</strong>. We will move beyond simple hosting by implementing a <strong>CI/CD pipeline</strong> using <strong>AWS CodePipeline</strong>. This ensures that updating my experience or skills is as simple as a git push.</p><h3><strong>The Business Case</strong></h3><p>Why build this?</p><ol><li><strong>Professional Branding:</strong> A custom domain (e.g., www.yourname.com) with HTTPS signals professionalism.</li><li><strong>Cost-Efficiency:</strong> Using serverless technologies like S3 and CloudFront keeps costs near zero compared to traditional servers.</li><li><strong>Automation:</strong> By implementing CI/CD, we eliminate manual file uploads. This reduces operational overhead and minimizes human error during updates.</li><li><strong>Global Performance:</strong> Leveraging a CDN (CloudFront) ensures the site loads instantly for recruiters anywhere in the world.</li></ol><h3><strong>The Architecture</strong></h3><p>Here is the high-level design of the project:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G7d50f4FjT9C7TfeMMLk3g.png" /></figure><ul><li><strong>GitHub:</strong> Stores the frontend code (HTML/CSS/JS).</li><li><strong>AWS CodePipeline:</strong> Orchestrates the deployment. It detects changes in GitHub and deploys them to S3.</li><li><strong>Amazon S3:</strong> Acts as the origin storage for the static website files.</li><li><strong>Amazon CloudFront:</strong> Caches content at edge locations and enforces HTTPS.</li><li><strong>Amazon Route 53:</strong> Manages DNS records to point the custom domain to the CloudFront distribution.</li></ul><h3><strong>Phase 1: Static Hosting &amp; Security</strong></h3><p>The foundation of the project is <strong>Amazon S3</strong>. I created a bucket configured for <strong>Static Website Hosting</strong>, allowing it to serve HTML, CSS, and JavaScript files directly.</p><p>However, S3 website endpoints only support HTTP, which is flagged as “Not Secure” by modern browsers. To fix this, I placed <strong>Amazon CloudFront</strong> in front of the bucket.</p><ul><li><strong>Security:</strong> I generated an SSL/TLS certificate using <strong>AWS Certificate Manager (ACM)</strong> to enable HTTPS.</li><li><strong>Performance:</strong> CloudFront caches the resume content globally.</li><li><strong>DNS:</strong> I used <strong>Route 53</strong> to point my custom domain (www.yourname.com) to the CloudFront distribution using an Alias record.</li></ul><h3>Phase 2: Automating with CodePipeline (CI/CD)</h3><p>This is the most critical part of the project. I didn’t want to manually log into the AWS Console every time I needed to fix a typo or add a new certification.</p><p>I set up <strong>AWS CodePipeline</strong> to automate the deployment process:</p><ol><li><strong>Source Stage (GitHub):</strong> The pipeline is connected to my GitHub repository. It listens for changes on the main branch.</li><li><strong>Deploy Stage (S3):</strong> Since this is a static site, no build phase is necessary. The pipeline extracts the files and deploys them directly to the S3 bucket we created earlier.</li></ol><figure><img alt="GITHUB and AWS CodePipeline Automation" src="https://cdn-images-1.medium.com/max/1024/1*ErMXpyLMAyL8_OooflUBhQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b1aed42ea28" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>