<?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 Manas Das on Medium]]></title>
        <description><![CDATA[Stories by Manas Das on Medium]]></description>
        <link>https://medium.com/@cloudarchmanas?source=rss-3896cd5a4d27------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*l_kSMwInh7zZT2T5E-oxSA.jpeg</url>
            <title>Stories by Manas Das on Medium</title>
            <link>https://medium.com/@cloudarchmanas?source=rss-3896cd5a4d27------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 20:54:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cloudarchmanas/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[The End of the Database Bottleneck: How I Built an AI-Powered Interface That Puts Oracle at Your…]]></title>
            <link>https://medium.com/@cloudarchmanas/the-end-of-the-database-bottleneck-how-i-built-an-ai-powered-interface-that-puts-oracle-at-your-0c12177332af?source=rss-3896cd5a4d27------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c12177332af</guid>
            <category><![CDATA[enterprise-ai]]></category>
            <category><![CDATA[technology-leadership]]></category>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[digital-transformation]]></category>
            <category><![CDATA[chief-technology-officer]]></category>
            <dc:creator><![CDATA[Manas Das]]></dc:creator>
            <pubDate>Thu, 11 Jun 2026 21:13:05 GMT</pubDate>
            <atom:updated>2026-06-11T21:13:05.212Z</atom:updated>
            <content:encoded><![CDATA[<h3>The End of the Database Bottleneck: How I Built an AI-Powered Interface That Puts Oracle at Your Fingertips — No Login Required</h3><p><em>A real-world solution that eliminates friction, slashes costs, and redefines how modern enterprises interact with their data.</em></p><h3>The Problem Every Business Leader Knows But Rarely Talks About</h3><p>Imagine this, a senior analyst needs critical sales figures for a board presentation in two hours. She raises a ticket with the database team. The DBA is tied up. The query eventually gets written — six hours later. The board meeting has already happened.</p><p>This is not a technology failure. It is an <strong>organizational friction failure</strong> — and it costs UK enterprises millions in lost productivity, delayed decisions, and bloated licensing structures every single year.</p><p>Now imagine a different world. That same analyst opens a simple chat interface, types <em>“Show me total revenue by region for Q1 versus Q2, broken down by product category”</em> — and gets the answer in seconds. No DBA. No ticket. No waiting. No database client. No login credentials.</p><p>That world exists. I built it.</p><h3>What I Built: Conversational Intelligence Over Oracle Autonomous AI Lakehouse</h3><p>Using <strong>Claude Desktop</strong> integrated with <strong>Oracle Autonomous AI Lakehouse</strong>, I developed an AI-powered database interaction tool that fundamentally transforms the relationship between people and enterprise data.</p><p>Here is what it does in plain terms</p><p><strong>Users interact with a complex Oracle database through natural language conversation.</strong> They type a question or instruction in plain English. The AI translates it into precise, optimized SQL — executing complex multi-table SELECT queries, data aggregations, joins, and even INSERT operations — and returns the results instantly through a clean, conversational interface.</p><p>No SQL expertise required. No database client installed. No credentials to manage. No Oracle license on the end user’s machine. Just a chat window and a question.</p><h3>The Technical Architecture — In Plain Language for the Boardroom</h3><p>The solution is built on three pillars</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*PFxOu2YHaSmzzWaCiZCbdw.jpeg" /></figure><p><strong>1. Claude Desktop as the Intelligent Interface</strong> Anthropic’s Claude acts as the conversational layer — understanding intent, disambiguating requests, and constructing accurate, efficient SQL queries dynamically. It handles the complexity so users never have to.</p><p><strong>2. Oracle Autonomous AI Lakehouse as the Data Engine</strong> Oracle’s enterprise-grade cloud database provides the horsepower — handling billions of rows, cross-schema queries, and complex analytical workloads with the reliability and security that enterprise governance demands.</p><p><strong>3. MCP (Model Context Protocol) as the Bridge</strong> A secure server-side integration layer connects the AI to the database, managing authentication, query execution, and data return entirely behind the scenes. The user sees none of this machinery. They see only answers.</p><p>The result is an experience that feels effortless — while the engineering beneath it is anything but.</p><h3>Real-World Use Cases: Where This Delivers Immediate Business Value</h3><h3>📊 Executive Reporting</h3><p>A Chief Commercial Officer needs weekly pipeline data segmented by territory, product line, and deal stage. Instead of waiting for a Business Intelligence report or scheduling a data pull, she asks the interface directly. The data arrives in the same conversation — ready to copy into a slide or share with the team.</p><h3>🔍 Operational Decision-Making</h3><p>A Head of Operations wants to identify which fulfilment centres are underperforming against SLA targets across the last 90 days. A single conversational prompt spans multiple tables, aggregates the data, and surfaces the answer — in the time it used to take to draft the request.</p><h3>📥 Rapid Data Entry Without a Form</h3><p>A compliance manager needs to log a new supplier record into the system. Rather than navigating a legacy enterprise portal, they describe the record in natural language. The AI constructs and executes the INSERT — with confirmation shown immediately in the chat.</p><h3>🔄 Cross-Functional Data Access</h3><p>Teams across Finance, HR, Operations, and Sales can query their relevant data domains without requiring individual database access, training on query tools, or DBA intermediation — all governed centrally, all logged securely.</p><h3>The Business Case: Why Directors, VPs and CEOs Should Pay Attention</h3><h3>💷 Significant Cost Reduction</h3><p>Traditional enterprise database access requires SQL Developer, Oracle Client, Toad, or comparable tooling — each carrying per-seat licensing costs, provisioning overheads, and IT support burdens. This solution removes all of that from the end user tier entirely. <strong>One interface. Zero client licensing per user.</strong></p><p>Beyond licensing, consider the hidden cost of DBA time spent fielding ad-hoc data requests. Every hour a senior DBA spends running queries that could be self-served is an hour not spent on optimization, architecture, or high-value engineering work. This tool reclaims that capacity.</p><h3>⚡ Immediate Productivity Gains</h3><p>The cycle time from question to answer collapses from hours or days to seconds. In fast-moving commercial environments — retail, financial services, logistics, professional services — the compounding productivity gain across even a modest user base is transformational.</p><p>A team of 50 analysts, each saving two hours per week in data-retrieval friction, represents over 5,000 hours of productivity recovered annually. That is real, measurable, commercial value.</p><h3>🔐 Governance Without Compromise</h3><p>A common concern from IT leadership and Risk teams is <em>“If we democratize data access, do we lose control?”</em> The answer, with this architecture, is no.</p><p>All queries run through the server-side MCP layer. No user ever has direct database credentials. Access is governed at the AI configuration level. Every query is logged. Role-based data scoping can be applied. The governance framework actually <em>improves</em> because access is centralized, auditable, and consistent — rather than distributed across dozens of individual client connections.</p><h3>🚀 Accelerated Time-to-Insight</h3><p>In a data-driven economy, competitive advantage increasingly belongs to organizations that can act on information faster than their peers. Removing the friction between a question and an answer is not a quality-of-life improvement — it is a <strong>strategic capability</strong>.</p><h3>Why This Matters for the UK Technology Leadership Market</h3><p>The UK’s most ambitious organizations — from FTSE 100 enterprises to scale-up technology businesses — are actively seeking leaders who understand not just the theory of AI-driven transformation, but the practical application of it.</p><p>There is a significant gap in the market between leaders who can articulate AI strategy and those who can <em>demonstrate having built AI-powered solutions that solve real business problems.</em></p><p>This is the latter.</p><p>The ability to identify a genuine operational friction point, architect an AI solution that addresses it, and articulate its business value to a board-level audience — that is the profile of the technology executive that organizations are investing in right now.</p><h3>What This Looks Like for Your Organization</h3><p>If you are a CTO, CIO, VP of Technology, or Digital Transformation Director reading this, the question is not whether AI-powered data interfaces will become standard in enterprise environments. They will. The question is whether your organization leads that transition or follows it.</p><p>The infrastructure to do this exists today. Oracle Autonomous AI Lakehouse is production-ready. Claude’s API is enterprise-grade. The integration pattern is proven.</p><p><strong>The barrier is not technology. It is vision and leadership.</strong></p><h3>Let’s Talk</h3><p>I welcome conversations with forward-thinking UK technology organizations ,particularly those building, scaling, or transforming data and AI capabilities.</p><p>If this solution resonates with a challenge your organization is navigating, or if you are looking for a technology leader who combines strategic vision with hands-on delivery, I would welcome a conversation.</p><p>📩 Connect with me on LinkedIn or reach out directly.</p><p><em>Built with Claude Desktop · Oracle Autonomous AI Lakehouse · Model Context Protocol (MCP)</em></p><p><em>#AIStrategy #DataEngineering #OracleCloud #EnterpriseAI #DigitalTransformation #TechnologyLeadership #UKTech #GenerativeAI #DatabaseInnovation #CTO #VPEngineering #SeniorTechnology</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c12177332af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Building an End-to-End Machine Learning Project with AWS SageMaker]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@cloudarchmanas/building-an-end-to-end-machine-learning-project-with-aws-sagemaker-b778cd7d5b97?source=rss-3896cd5a4d27------2"><img src="https://cdn-images-1.medium.com/max/1024/1*EeHgAXiOsgLfn6_FGCvUiw.png" width="1024"></a></p><p class="medium-feed-snippet">Machine learning is transforming industries from retail forecasting to fraud detection. But taking an ML model from concept to production&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@cloudarchmanas/building-an-end-to-end-machine-learning-project-with-aws-sagemaker-b778cd7d5b97?source=rss-3896cd5a4d27------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@cloudarchmanas/building-an-end-to-end-machine-learning-project-with-aws-sagemaker-b778cd7d5b97?source=rss-3896cd5a4d27------2</link>
            <guid isPermaLink="false">https://medium.com/p/b778cd7d5b97</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Manas Das]]></dc:creator>
            <pubDate>Wed, 26 Nov 2025 14:59:07 GMT</pubDate>
            <atom:updated>2025-11-26T14:59:07.667Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Unlocking the Gates: A Guide to API Authentication Methods ]]></title>
            <link>https://medium.com/@cloudarchmanas/unlocking-the-gates-a-guide-to-api-authentication-methods-6de184bd5f90?source=rss-3896cd5a4d27------2</link>
            <guid isPermaLink="false">https://medium.com/p/6de184bd5f90</guid>
            <dc:creator><![CDATA[Manas Das]]></dc:creator>
            <pubDate>Mon, 06 Oct 2025 12:02:35 GMT</pubDate>
            <atom:updated>2025-10-06T12:02:35.285Z</atom:updated>
            <content:encoded><![CDATA[<p>Ever wondered how your banking app knows it’s you and not someone else trying to access your account? Or how you can log into a new app using your Google account with a single click? The magic behind this is</p><p><strong>API authentication</strong>, the digital gatekeeper that ensures only the right people and systems get access to the right information.</p><p>Without it, our digital world would be chaotic. Anyone could peek into your emails, disrupt sensitive systems, or even withdraw money from a bank’s API just by knowing the web address. API authentication is the fundamental process that prevents unauthorised access and protects against data breaches.</p><p>Let’s break down three of the most popular ways developers secure their APIs:</p><p><strong>API Keys , JWTs and OAuth</strong></p><h3>1. API Keys: The Simple VIP Pass</h3><p>Think of an API Key as a VIP pass for an application. It’s a simple, unique, randomly generated string of characters that an application sends with its request to prove it has permission to access an API.</p><p>An application typically includes this key in the request headers, which is a more secure method than placing it in the URL where it could be exposed in browser history or server logs.</p><p><strong>Best Use Cases</strong></p><ul><li><strong>Public Data:</strong> Perfect for accessing public APIs like weather forecasts, stock market data, or maps where you don’t need to know who the specific user is.</li><li><strong>Internal Systems:</strong> Great for communication between internal micro-services within a company’s secure network.</li><li><strong>Usage Tracking:</strong> Helps services monitor and limit the number of requests (rate limiting) to prevent abuse.</li></ul><p><strong>Limitations<br></strong>API Keys are straightforward but aren’t ideal for handling sensitive user data because they lack features like expiration or fine-grained access control.</p><h3>2. JSON Web Tokens (JWT): The All-Access Wristband</h3><p>A JWT is like a special wristband you get at a festival. Once the staff checks your ID and gives you the wristband, you can roam freely without having to show your ID at every stage.</p><p>JWTs are compact, self-contained tokens that securely carry information about a user’s identity (like user ID and roles) and permissions. This information is digitally signed, ensuring it hasn’t been tampered with.</p><p>A JWT consists of three parts:</p><ul><li><strong>Header:</strong> Identifies the encryption algorithm used.</li><li><strong>Payload:</strong> Contains the user data, such as user ID and an expiration time.</li><li><strong>Signature:</strong> A unique code that verifies the token is authentic.</li></ul><p>The server checks this signature to validate the token without needing to store session information, which makes JWTs highly scalable and efficient. This process is known as <em>stateless authentication</em>.</p><p><strong>Best Use Cases:</strong></p><ul><li><strong>Web and Mobile Apps:</strong> Ideal for applications where users log in once and need to stay authenticated to access different services, like social media platforms.</li><li><strong>Scalable Systems:</strong> Because the server doesn’t need to store session data, JWTs are perfect for large, distributed systems.</li></ul><p><strong>Limitations<br></strong>They are more complex to set up than simple API keys.3</p><h3>3. OAuth: The Trusted Valet</h3><p>Have you ever used a “Sign in with Google” or “Login with Facebook” button? That’s</p><p>OAuth in action. OAuth is an advanced framework that allows an application to obtain limited access to a user’s account on another service without ever getting their password. It acts like a valet key for your car — it lets the valet park your car but doesn’t give them access to the trunk or glove compartment.</p><p>The most common version, <strong>OAuth 2.0</strong>, works like this</p><ol><li>You click “Login with Google” on a third-party app.</li><li>The app redirects you to Google to sign in.</li><li>You grant the app permission to access specific information, like your email and profile.</li><li>Google gives the app an authorisation code, which it then exchanges for an access token.</li><li>The app uses this token to securely access your data from Google without ever seeing your password.</li></ol><p><strong>Best Use Cases:</strong></p><ul><li><strong>Third-Party Logins:</strong> The go-to standard for allowing users to log in with accounts from providers like Google, Facebook, or GitHub.</li><li><strong>Delegated Access:</strong> Perfect for applications that need to act on a user’s behalf, such as a social media scheduler that needs permission to post tweets for you.</li></ul><p><strong>Limitations<br></strong>OAuth workflows are powerful but can be complex to set up correctly.</p><h3>Special Mention: Authentication in the AWS Cloud ☁️</h3><p>When you are working with Amazon Web Services (AWS), security is paramount. AWS provides robust authentication methods to control access to its vast array of services, most notably through AWS Identity and Access Management (IAM) and Signature Version 4 (SigV4).</p><ul><li><strong>IAM Roles and Policies:</strong> IAM is the backbone of AWS security. Instead of using static API keys, you can create <strong>IAM roles</strong> with specific, fine-grained permissions. For example, you can grant an application running on an EC2 server temporary permission to read from an S3 bucket without ever hard coding credentials. The application “assumes” the role and gets temporary security tokens, which is a much more secure practice.</li><li><strong>AWS Signature Version 4 (SigV4):</strong> This is the protocol AWS uses to authenticate API requests to its services, including Amazon API Gateway. When you make a request, the AWS SDK automatically adds a unique authentication signature. This signature is calculated using your secret access key, the request details (like the host, action, and timestamp), and a cryptographic hash function. This process ensures that the request is authentic, has not been tampered with in transit, and protects against replay attacks.</li></ul><p>For developers building on AWS, using IAM roles and SigV4 is the standard for creating secure, scalable, and manageable applications.</p><h3>How to Choose the Right Method for You</h3><p>Selecting the best authentication method depends entirely on your needs. Here’s a quick summary to help you decide</p><ul><li>Go for API Keys when you need a quick and simple way to secure a public API or internal service where user-specific data is not involved.</li><li>Choose JWT when building web or mobile apps that require a scalable, stateless way to manage user sessions after they log in.</li></ul><p><strong>Use</strong><br>OAuth when you need to let users log in via third-party providers or grant limited, delegated access to their accounts on other services.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6de184bd5f90" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Step-by-Step Guide: Migrating On-Premises MySQL Databases to AWS RDS]]></title>
            <link>https://medium.com/@cloudarchmanas/step-by-step-guide-migrating-on-premises-mysql-databases-to-aws-rds-fbbf58ad2aaa?source=rss-3896cd5a4d27------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbbf58ad2aaa</guid>
            <dc:creator><![CDATA[Manas Das]]></dc:creator>
            <pubDate>Fri, 07 Feb 2025 12:12:06 GMT</pubDate>
            <atom:updated>2025-02-07T12:12:06.332Z</atom:updated>
            <content:encoded><![CDATA[<p>Migrating legacy MySQL databases from on-premises environments to AWS RDS (Relational Database Service) is a critical step for organisations looking to modernise their infrastructure, improve scalability, and reduce operational overhead. This guide provides a detailed, step-by-step approach to ensure a smooth migration process.</p><p><strong>1. Assess the Current Environment</strong></p><p>Inventory the Databases<br>- Identify all MySQL databases in your on-premises environment.<br>- Document database versions, sizes, and configurations.<br>- Ensure that the database size does not exceed AWS RDS limits (e.g., storage or instance type constraints).</p><p>Check Compatibility<br>- Confirm that the source MySQL version is compatible with AWS RDS MySQL versions.<br>- Use the AWS RDS documentation to determine supported features, extensions, and configurations.</p><p>Assess Dependencies<br>- Map all applications, scripts, and processes that interact with the database.<br>- Identify triggers, stored procedures, and custom extensions that might require modification.</p><p>Decide on Migration Strategy<br>- Homogeneous Migration: If moving from MySQL to MySQL, this approach is straightforward.<br>- Heterogeneous Migration: If transitioning to a different database engine (e.g., Aurora or PostgreSQL), additional steps like schema transformation will be required.</p><p><strong>2. Prepare the AWS RDS Instance</strong></p><p>Create an RDS Instance<br>1. Log in to AWS Management Console: Navigate to the RDS service.<br>2. Select the Database Engine — Choose MySQL and specify the version.</p><p><strong>3. Specify Instance Details</strong><br> — Select instance type (e.g., db.m5.large).<br> — Define storage capacity with General Purpose (SSD) or Provisioned IOPS.<br> — Enable Multi-AZ deployment for high availability if required.</p><p><strong>4. Configure Database Settings</strong><br> — Provide a database identifier, master username, and password.<br> — Configure database options such as parameter groups and option groups.</p><p>Enable Backups and Monitoring<br>- Enable automated backups for data recovery.<br>- Configure the backup retention period (default is 7 days, can be up to 35 days).<br>- Enable Enhanced Monitoring to track metrics like CPU, memory, and disk I/O.</p><p>Set Security Configurations<br>- Create a new VPC or use an existing one.<br>- Define subnets and associate the RDS instance with a subnet group.<br>- Configure security groups to allow inbound traffic on MySQL’s default port (3306).</p><p><strong>5. Prepare the Source Database</strong></p><p>Backup the Database<br>- Use `mysqldump` for logical backups or Percona Xtrabackup for physical backups.</p><pre>bash<br> mysqldump -u [username] -p - all-databases - routines - triggers &gt; dump.sql<br> </pre><p>- Ensure backups are encrypted and securely stored.</p><p>Analyse Performance<br>- Optimise schema and indexes to improve performance on the target RDS instance.<br>- Use tools like MySQL Workbench or `EXPLAIN` to analyse and optimise queries.</p><p>Clean Up Data<br>- Remove obsolete tables and unused indexes.<br>- Archive historical data that is no longer actively used.</p><p><strong>6. Set Up Network Connectivity</strong></p><p>Establish Secure Connectivity<br>- Use AWS Site-to-Site VPN or AWS Direct Connect to create a private connection between your on-premises environment and AWS.</p><p>Update Firewall Rules<br>- Open MySQL’s port (3306) in the on-premises firewall and AWS security groups.<br>- Restrict access to trusted IPs or CIDR ranges.</p><p>DNS Configuration<br>- Use the RDS endpoint DNS name for connectivity. Avoid hard coding IP addresses as these can change.</p><p><strong>7. Migrate the Data</strong></p><p>Option 1: Logical Migration Using mysqldump<br>1. Export the Database:</p><pre>mysqldump -u [username] -p - all-databases - routines - triggers &gt; dump.sql<br> </pre><p>2. Transfer the Backup File:<br> — Use scp or upload the file to AWS S3 for secure transfer.<br>3. Import the Data into AWS RDS:</p><pre>bash<br>mysql -h [RDS-endpoint] -u [username] -p &lt; dump.sql </pre><p>Option 2: Use AWS Database Migration Service (AWS DMS)<br>1. Set Up a Replication Instance:<br> — Launch a replication instance in AWS DMS to facilitate data migration.<br>2. Create Source and Target Endpoints:<br> — Source: Point to your on-premises MySQL database.<br> — Target: Point to your RDS instance.<br>3. Configure Migration Task:<br> — Choose Full Load to migrate the existing data.<br> — Enable Change Data Capture (CDC) to replicate changes during migration.</p><p><strong>8. Validate the Migration</strong></p><p>Check Data Integrity<br>- Verify that the number of rows in the source and target databases match.<br>- Use tools like `pt-table-checksum` or custom scripts to validate data consistency.</p><p>Application Testing<br>- Test the application’s read and write operations on the RDS instance.<br>- Verify that stored procedures, triggers, and functions work as expected.</p><p><strong>9. Optimise AWS RDS for Production</strong></p><p>Scaling and Performance<br>- Configure Read Replicas to handle read-heavy workloads.<br>- Use Performance Insights to analyse slow-running queries and optimise them.</p><p>Security Enhancements<br>- Implement IAM Authentication to manage database access securely.<br>- Enforce SSL/TLS for encrypted connections to the RDS instance.</p><p>Parameter Tuning<br>- Adjust the MySQL parameter group settings to match your workload requirements.</p><p><strong>10. Switch Over</strong></p><p>Update Application Connection Strings<br>- Modify application configurations to point to the RDS endpoint.<br>- Test connectivity and functionality in a staging environment before switching production.</p><p>Disable Source Database Writes<br>- Set the on-premises database to read-only mode to prevent changes during the cutover period.</p><p>Monitor the Application<br>- Monitor application performance and database metrics post-migration.<br>- Address any issues promptly to ensure a smooth user experience.</p><p><strong>11. Monitor and Maintain</strong></p><p>Set Up Alarms<br>- Use Amazon CloudWatch to monitor metrics like CPU usage, memory, storage, and connections.<br>- Set alarms for critical thresholds to ensure timely response to issues.</p><p>Enable Maintenance Windows<br>- Schedule maintenance tasks like updates and patching during non-peak hours.</p><p>Periodic Backups<br>- Review backup retention policies and test restore procedures periodically.</p><p><strong>12. Additional Tips</strong></p><p>- Automation: Use Infrastructure as Code (IaC) tools like Terraform or AWS CloudFormation to automate the provisioning of AWS resources.<br>- Performance Tuning: Periodically analyze database workloads and optimize query execution plans.<br>- Compliance: Ensure that your database complies with data security and privacy regulations such as GDPR, HIPAA, or SOC2.</p><p><strong>Conclusion</strong></p><p>Migrating MySQL databases from an on-premises environment to AWS RDS can transform your database operations by enhancing scalability, reducing operational overhead, and improving resilience. By following this detailed guide, you can ensure a successful migration with minimal downtime and optimal performance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbbf58ad2aaa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How AWS is Driving Green Cloud Computing - Insights for Enterprises]]></title>
            <link>https://medium.com/@cloudarchmanas/how-aws-is-driving-green-cloud-computing-insights-for-enterprises-82ea84e435dc?source=rss-3896cd5a4d27------2</link>
            <guid isPermaLink="false">https://medium.com/p/82ea84e435dc</guid>
            <category><![CDATA[aws-community-day]]></category>
            <category><![CDATA[awscommunitybuilder]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[green-energy]]></category>
            <category><![CDATA[sustainability]]></category>
            <dc:creator><![CDATA[Manas Das]]></dc:creator>
            <pubDate>Sun, 15 Dec 2024 19:04:16 GMT</pubDate>
            <atom:updated>2024-12-15T19:04:16.179Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s world, sustainability is no longer a choice but a necessity. Enterprises across industries are seeking ways to reduce their environmental footprint while maintaining competitive advantages. Green cloud computing has emerged as a powerful enabler for organizations striving to meet their environmental, social, and governance (ESG) goals. Amazon Web Services (AWS), a leader in cloud innovation, has taken significant strides in promoting sustainable cloud practices. With ambitious commitments such as achieving 100% renewable energy usage by 2025 and net-zero carbon emissions by 2040, AWS is paving the way for green cloud computing.<br>This blog explores how AWS’s initiatives are helping enterprises build <br>sustainable IT environments while delivering tangible business benefits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JTqeslt_S5Iin03O7q3rIQ.png" /></figure><p><strong>The Green Initiatives by AWS</strong></p><p><strong>1. Renewable Energy Projects</strong><br>AWS is one of the world’s largest corporate buyers of renewable energy, investing heavily in wind and solar projects. These projects power AWS data centers worldwide, contributing to cleaner energy grids. For instance, AWS announced a major milestone in 2023: achieving over 20 gigawatts of renewable energy capacity. This investment supports a greener cloud while reducing reliance on fossil fuels.</p><p><strong>2. Carbon Footprint Transparency</strong><br>To empower enterprises in their sustainability journey, AWS introduced the Customer Carbon Footprint Tool. This tool provides customers with detailed insights into the carbon emissions generated by their AWS workloads. By leveraging this data, businesses can identify optimization opportunities and take actionable steps to lower their environmental impact.</p><p><strong>3. Efficient Data Center Design</strong><br>AWS’s data centers are engineered for maximum energy efficiency. Key innovations include:<br>Custom-built Graviton processors: These chips are optimized for energy efficiency, consuming up to 60% less power than traditional processors.<br>Advanced cooling systems: AWS utilizes waterless cooling technologies and heat recovery systems to minimize energy waste.<br>Recycling and reuse initiatives: Many components used in AWS data centers are refurbished or recycled, reducing material waste.</p><p><strong>4. Green Regions and Local Zones</strong></p><p>AWS offers regions powered entirely by renewable energy, such as AWS Sweden. These green regions allow businesses to run workloads with a smaller carbon footprint. Furthermore, AWS Local Zones bring compute and storage resources closer to customers, reducing latency and energy consumption.</p><p><strong>Sustainability Features for Enterprises</strong><br><strong> 1. Optimizing Workloads for Energy Efficiency</strong><br>AWS provides tools like the AWS Compute Optimizer, which helps businesses identify over-provisioned resources. By rightsizing instances and implementing auto-scaling, organizations can reduce energy usage and costs simultaneously.</p><p><strong>2. Leveraging Serverless Architectures</strong><br>Serverless computing with AWS Lambda eliminates the need to provision idle resources. Since resources are consumed only when functions execute, energy wastage is significantly minimized, contributing to a greener cloud.</p><p><strong>3. Data Lifecycle Management</strong><br>Storage optimization plays a crucial role in reducing energy consumption. AWS’s S3 Intelligent-Tiering automatically transitions less frequently accessed data to cooler storage tiers. This not only reduces costs but also ensures energy-efficient storage management.</p><p><strong>Real-World Use Cases</strong></p><p><strong>Case Study 1: Renewable Energy Companies</strong><br>Renewable energy firms are leveraging AWS to model and optimize energy production. For example, by using services like Amazon Forecast and Amazon SageMaker, these companies can predict energy generation patterns and make data-driven decisions to maximize efficiency.</p><p><strong>Case Study 2: Retail Enterprises</strong><br>Retail giants are adopting AWS to enhance supply chain sustainability. Using tools like AWS IoT and Amazon QuickSight, businesses can track emissions across the supply chain and implement strategies to reduce their carbon footprint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K9T_9hnnFAxIFw6NOwYclA.png" /></figure><p>The Business Value of Going Green with AWS</p><p><strong>1. Cost Savings</strong><br>Energy-efficient solutions translate into lower operational costs. By optimizing workloads and using renewable energy sources, enterprises can achieve significant cost savings while reducing emissions.</p><p><strong>2. Meeting ESG Goals</strong><br>AWS’s green initiatives help organizations align with global ESG standards. By adopting sustainable cloud practices, businesses can enhance their brand reputation and attract environmentally conscious investors and customers.</p><p><strong>3. Compliance and Reporting</strong><br>AWS simplifies compliance with global sustainability regulations, such as the EU Green Deal and SEC climate risk disclosure requirements. Its tools and services enable enterprises to generate accurate carbon footprint reports and demonstrate progress toward sustainability targets.</p><p><strong>Challenges and Considerations</strong><br>While the benefits of green cloud computing are clear, enterprises may face challenges such as interpreting carbon footprint data or managing the upfront costs of transitioning workloads to renewable-powered regions. To address these hurdles, organizations can<br>Partner with AWS sustainability experts to design optimized architectures.<br>Leverage AWS’s cost calculators and tools for accurate financial planning.<br>Implement phased transitions to green regions to balance costs and benefits.</p><p><strong>The Future of Green Cloud Computing on AWS</strong><br>The journey to sustainable IT is far from over. AWS continues to innovate, with promising advancements in areas like quantum computing, which holds potential for energy-efficient problem-solving. Additionally, AI-driven tools are being developed to further enhance energy optimization across workloads. As AWS remains at the forefront of sustainability, enterprises have an unparalleled opportunity to leverage these innovations for a greener future.</p><p><strong>Call to Action</strong><br>Ready to make your cloud workloads more sustainable? Explore AWS’s sustainability resources, such as the Customer Carbon Footprint Tool, and start measuring your organization’s carbon impact today. Together, we can build a future where technology and sustainability go hand in hand.</p><p>I hope you found this article useful!</p><p>If you did, please share it with others who might benefit as well. I’d love to hear your thoughts — feel free to leave a comment or reach out if you have any questions or need further information. Your feedback and insights are always welcome!</p><p><strong>About the Author</strong><br>A Cloud Enthusiast, Passionate Learner, and Cloud Solutions Architect dedicated to empowering others through innovative cloud solutions and knowledge sharing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82ea84e435dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplifying AWS Chatbot Development with LangChain and Python: A Beginner’s Blueprint]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">Creating a chatbot that interacts with AWS services can be an exciting project for beginners. In this guide, we&#x2019;ll walk through the steps&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@cloudarchmanas/simplifying-aws-chatbot-development-with-langchain-and-python-a-beginners-blueprint-79431a0c50de?source=rss-3896cd5a4d27------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@cloudarchmanas/simplifying-aws-chatbot-development-with-langchain-and-python-a-beginners-blueprint-79431a0c50de?source=rss-3896cd5a4d27------2</link>
            <guid isPermaLink="false">https://medium.com/p/79431a0c50de</guid>
            <category><![CDATA[solution-architect]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[aws-solutions-architect]]></category>
            <dc:creator><![CDATA[Manas Das]]></dc:creator>
            <pubDate>Thu, 05 Sep 2024 19:08:07 GMT</pubDate>
            <atom:updated>2024-09-05T19:08:07.534Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Update Cloud9 environment to Python 3.9]]></title>
            <link>https://medium.com/@cloudarchmanas/update-cloud9-environment-to-python-3-9-7105a152b975?source=rss-3896cd5a4d27------2</link>
            <guid isPermaLink="false">https://medium.com/p/7105a152b975</guid>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[solution-architect]]></category>
            <category><![CDATA[aws-solution-architect]]></category>
            <category><![CDATA[cloud9-ide]]></category>
            <category><![CDATA[awscommunitybuilder]]></category>
            <dc:creator><![CDATA[Manas Das]]></dc:creator>
            <pubDate>Mon, 04 Mar 2024 14:05:56 GMT</pubDate>
            <atom:updated>2024-03-04T14:05:56.843Z</atom:updated>
            <content:encoded><![CDATA[<p>AWS Cloud9 is a cloud-based IDE (integrated development environment) that allows to write, run, and debug the code with a browser. It combines the rich code editing features of an IDE such as coding , debugging with access to a full Linux server for running and storing code.</p><p>This is a tool popularly used by developers to develop their code and quickly deploy in AWS. One such popular programming language is Python which is widely used across industies.</p><p>Python 3.9 introduced enhanced features like improved time zone support, dictionary updates, and more flexible decorators. These features can significantly boost the efficiency and readability of code.</p><p>Below are the commands to quickly update your cloud9 environment to Python 3.9 .</p><p>Commands to update Cloud9 environment to Python 3.9</p><p>1) sudo yum -y update<br>2) sudo yum -y groupinstall development<br>3) sudo yum -y install zlib-devel openssl-devel</p><p># Depends of python version you’re installing<br>4) wget <a href="https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tgz">https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tgz</a><br>5) tar xzf Python-3.9.5.tgz<br>6) cd Python-3.9.5</p><p>7) ./configure — enable-optimizations<br>8) make<br>9) sudo make altinstall<br>10) python3.9 -V<br>11) alias python=python3.9<br>12) echo ‘alias python=python3.9’ &gt;&gt; ~/.bashrc<br>13) source ~/.bashrc</p><p>14) python — version</p><p># Make sure you also install boto3 under Python 3.9<br>15) python3.9 -m pip install boto3</p><p>Python switches to a yearly release cycle and major Python update brings a faster release schedule and improves performance.</p><p>I hope you find this article useful and if so then please share it with others who will also get benefited and please do reach out if any queries or any further information you need . Do let me know your thoughts.</p><p><strong>About the Author<br></strong>A Leader , Cloud Enthusiast , Passionate Learner and Cloud Solutions Architect .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7105a152b975" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OAuth2 Authorization on AWS: Ensuring Your Applications are Protected]]></title>
            <link>https://medium.com/@cloudarchmanas/oauth2-authorization-on-aws-ensuring-your-applications-are-protected-b0c399648cc4?source=rss-3896cd5a4d27------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0c399648cc4</guid>
            <category><![CDATA[awscommunitybuilder]]></category>
            <category><![CDATA[oauth2]]></category>
            <category><![CDATA[aws-security]]></category>
            <category><![CDATA[solution-architect]]></category>
            <category><![CDATA[identity-management]]></category>
            <dc:creator><![CDATA[Manas Das]]></dc:creator>
            <pubDate>Sat, 07 Oct 2023 23:07:18 GMT</pubDate>
            <atom:updated>2023-10-07T23:07:18.041Z</atom:updated>
            <content:encoded><![CDATA[<p>Open Authorization or OAuth 2.0 is now the industry standard authorization protocol which allows an application or website to access resources on behalf of an user from another application. It also provides consented access and restricts actions of what the client app can perform on the resources on behalf of the user, without sharing the user’s credentials.<br>OAuth 2.0 uses Access Tokens which is a piece of data that represents the authorization to access resources on behalf of the end-user and enables token issuers to include data in the token</p><p>In this blog , I will explain how OAuth2 works with an example and its benefits in today’s IT landscape.<br>The article is structured in to two sections</p><p>1-How OAuth2 Works<br>2- OAuth2 Setup and Test</p><p><strong>1- How OAuth2 works</strong></p><p>The diagrams shows the workflow for OAuth2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3GAtw7RIhsk7ip5sbYAikA.jpeg" /></figure><p>1- click login link (user-postman)<br>2-Authorization code request to /authorize (postman-&gt;Cognito)<br>3-redirect to login/authorization promopt (cognito-&gt;user)<br>4-Authenticated and Consent(User-&gt;Cognito)<br>5-Authorizaton code (cognito-&gt; Postman)<br>6-Auth code+client id+client secret to /oauth/token (postman-&gt;cognito)<br>7-Validate auth code+client id+client secret(cognito-cognito)<br>8-ID token and access token (cognito-&gt; Postman)<br>9-Request user data with Access token (postman-&gt;API Gateway)<br>10-Response (API Gateway -&gt; Postman)</p><p>Explaininh further the above steps for understanding for the readers.</p><p>A Client must acquire its own credentials, i.e. a client id and client secret, from the Authorization Server in order to identify and authenticate itself when requesting an Access Token.</p><p>Using OAuth 2.0, access requests are initiated by the Client, e.g., a mobile app, website, smart TV app, desktop application, etc. The token request, exchange, and response follow this general flow:</p><p>The Client (Postman) requests authorization (authorization request) from the Authorization server (AWS Cognito), supplying the client id and secret to as identification; it also provides the scopes and an endpoint URI (redirect URI) to send the Access Token or the Authorization Code to.</p><p>The Authorization server authenticates the Client and verifies that the requested scopes are permitted.</p><p>The Resource owner interacts with the Authorization server to grant access.</p><p>The Authorization server redirects back to the Client with either an Authorization Code or Access Token, depending on the grant type a Refresh Token may also be returned.</p><p>With the Access Token, the Client requests access to the resource (REST Endpoint Scope) from the Resource server (AWS API Gateway).</p><p>To setup Oauth2 and test , it requires the below</p><p>1- Postman Tool for testing<br>2- AWS Cognito for configuring the userpool<br>3- API Gateway for setting up RESTAPI endpoint</p><p>You need to download and install Postman tool only and for Cognito and API gateway login to your AWS account.</p><p><strong>2-Setup &amp; Test</strong></p><p>i-Setup in AWS Cognito</p><p>Create Userpool <br>Go to Amazon Cognito in AWS console and follow the default settings for creating a userpool.<br>Then, under App integration ,create a cognito domain which will be used as the Access Token url<br>Next, create a resource server (testresource) and create custom scopes with a resource server identifier e.g. test e.g. test/read for GET operation and test/write for POST operation<br>Finally , create app client and under Hosted UI select OAuth grant types as Client credentials grant and select the Custom scopes : test/read ,test/write</p><p>ii-Setup in AWS API Gateway</p><p>Create an sample API in API Gateway for the testing purpose<br>Sample config used for this blog are as below.</p><p>Protocol:REST<br>Create new API<br>APIName- TestApi<br>Endpoint-Regional<br>Create resource under TestApi- test<br>Create Method under resource — GET,POST<br>Under Authorizers — create new authorizer<br> select cognito pool<br> Token source : authorization</p><p>Then, go to Method Request and update the Authorization to Oauth and scopes e.g. test/read (GET) ,test/write (POST)<br>Finally deploy the APIs.</p><p>iii- Postman</p><p>For testing the OAuth2 connection you would need the below to configure the new token.</p><p>1-client id<br>2-client secret<br>3-Access Token URL<br>4-Scope : test/read (GET) or test/write (POST)<br>5-grant type : client credentials in this case</p><p>In Postman if you test the scope which is the REST endpoint with a method GET or POST , you will receive a success 200 message as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-YVbQs5sjYA8VM2wWmdy1g.jpeg" /><figcaption><strong>Succeesful OAuth2.0 response</strong></figcaption></figure><p>In conclusion, OAuth2.0 mitigates risks associated with data sharing between applications by separation of concerns and decoupling authorization from the web application, which usually serves business .Using OAuth2.0 business can implement an alternative to Single Sign On where there are multiple applications and can also mandate the authorization process to a third party that your organization trust.In Today’s multicloud world OAuth2 is a great feature to leverage modularization and encapsulation .</p><p>I hope you find this article useful and if so then please share it with others who will also get benefited and please do reach out if any queries or any further information you need . Do let me know your thoughts.</p><p><strong>About the Author<br></strong>A Cloud Enthusiast , Passionate Learner and Cloud Solutions Architect .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0c399648cc4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Seamless Deployment: A Guide to Pushing Docker Images to Amazon ECR and ECS]]></title>
            <link>https://medium.com/@cloudarchmanas/seamless-deployment-a-guide-to-pushing-docker-images-to-amazon-ecr-and-ecs-72260681ff94?source=rss-3896cd5a4d27------2</link>
            <guid isPermaLink="false">https://medium.com/p/72260681ff94</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[aws-solutions-architect]]></category>
            <category><![CDATA[awscommunitybuilder]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[elastic-container-service]]></category>
            <dc:creator><![CDATA[Manas Das]]></dc:creator>
            <pubDate>Thu, 15 Jun 2023 10:53:20 GMT</pubDate>
            <atom:updated>2023-06-15T10:53:20.852Z</atom:updated>
            <content:encoded><![CDATA[<p>Docker has revolutionized the way applications are packaged and deployed, allowing for easy scalability and portability.<br>Amazon Elastic Container Registry (ECR) is a fully-managed Docker container registry service offered by Amazon Web Services (AWS).<br>In this article, I will walk you through the ten step process of creating a Docker image, pushing it to Amazon ECR.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IU9ZetfA1G0GgnQDywx3xQ.jpeg" /></figure><p>So What is a Docker Image?<br>A Docker image is a lightweight, standalone, executable package that includes everything needed to run a piece of software, including the code, a runtime, libraries,environment variables, and config files.</p><p>Essentially it is a snapshot of a Docker container.</p><p>We will use the EC2 instance for creating and pushing Docker images to ECR and CLI commands in this blog. So , lets get started.</p><p><strong>Step 1: </strong>Launch an EC2 Instance and provide an IAM Instance role to the EC2 Instance to be able to perform read and write operations to Amazon ECR.<br>For this purpose you can provide admin access.</p><p>For installing and starting docker service on the EC2 instance below commands can be used.</p><pre>yum install docker -y<br>service docker start<br>usermod -a -G docker ec2-user</pre><p>This will download and install docker on EC2 if not installed already<br>Then the Docker daemon process get started in the background.<br>usermod command will modify the user docker and add it to group ec2-use for performing similar actions as that of ec2-user</p><p>Please note to use sudo in front of the commands as applicable (for different linux flavour) to get root permission to execute .</p><p><strong>Step-2 :</strong>Create your directory for docker files e.g.</p><pre>mkdir my-doc-image</pre><p>A Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image .</p><p>Edit the docker file using vi or nano editor .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*hFc1vqFKHcWctlXWp326Ig.jpeg" /><figcaption><strong>DockerFile</strong></figcaption></figure><p><strong>Step-3 :</strong> Building a Docker image involves creating a Dockerfile with the necessary instructions,and then running the docker build command</p><p>The Docker build command takes the Dockerfile and creates a Docker image based on the instructions in the Dockerfile.<br>This image can then be run as a Docker container using the docker run command below.</p><pre>sudo docker build -t my-doc-image .</pre><p><strong>Step-4 : </strong>Pushing Image to ECR</p><p>First, authenticate the Docker client to ECR</p><pre>aws ecr create-repository - repository-name my-doc-image - image-scanning-configuration scanOnPush=true - region us-east-1<br>aws ecr get-login-password - region us-east-1 | docker login - username AWS - password-stdin &lt;account id&gt;.dkr.ecr.us-east-1.amazonaws.com</pre><p><strong>Step-5 :</strong> Tag your image with the Amazon ECR registry, repository<br>This will ease the use of the image using tagname</p><pre>sudo docker tag my-doc-image:latest &lt;account id&gt;.dkr.ecr.us-east-1.amazonaws.com/my-doc-image<br>Replace the account id to reflect your account</pre><p>Now Amazon ECS can be used to launch a task from the custom image on ECR .<br>Now below are the high level steps for launching tasks from ECS</p><p><strong>Step-6: </strong>Push the image using the docker push command:</p><pre>sudo docker push &lt;account id&gt;.dkr.ecr.us-east-1.amazonaws.com/my-doc-image</pre><p><strong>Step-7 :</strong> Create a task execution role and attach the managed policy to the role</p><pre>aws iam create-role - role-name ecsExecutionRole - assume-role-policy-document file://trust-policy.json</pre><p>Below a sample trust-policy.json</p><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Sid&quot;: &quot;&quot;,<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Principal&quot;: {<br>        &quot;Service&quot;: &quot;ecs-tasks.amazonaws.com&quot;<br>      },<br>      &quot;Action&quot;: &quot;sts:AssumeRole&quot;<br>    }<br>  ]<br>}</pre><p>Attach the AmazonECSTaskExecutionRolePolicy (managed policy) to the task execution role</p><pre>aws iam attach-role-policy - role-name ecsExecutionRole - policy-arn arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy</pre><p><strong>Step-8 :</strong> Create a cluster and task</p><pre>aws ecs create-cluster - cluster-name my-doc-image<br>aws ecs put-cluster-capacity-providers - cluster my-doc-image - capacity-providers FARGATE FARGATE_SPOT - default-capacity-provider-strategy capacityProvider=FARGATE,weight=1,base=1</pre><p><strong>Step-9 : </strong>Create a task definition (task-definition.json) and supply the image URI and execution role and register<br>Image URI will be found in Amazon ECR (Elastic Container Registry)</p><p>Sample task-definition.json can be found below here . Make sure the account id needs to be updated accordingly before use.</p><pre>{<br>    &quot;executionRoleArn&quot;: &quot;arn:aws:iam::&lt;account id&gt;:role/ecsExecutionRole&quot;,<br>    &quot;containerDefinitions&quot;: [<br>        {<br>            &quot;name&quot;: &quot;my-doc-image&quot;,<br>            &quot;image&quot;: &quot;&lt;account id&gt;.dkr.ecr.us-east-1.amazonaws.com/my-doc-image&quot;,<br>            &quot;essential&quot;: true,<br>            &quot;portMappings&quot;: [<br>                {<br>                    &quot;containerPort&quot;: 80<br>                }<br>            ]<br>        }<br>    ],<br>    &quot;requiresCompatibilities&quot;: [<br>        &quot;FARGATE&quot;<br>    ],<br>    &quot;networkMode&quot;: &quot;awsvpc&quot;,<br>    &quot;cpu&quot;: &quot;256&quot;,<br>    &quot;memory&quot;: &quot;512&quot;,<br>    &quot;family&quot;: &quot;my-doc-image&quot;<br>}</pre><p>Register the task definition with below CLI command</p><pre>aws ecs register-task-definition - cli-input-json file://task-definition.json</pre><p><strong>Step-10 : </strong>Launching a Task</p><p>The task in the fagate cluster can be launched using the CLI command. Please note to update the Subnet ID and Security group ID accordingly and Security group should have required permission enabled for inbound. For this example HTTP on port 80.</p><pre>aws ecs run-task - cluster my-doc-image - task-definition my-doc-image-task - count 1 - launch-type FARGATE - network-configuration &quot;awsvpcConfiguration={subnets=[&lt;subnet id&gt;],securityGroups=[&lt;security group&gt;],assignPublicIp=ENABLED}&quot;</pre><p><strong>Result </strong><br>You can now verify your new image by clicking on the task URL to get the output displayed on the webbrowser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gR7hc9anpnt12FHy7hMIqA.jpeg" /><figcaption><strong>Output</strong></figcaption></figure><p>Also command below, will list all the images Docker currently knows about on your machine .</p><pre>docker images</pre><p><strong>Advantages</strong><br>Ofcouse this feature has alot of advantages in architecting modern applications . Listed below are a couple of key advantages for enterprises to use Docker with ECS for their containerized application.</p><p><strong>Flexibility :</strong> Custom images can be portable across different regions in AWS as well as different platforms (Linux,Windows,Mac OS)<br><strong>High Scalable and Available :</strong> ECS scales with auto scaling and highly available managed AWS services.<br><strong>Easy Deployment :</strong> ECS integrates with ECR along with Code Pipeline and AWS CloudFormation to create CI/CD pipeline<br><strong>Easy Management: </strong>ECS provides a user-friendly management console, CLI (Command Line Interface).<br><strong>Enhanced Security:</strong> ECS provides security features to protect your containers and infrastructure.<br><strong>Monitoring and Logging: </strong>ECS integrates with AWS CloudWatch, allowing to collect and analyze container logs and metrics in real-time and setup notifications by configuring alarms.</p><p>I hope you find this article useful and if so then please share it with others who will also get benefited and please do reach out if any queries or any further information you need . Do let me know your thoughts.</p><p>About the Author<br>A Cloud Enthusiast , Passionate Learner and Cloud Solutions Architect.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72260681ff94" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlocking the Potential of Serverless Architecture in E-commerce Applications: A Game-Changing…]]></title>
            <link>https://medium.com/@cloudarchmanas/unlocking-the-potential-of-serverless-architecture-in-e-commerce-applications-a-game-changing-da013acbd08b?source=rss-3896cd5a4d27------2</link>
            <guid isPermaLink="false">https://medium.com/p/da013acbd08b</guid>
            <category><![CDATA[amazon-web-services]]></category>
            <category><![CDATA[serverless-architecture]]></category>
            <category><![CDATA[awscommunitybuilder]]></category>
            <category><![CDATA[aws-solutions-architect]]></category>
            <category><![CDATA[awsserverless]]></category>
            <dc:creator><![CDATA[Manas Das]]></dc:creator>
            <pubDate>Fri, 02 Jun 2023 00:54:05 GMT</pubDate>
            <atom:updated>2023-06-02T00:54:05.500Z</atom:updated>
            <content:encoded><![CDATA[<h3>Unlocking the Potential of Serverless Architecture in E-commerce Applications: A Game-Changing Approach</h3><p>Most of the Organizations and Business Applications nowadays are inclined towards serverless architecture over the traditional multi-tier architecture.Mostly its the first choice for the E-Commerce applications.<br>Why is Serverless gaining popularity ? Here are some of the advantages of Serverless architecture.</p><p>With serverless architecture, the application scales automatically based on the incoming traffic, ensuring optimal performance during peak periods without the need for manual intervention.<br>The serverless approach enables cost optimization as businesses only pay for the actual execution time and resources consumed by their application.<br>No overhead of maintaining or provisioning dedicated servers.<br>Security is a big advantage of serverless ecommerce applications since the cloud providers handle most of the underlying infrastructure security, including server maintenance, patching, and WAF,DDoS protection.<br>Integration of third-party services, such as payment gateways or shipping providers, is straightforward in a serverless ecommerce application through APIs or webhook integrations.<br>The event-driven nature of serverless architecture enables real-time updates and notifications as well as allows to decouple the architecture.</p><p>With all this lets have a look at simple serverless E-commerce architecture for understanding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*28r_si3mrNIMS1Rm5ZeETg.jpeg" /><figcaption><strong>AWS Serverless Architecture for E-Commerce Application</strong></figcaption></figure><p>The architecture has 2 parts to it .<br>Part-1 — Data captured from Website and pushed to SQS queue</p><p>In this architecture the S3 bucket hosts the static website . The website has a form to enter and submit data . In this example it’s the purchase data .<br>Then the API gateway sits in front of the S3 static website . The Static Website code sends the incoming traffic to the API gateway .<br>The API gateway uses a lambda proxy integration which forwards the info directly through without modification to the Lambda function.<br>That lambda function then takes the info and places it on the SQS queue.</p><p>Part-2 Data pulled from SQS queue and written to DynamoDB Database</p><p>Once the data is added to the SQS queue then it triggers the lambda function.Lambda function processes the info and then messages from the SQS queue are written into the DynamoDB .</p><p>This is a framework architecture which can be easily used by most of the E-Commerce applications in quick time and then can be further extended to serve additional requirements.</p><p>I hope you find this article useful and if so then please share it with others who will also get benefited and please do reach out if any queries or any further information you need and do let me know your thoughts on this .</p><p>About the Author<br>I am a Cloud Enthusiast ,Passionate Learner and Practicing Solutions Architect.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da013acbd08b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>