<?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 Bhushan Bamble on Medium]]></title>
        <description><![CDATA[Stories by Bhushan Bamble on Medium]]></description>
        <link>https://medium.com/@bhushan.bamble?source=rss-d82d8d8ddfaf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vwwfa7Ly26w32wFH-4-miw.jpeg</url>
            <title>Stories by Bhushan Bamble on Medium</title>
            <link>https://medium.com/@bhushan.bamble?source=rss-d82d8d8ddfaf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:45:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bhushan.bamble/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[MultiCloud, DevOps & AI Challenge ☁️ Day 5: Going Multicloud: BW/BI with Google BigQuery &…]]></title>
            <link>https://medium.com/@bhushan.bamble/multicloud-devops-ai-challenge-%EF%B8%8F-day-5-going-multicloud-bw-bi-with-google-bigquery-5c2dce1eb5c5?source=rss-d82d8d8ddfaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c2dce1eb5c5</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[bigquery]]></category>
            <category><![CDATA[aws-bedrock]]></category>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Bhushan Bamble]]></dc:creator>
            <pubDate>Sat, 22 Mar 2025 06:48:40 GMT</pubDate>
            <atom:updated>2025-03-23T00:20:57.390Z</atom:updated>
            <content:encoded><![CDATA[<h3>MultiCloud, DevOps &amp; AI Challenge ☁️ Day 5: Going Multicloud: BW/BI with Google BigQuery &amp; Sentiment Analysis with Azure AI</h3><p>On Day 5 of my <strong>MultiCloud, DevOps &amp; AI Challenge</strong>, I focused on integrating <strong>Google BigQuery</strong> for automated order data backup and <strong>Azure Text Analytics</strong> for sentiment analysis into my <strong>CloudMart</strong> application. My approach leveraged <strong>Infrastructure as Code (Terraform)</strong> and <strong>Kubernetes deployment</strong> to ensure a scalable and automated solution. In this blog, I’ll walk through the steps I took to achieve this integration.</p><h3>Step 1: Preparing the Codebase</h3><p>Before making any changes, I backed up my existing frontend and backend code:</p><pre>cp -R cloudmart-web-app/ cloudmart-web-app_bkp<br>cp -R terraform-project/ terraform-project_bkp</pre><h3>Cleaning Up Unnecessary Files</h3><p>To ensure a clean workspace, I removed unnecessary files but kept Docker and YAML configurations intact.</p><h4>Backend Cleanup:</h4><pre>cd cloudmart-web-app/backend<br>rm -rf $(find . -mindepth 1 -maxdepth 1 -not \( -name &quot;.*&quot; -o -name Dockerfile -o -name &quot;*.yaml&quot; \))</pre><h4>Frontend Cleanup:</h4><pre>cd cloudmart-web-app/frontend<br>rm -rf $(find . -mindepth 1 -maxdepth 1 -not \( -name &quot;.*&quot; -o -name Dockerfile -o -name &quot;*.yaml&quot; \))</pre><h3>Copying Updated Code</h3><p>With the cleanup complete, I replaced the old code with the latest version:</p><pre>cd cloudmart-web-app/backend<br>cp -r website-cloud-devops-ai/cloudmart-backend-final/* cloudmart-web-app/backend</pre><pre>cd cloudmart-web-app/frontend<br>cp -r website-cloud-devops-ai/cloudmart-frontend-final/* cloudmart-web-app/frontend</pre><p>I then committed and pushed the changes:</p><pre>git add -A<br>git commit -m &quot;Final code update&quot;<br>git push</pre><h3>Step 2: Setting Up Google BigQuery</h3><p>To store order data efficiently, I set up <strong>Google BigQuery</strong> as my cloud data warehouse.</p><h4>Creating a Google Cloud Project</h4><ul><li>Logged into <a href="https://console.cloud.google.com/">Google Cloud Console</a></li><li>Created a new project named <strong>CloudMart</strong></li></ul><h4>Enabling BigQuery API</h4><ul><li>Navigated to <strong>APIs &amp; Services</strong> → <strong>Dashboard</strong></li><li>Enabled the <strong>BigQuery API</strong></li></ul><h4>Creating a BigQuery Dataset &amp; Table</h4><ul><li>Created a dataset named cloudmart</li><li>Defined a table cloudmart-orders with the following schema:</li><li>id: STRING</li><li>createdAt: TIMESTAMP</li><li>items: JSON</li><li>status: STRING</li><li>total: FLOAT</li><li>userEmail: STRING</li></ul><figure><img alt="BigQuery table" src="https://cdn-images-1.medium.com/max/1024/1*N1cCHadGIHJafNjsmRTcsw.png" /><figcaption>BigQuery table</figcaption></figure><h3>Setting Up Service Account</h3><ul><li>Created a service account cloudmart-bigquery-sa with <strong>BigQuery Data Editor</strong> role</li><li>Generated a JSON key and saved it as google_credentials.json</li></ul><figure><img alt="BigQuery service account for lambda" src="https://cdn-images-1.medium.com/max/1024/1*bBl_gVvxncg0HI8k4duaaQ.png" /><figcaption>BigQuery service account for lambda</figcaption></figure><h3>Step 3: Automating BigQuery with Terraform</h3><p>I automated the BigQuery setup using <strong>Terraform</strong>.</p><ul><li>Removed the existing main.tf and created a new one:</li></ul><pre>rm main.tf<br>nano main.tf</pre><ul><li>Defined the infrastructure, ensuring <strong>Lambda</strong> was triggered by a <strong>DynamoDB stream</strong> to back up order data in BigQuery.</li><li>Applied the Terraform configuration:</li></ul><pre>terraform apply</pre><figure><img alt="Updated main.tf file and deployed" src="https://cdn-images-1.medium.com/max/1024/1*2nrILAQn-WZOwAUEZ8nMiA.png" /><figcaption>Updated main.tf file and deployed</figcaption></figure><figure><img alt="DynamoDB to BigQuery Lambda function" src="https://cdn-images-1.medium.com/max/864/1*zBXJvQmapjolTIceEb9GAA.png" /><figcaption>DynamoDB to BigQuery Lambda function</figcaption></figure><h3>Step 4: Setting Up Azure Text Analytics</h3><p>To enhance <strong>CloudMart</strong> with sentiment analysis, I integrated <strong>Azure Text Analytics</strong>.</p><h4>Creating an Azure Account</h4><ul><li>Logged into <a href="https://portal.azure.com/">Azure Portal</a></li><li>Created a <strong>Language Service</strong> resource</li></ul><figure><img alt="Azure AI Language Text Analytics" src="https://cdn-images-1.medium.com/max/1024/1*feUNDx7VsBjcNDG2g0FAIQ.png" /><figcaption>Azure AI Language Text Analytics</figcaption></figure><figure><img alt="Configure text analytics resource" src="https://cdn-images-1.medium.com/max/911/1*f9oIn-2-Vt4NpjbuK4f4wQ.png" /><figcaption>Configure text analytics resource</figcaption></figure><figure><img alt="Azure Text Analytics setup" src="https://cdn-images-1.medium.com/max/1024/1*6NxPTJS_4ktZEPXjNfbmQw.png" /><figcaption>Azure Text Analytics setup</figcaption></figure><h4>Retrieving API Credentials</h4><ul><li>Copied the <strong>Endpoint URL</strong> and <strong>API Key</strong> from the resource settings</li></ul><h3>Step 5: Deploying Backend Changes</h3><p>I updated the <strong>Kubernetes deployment configuration</strong> for the backend to include environment variables for both <strong>Google BigQuery</strong> and <strong>Azure AI</strong>.</p><h3>Updating cloudmart-backend.yaml</h3><pre>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: cloudmart-backend-app<br>spec:<br>  replicas: 1<br>  selector:<br>    matchLabels:<br>      app: cloudmart-backend-app<br>  template:<br>    metadata:<br>      labels:<br>        app: cloudmart-backend-app<br>    spec:<br>      serviceAccountName: cloudmart-pod-execution-role<br>      containers:<br>      - name: cloudmart-backend-app<br>        image: public.ecr.aws/l4c0j8h9/cloudmaster-backend:latest<br>        env:<br>        - name: PORT<br>          value: &quot;5000&quot;<br>        - name: AZURE_ENDPOINT<br>          value: &quot;xxxx&quot;<br>        - name: AZURE_API_KEY<br>          value: &quot;xxxx&quot;<br>        - name: GOOGLE_CREDENTIALS<br>          value: &quot;/path/to/google_credentials.json&quot;</pre><p>After making the changes, I deployed the update:</p><pre>kubectl apply -f cloudmart-backend.yaml</pre><figure><img alt="New Backend docker image created" src="https://cdn-images-1.medium.com/max/1024/1*KJqZtkC-B8lJF87LdHWd7A.png" /><figcaption>New Backend docker image created</figcaption></figure><figure><img alt="Added new products on the website" src="https://cdn-images-1.medium.com/max/1024/1*BskA_Vzopv1YKA-r9CnOjw.png" /><figcaption>Added new products on the website</figcaption></figure><h3>Step 6: Validating the Setup</h3><p>To ensure everything worked as expected, I performed two key validation tests:</p><h3>Google BigQuery Backup</h3><ul><li>Placed a test order and confirmed that the data appeared in <strong>BigQuery</strong>.</li></ul><figure><img alt="Placing new order" src="https://cdn-images-1.medium.com/max/1024/1*TydC3zTuvJdyOFg1wAPJwg.png" /><figcaption>Placing new order</figcaption></figure><figure><img alt="Order Placed" src="https://cdn-images-1.medium.com/max/1024/1*d3tEJuXcz9lSeuW3oQDJyg.png" /><figcaption>Order Placed</figcaption></figure><figure><img alt="Order registered in DynamoDB" src="https://cdn-images-1.medium.com/max/1024/1*AVV-VaS6ye6vb-3nkd7hPA.png" /><figcaption>Order registered in DynamoDB</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gd_KeQgskWHb6c69kF72ZQ.png" /><figcaption>Order registered by Lambda into BigQuery</figcaption></figure><h3>Azure Sentiment Analysis</h3><ul><li>Submitted a support ticket and verified sentiment analysis results.</li></ul><figure><img alt="Negative customer support experience" src="https://cdn-images-1.medium.com/max/1024/1*1b8iyg41YQKkEr_K2EEiUg.png" /><figcaption>Negative customer support experience</figcaption></figure><figure><img alt="Negative sentiment detected by Text Analytics" src="https://cdn-images-1.medium.com/max/1024/1*pfCPw78B-V-EYjCyed-1PQ.png" /><figcaption>Negative sentiment detected by Text Analytics</figcaption></figure><figure><img alt="Neutral customer experience" src="https://cdn-images-1.medium.com/max/1024/1*UJk8S8nDwGQ-FrnEM1ALWw.png" /><figcaption>Neutral customer experience</figcaption></figure><figure><img alt="Neutral sentinment detected by Text Analytics" src="https://cdn-images-1.medium.com/max/1024/1*VVECiyOWeY2t-DMBcgJ-yg.png" /><figcaption>Neutral sentinment detected by Text Analytics</figcaption></figure><figure><img alt="Positive customer support conversation" src="https://cdn-images-1.medium.com/max/1024/1*xAANVElpDoW3IFPZqivRWg.png" /><figcaption>Positive customer support conversation</figcaption></figure><figure><img alt="Positive sentiment detected by Text Analytics" src="https://cdn-images-1.medium.com/max/1024/1*6CZbqRCTYEKMfPR5QOgSNQ.png" /><figcaption>Positive sentiment detected by Text Analytics</figcaption></figure><h3>Learnings &amp; Observations</h3><h4>Google BigQuery Integration</h4><ul><li>Configuring <strong>service accounts</strong> and <strong>IAM roles</strong> correctly was crucial for smooth data ingestion.</li><li>️ A well-designed <strong>data schema</strong> significantly improves query performance and efficiency.</li></ul><h4>Azure Text Analytics</h4><ul><li>The accuracy of sentiment analysis <strong>depends on well-structured text input</strong>.</li><li>Azure’s <strong>pre-trained AI models</strong> simplify NLP tasks without requiring custom ML training.</li></ul><h3>Conclusion</h3><p>This multicloud integration enhances <strong>CloudMart</strong> by ensuring <strong>reliability, scalability, and real-time insights</strong>. By leveraging <strong>Terraform</strong>, <strong>Kubernetes</strong>, and cloud-native services, I successfully deployed an automated, multicloud-ready application.</p><p>For detailed code and a more comprehensive summary, check out my GitHub repository:</p><p><a href="https://github.com/bhushann7/MultiCloud-Devops-AI-Project/tree/main/day5-dw-bi-ai-on-gcp-azure"><em>GitHub Repository — Day 5</em></a></p><h3>Key Takeaways:</h3><ul><li><strong>Google BigQuery</strong> automates order data backup, ensuring data persistence.</li><li><strong>Azure Text Analytics</strong> enables sentiment analysis for better customer support insights.</li><li><strong>Terraform &amp; Kubernetes</strong> streamline infrastructure management and deployment.</li></ul><p>This multicloud DW/BI and AI integration completes the Multicloud, DevOps and AI challenge. It was a fantastic learning experience, pushing me to explore <strong>Multicloud DevOps and AI solutions</strong> firsthand. Did you find my journey completing this challenge interesting? Let me know your thoughts in the comments below! Until my next challenge — Happy learning, and remember to be kind to others, keep drinking water, and be a responsible resident of Earth!</p><p>Connect with me on <a href="https://www.linkedin.com/in/bhushanbamble"><strong><em>Linkedin</em></strong></a> if you need to discuss anything related to Data, AI, Cloud, Soccer and Aviation or just want to have a chat!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c2dce1eb5c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MultiCloud, DevOps & AI Challenge ☁️ Day 4: Creating AI Agents with OpenAI and Amazon Bedrock]]></title>
            <link>https://medium.com/@bhushan.bamble/multicloud-devops-ai-challenge-%EF%B8%8F-day-4-creating-ai-agents-with-openai-and-amazon-bedrock-24810c0af24f?source=rss-d82d8d8ddfaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/24810c0af24f</guid>
            <category><![CDATA[aws-bedrock]]></category>
            <category><![CDATA[ai-integration]]></category>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[openai-api]]></category>
            <dc:creator><![CDATA[Bhushan Bamble]]></dc:creator>
            <pubDate>Fri, 21 Mar 2025 17:58:17 GMT</pubDate>
            <atom:updated>2025-03-21T17:58:17.101Z</atom:updated>
            <content:encoded><![CDATA[<p>As part of the MultiCloud, DevOps &amp; AI Challenge, I explored the integration of AI-driven assistants into the CloudMart application. This involved deploying an AI chatbot using Amazon Bedrock and an AI assistant powered by OpenAI’s GPT-4o. This blog post details the entire process, from setting up cloud infrastructure with Terraform to configuring and testing the AI-driven assistants.</p><h3>Overview</h3><p>The integration focused on two AI-powered components:</p><ul><li><strong>Amazon Bedrock Agent (AI Chatbot)</strong> — Providing product recommendations for CloudMart customers.</li><li><strong>OpenAI Assistant (GPT-4o)</strong> — Handling customer support inquiries.</li></ul><p>Additionally, the deployment relied on <strong>Infrastructure as Code (Terraform)</strong> and <strong>Kubernetes</strong> to ensure scalability and efficiency.</p><h3>1. Creating Cloud Resources Using Terraform</h3><p>To establish the required cloud infrastructure, Terraform was used to provision AWS resources, including:</p><ul><li>An IAM role and policy for Lambda execution.</li><li>A Lambda function for retrieving product data from a DynamoDB table.</li><li>Permissions for Amazon Bedrock to invoke the Lambda function.</li></ul><h3>Key Terraform Configuration:</h3><pre>resource &quot;aws_iam_role&quot; &quot;lambda_role&quot; {<br>  name = &quot;cloudmart_lambda_role&quot;<br>  assume_role_policy = jsonencode({<br>    Version = &quot;2012-10-17&quot;<br>    Statement = [{<br>      Action = &quot;sts:AssumeRole&quot;,<br>      Effect = &quot;Allow&quot;,<br>      Principal = { Service = &quot;lambda.amazonaws.com&quot; }<br>    }]<br>  })<br>}</pre><pre>resource &quot;aws_lambda_function&quot; &quot;list_products&quot; {<br>  filename         = &quot;list_products.zip&quot;<br>  function_name    = &quot;cloudmart-list-products&quot;<br>  role             = aws_iam_role.lambda_role.arn<br>  handler          = &quot;index.handler&quot;<br>  runtime          = &quot;nodejs20.x&quot;<br>}</pre><p>Terraform streamlined the deployment of cloud resources, making the setup repeatable and manageable.</p><h3>2. Configuring Amazon Bedrock Agent (AI Chatbot)</h3><p>Amazon Bedrock powers AI models in AWS, and for CloudMart, it was used to build an AI-driven product recommendation chatbot.</p><h3>Steps Taken:</h3><ol><li><strong>Enable Claude 3 Sonnet Model</strong> in the Amazon Bedrock console.</li><li><strong>Create an Agent</strong> named cloudmart-product-recommendation-agent with predefined instructions.</li><li><strong>Define API interactions</strong> by creating an action group linked to a Lambda function.</li><li><strong>Assign IAM permissions</strong> to allow Bedrock to interact with Lambda.</li></ol><figure><img alt="Bedrock Model catalog" src="https://cdn-images-1.medium.com/max/1024/1*fXn3nuFnDGPl8CcOseZsEQ.png" /><figcaption>Bedrock Model catalog</figcaption></figure><figure><img alt="Create Agent" src="https://cdn-images-1.medium.com/max/1024/1*-dxQeRbdew8dRKPCTkGKSA.png" /><figcaption>Create Agent</figcaption></figure><figure><img alt="Selecting model for agent" src="https://cdn-images-1.medium.com/max/1024/1*h1EMwHJuiLzuo_w52l1dSg.png" /><figcaption>Selecting model for agent</figcaption></figure><h3>Key IAM Policy:</h3><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Action&quot;: &quot;lambda:InvokeFunction&quot;,<br>      &quot;Resource&quot;: &quot;arn:aws:lambda:*:*:function:cloudmart-list-products&quot;<br>    },<br>    {<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Action&quot;: &quot;bedrock:InvokeModel&quot;,<br>      &quot;Resource&quot;: &quot;arn:aws:bedrock:*::foundation-model/anthropic.claude-3-sonnet-20240229-v1:0&quot;<br>    }<br>  ]<br>}</pre><figure><img alt="Updating Policy for Agent IAM role" src="https://cdn-images-1.medium.com/max/1024/1*pb7KFavi5TZkg2AUmZgYgA.png" /><figcaption>Updating Policy for Agent IAM role</figcaption></figure><h3>Testing the AI Chatbot:</h3><p>After deploying, the agent was tested using the Bedrock console to verify product recommendations based on customer queries.</p><h3>3. OpenAI Assistant for Customer Support</h3><p>In addition to the chatbot, OpenAI’s GPT-4o was configured as a virtual customer support assistant.</p><h3>Steps Taken:</h3><ol><li><strong>Create an OpenAI Assistant</strong> named CloudMart Customer Support.</li><li><strong>Define Instructions</strong> to handle customer inquiries politely and efficiently.</li><li><strong>Enable API Access</strong> and generate an API key.</li><li><strong>Integrate the assistant with the backend</strong> for real-time interaction.</li></ol><figure><img alt="OpenAI Assistant created" src="https://cdn-images-1.medium.com/max/1024/1*bxfHhBvKmikqc7_cs4lQ-Q.png" /><figcaption>OpenAI Assistant created</figcaption></figure><h3>Assistant Instructions:</h3><pre>You are a customer support agent for CloudMart. Your role is to assist customers with general inquiries, order issues, and platform guidance. You do not have access to product inventory. Always be polite and provide accurate information.</pre><p>This assistant ensures seamless customer support through natural language interactions.</p><figure><img alt="Testing the AI Agent" src="https://cdn-images-1.medium.com/max/1024/1*Ohs_DHOaDnwCWMVDGzVCIg.png" /><figcaption>Testing the AI Agent</figcaption></figure><h3>4. Redeploying the Backend with AI Assistants</h3><p>To connect the AI assistants with the CloudMart backend, the Kubernetes deployment was updated with environment variables.</p><h3>Updated Kubernetes Configuration (cloudmart-backend.yaml):</h3><pre>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: cloudmart-backend-app<br>spec:<br>  replicas: 1<br>  template:<br>    spec:<br>      containers:<br>      - name: cloudmart-backend-app<br>        image: public.ecr.aws/l4c0j8h9/cloudmart-backend:latest<br>        env:<br>        - name: BEDROCK_AGENT_ID<br>          value: &quot;xxxx&quot;<br>        - name: OPENAI_API_KEY<br>          value: &quot;xxxx&quot;<br>        - name: OPENAI_ASSISTANT_ID<br>          value: &quot;xxxx&quot;</pre><p>With these updates, the backend can now process customer queries through both AI assistants.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*eRYweWr4t-0xrRgA-2PStA.png" /></figure><h3>5. Final Testing and Observations</h3><h3>Testing Process:</h3><ul><li>The <strong>Bedrock chatbot</strong> was tested for accurate product recommendations.</li><li>The <strong>OpenAI assistant</strong> was tested for handling customer queries effectively.</li></ul><figure><img alt="AI Assistant working" src="https://cdn-images-1.medium.com/max/948/1*Up5KpyFm16VuhpH547Ochw.png" /><figcaption>AI Assistant working</figcaption></figure><figure><img alt="Engaging with the AI Chatbot" src="https://cdn-images-1.medium.com/max/1024/1*0Zlo6JFauvNp_iEREE_OjQ.png" /><figcaption>Engaging with the AI Assistant asking suggestions</figcaption></figure><figure><img alt="Further engagement with AI Assistant asking suggestions" src="https://cdn-images-1.medium.com/max/1024/1*HfNq7T-ZYZ-f115Kb_r2Og.png" /><figcaption>Further engagement with AI Assistant asking suggestions</figcaption></figure><figure><img alt="Assistant describing product details from backend code" src="https://cdn-images-1.medium.com/max/377/1*77MNf1j8drlp7kRpFRQYRg.png" /><figcaption>Assistant describing product details from backend code</figcaption></figure><figure><img alt="Placing order through Assistant" src="https://cdn-images-1.medium.com/max/375/1*JORa_GFlWdMBVbdzxmYF8A.png" /><figcaption>Placing order through Assistant</figcaption></figure><figure><img alt="Order placed successfully" src="https://cdn-images-1.medium.com/max/1024/1*rHV1BMNnFWKn3R0RF3XDAw.png" /><figcaption>Order placed successfully</figcaption></figure><figure><img alt="Interaction with Customer support AI for cancelling the order" src="https://cdn-images-1.medium.com/max/1024/1*OaYIKFM2jzgTvqUembngrQ.png" /><figcaption>Interaction with Customer support AI for cancelling the order</figcaption></figure><figure><img alt="Order cancelled by customer support AI" src="https://cdn-images-1.medium.com/max/1024/1*J7cERH-i_1E8LvAAFMZQbQ.png" /><figcaption>Order cancelled by customer support AI</figcaption></figure><h3>Key Learnings:</h3><ol><li><strong>Automation through Terraform</strong> significantly reduces setup time.</li><li><strong>AI chatbots enhance customer engagement</strong> by providing instant responses.</li><li><strong>Role-based IAM policies are crucial</strong> for managing cloud security.</li><li><strong>APIs must be well-structured</strong> for seamless integration with AI agents.</li></ol><h3>What’s Next?</h3><ul><li>Integrating BigQuery for streaming DynamoDB tables</li><li>Adding sentiment analysis using Azure Text Analytics in customer support conversation</li></ul><h3>Conclusion</h3><p>Integrating AI chatbots and assistants into CloudMart showcased the power of AI in e-commerce. By leveraging <strong>Amazon Bedrock and OpenAI GPT-4o</strong>, the application now provides a more interactive and intelligent customer experience. Additionally, <strong>Terraform and Kubernetes</strong> ensured seamless deployment and scalability.</p><p>With AI-powered interactions becoming the norm, such integrations pave the way for smarter and more efficient business solutions. If you’re exploring AI-driven applications, <strong>combining cloud-native AI services with DevOps best practices is the way forward!</strong></p><p>For detailed code and a more comprehensive summary, check out my GitHub repository:</p><p><a href="https://github.com/bhushann7/MultiCloud-Devops-AI-Project/tree/main/day4-creating-AI-Agents-with-OpenAI-Amazon_Bedrock"><em>GitHub Repository — Day 4</em></a></p><p>💬 What are your thoughts on AWS Bedrock integration for chatbots? Have you implemented something similar. Drop your insights in the comments! As always — Happy learning, and remember to be kind to others, keep drinking water, and be a responsible resident of Earth!</p><p>Connect with me on <a href="https://www.linkedin.com/in/bhushanbamble"><strong><em>Linkedin</em></strong></a> if you need to discuss anything related to Data, AI, Cloud, Soccer and Aviation!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24810c0af24f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MultiCloud, DevOps & AI Challenge ☁️ Day 3 : Putting CloudMart WebApp on Autopilot with DevOps…]]></title>
            <link>https://medium.com/@bhushan.bamble/multicloud-devops-ai-challenge-%EF%B8%8F-day-3-putting-cloudmart-webapp-on-autopilot-with-devops-4a0117cd0f61?source=rss-d82d8d8ddfaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a0117cd0f61</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[aws-codebuild]]></category>
            <category><![CDATA[aws-codepipeline]]></category>
            <dc:creator><![CDATA[Bhushan Bamble]]></dc:creator>
            <pubDate>Thu, 20 Mar 2025 16:06:24 GMT</pubDate>
            <atom:updated>2025-03-20T16:06:24.065Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>MultiCloud, DevOps &amp; AI Challenge </strong>☁️ <strong>Day 3 : </strong>Putting CloudMart WebApp on Autopilot with DevOps CI/CD pipeline</h3><h3>Introduction</h3><p>On Day 3 of the <strong>MultiCloud, DevOps &amp; AI Challenge</strong>, I focused on setting up a <strong>CI/CD pipeline</strong> to automate the deployment of the CloudMart application. This was an exciting deep dive into AWS <strong>CodePipeline, CodeBuild, EKS</strong>, and GitHub integration, ensuring seamless updates to the application. Here’s a breakdown of the steps taken to achieve this milestone.</p><h3>Restarting Resources from Day 2</h3><p>To optimize cost, I had deleted my <strong>EKS cluster</strong> and other resources at the end of Day 2. Recreating them at the start of Day 3 involved:</p><ul><li><strong>Setting up an EKS cluster</strong> using eksctl.</li><li><strong>Configuring IAM service accounts</strong> to grant access to AWS services.</li><li><strong>Verifying cluster connectivity</strong> with kubectl commands.</li><li><strong>Deploying backend and frontend applications</strong> using Kubernetes YAML files.</li></ul><h3>Key Commands:</h3><pre>eksctl create cluster --name cloudmart --region us-east-1 --nodegroup-name standard-workers --node-type t3.medium --nodes 1 --with-oidc --managed<br>aws eks update-kubeconfig --name cloudmart<br>kubectl apply -f cloudmart-backend.yaml<br>kubectl apply -f cloudmart-frontend.yaml</pre><p>These steps ensured that my Kubernetes cluster was up and running with CloudMart’s backend and frontend components successfully deployed.</p><h3>Setting Up the CI/CD Pipeline</h3><p>With the cluster ready, it was time to <strong>automate deployments</strong> using AWS <strong>CodePipeline</strong> and <strong>CodeBuild</strong>.</p><h3>Step 1: Creating a GitHub Repository</h3><p>To store and manage CloudMart’s source code, I:</p><ul><li>Created a GitHub repo: cloudmart.</li><li>Initialized a local repository and pushed the code to GitHub.</li></ul><figure><img alt="Local Git Repository setup" src="https://cdn-images-1.medium.com/max/911/1*QvSmR20R20MREtHmRwfHjw.png" /><figcaption><a href="https://github.com/bhushann7/MultiCloud-Devops-AI-Project/blob/main/Screenshots/Day3/Local%20Git%20Repository%20setup.png">Local Git Repository setup.png</a></figcaption></figure><figure><img alt="Remote Git Repository Setup" src="https://cdn-images-1.medium.com/max/928/1*pBbxMH_r_TvkdnIHfmk6pA.png" /><figcaption>Remote Git Repository Setup</figcaption></figure><figure><img alt="App code added to Remote Repository" src="https://cdn-images-1.medium.com/max/910/1*d37oT1V2m3fEKX4jPaTOLg.png" /><figcaption>App code added to Remote Repository</figcaption></figure><h3>Step 2: Configuring AWS CodePipeline</h3><p>I set up <strong>AWS CodePipeline</strong> to:</p><ol><li><strong>Source code</strong> from the GitHub repository.</li><li><strong>Build and package</strong> the application using AWS <strong>CodeBuild</strong>.</li><li><strong>Deploy the latest version</strong> to the Kubernetes cluster.</li></ol><p><strong>Key Considerations:</strong></p><ul><li>Chose <strong>“Build custom pipeline”</strong> in AWS due to UI updates.</li><li>Used <strong>GitHub OAuth authentication</strong> to link the repository.</li><li>Created <strong>two build projects</strong> for <strong>building Docker images</strong> and <strong>deploying to EKS</strong>.</li></ul><figure><img alt="Create pipeline" src="https://cdn-images-1.medium.com/max/870/1*fPVkj6VKXloKgr083UHm_A.png" /><figcaption>Create pipeline</figcaption></figure><figure><img alt="Pipeline settings" src="https://cdn-images-1.medium.com/max/848/1*DyNBZ5tEFv8OparoTbCX7w.png" /><figcaption>Pipeline settings</figcaption></figure><figure><img alt="Adding source in the pipeline" src="https://cdn-images-1.medium.com/max/823/1*H68QuLmFUQopX3a3QYEHNg.png" /><figcaption>Adding source in the pipeline</figcaption></figure><h3>Building and Deploying with AWS CodeBuild</h3><h3>Step 3: Configuring AWS CodeBuild for Docker Image Creation</h3><p>I created a <strong>buildspec.yml</strong> file to:</p><ol><li><strong>Authenticate</strong> with AWS ECR.</li><li><strong>Build a Docker image</strong> for CloudMart.</li><li><strong>Push the image</strong> to an <strong>Amazon ECR repository</strong>.</li></ol><p><strong>Snippet from </strong><strong>buildspec.yml:</strong></p><pre>version: 0.2<br>phases:<br>  install:<br>    runtime-versions:<br>      docker: 20<br>  build:<br>    commands:<br>      - docker build -t $ECR_REPO:latest .<br>      - docker push $ECR_REPO:latest</pre><figure><img alt="CodeBuild settings" src="https://cdn-images-1.medium.com/max/696/1*fHpErzEFex1bgmcLooQh9A.png" /><figcaption>CodeBuild settings</figcaption></figure><figure><img alt="CodeBuild settings" src="https://cdn-images-1.medium.com/max/640/1*tSOy6_boNBs6e13o9pLhPg.png" /><figcaption>CodeBuild settings</figcaption></figure><figure><img alt="Buildspec file" src="https://cdn-images-1.medium.com/max/770/1*FuBo9DHkH4utIjgD1q6Ygg.png" /><figcaption>Buildspec file</figcaption></figure><figure><img alt="CodeBuild Project created" src="https://cdn-images-1.medium.com/max/759/1*Kw8ecQWGB7SDPPX228rOEQ.png" /><figcaption>CodeBuild Project created</figcaption></figure><figure><img alt="Created Pipeline" src="https://cdn-images-1.medium.com/max/851/1*Wv3qU04O_v6_u5eccTv0xA.png" /><figcaption>Created Pipeline</figcaption></figure><h3>Step 4: Deploying the Application via AWS CodeBuild</h3><p>A separate <strong>buildspec.yml</strong> handled deployment by:</p><ul><li>Updating <strong>Kubeconfig</strong> to access the EKS cluster.</li><li>Pulling the latest <strong>Docker image</strong>.</li><li>Applying updated <strong>Kubernetes manifests</strong>.</li></ul><pre>post_build:<br>  commands:<br>    - aws eks update-kubeconfig --region us-east-1 --name cloudmart<br>    - kubectl apply -f cloudmart-frontend.yaml</pre><figure><img alt="Amazon ECR Policy added to cloudmart build service role" src="https://cdn-images-1.medium.com/max/925/1*KNz6sFm-ZrlpcPxm5kYXqA.png" /><figcaption>Amazon ECR Policy added to cloudmart build service role</figcaption></figure><figure><img alt="Pipeline run succeded after policy change" src="https://cdn-images-1.medium.com/max/802/1*Ol6h0-hcuUXC2pq9DsS3lQ.png" /><figcaption>Pipeline run succeded after policy change</figcaption></figure><figure><img alt="Added new stage Deploy" src="https://cdn-images-1.medium.com/max/739/1*WbVeN5i186Rftuwv-Q3mQQ.png" /><figcaption>Added new stage Deploy</figcaption></figure><figure><img alt="Deploy Stage added" src="https://cdn-images-1.medium.com/max/1024/1*GZEidWEs9BLh70XiVULKsA.png" /><figcaption>Deploy Stage added</figcaption></figure><h3>Part 3: Test Your CI/CD Pipeline</h3><h3>Step 1: Make a Change on GitHub</h3><ul><li>Update application code in cloudmart repository.</li><li>Modify file: src/components/MainPage/index.jsx (line 93).</li><li>Commit and push</li></ul><figure><img alt="Changed Header to “Featured Products on CloudMart”" src="https://cdn-images-1.medium.com/max/806/1*ybdXaGXmXuhQ60LQg8y5Iw.png" /><figcaption>Changed Header to “Featured Products on CloudMart”</figcaption></figure><figure><img alt="Changed pushed to remote repo" src="https://cdn-images-1.medium.com/max/1024/1*vRy6qHikZSezdfihOBv1JA.png" /><figcaption>Changed pushed to remote repo</figcaption></figure><h3>Step 2: Observe the Pipeline Execution</h3><ul><li>Watch CodePipeline automatically trigger the build.</li><li>After the build completes, the deployment phase should begin.</li></ul><figure><img alt="Git push triggered the CICD pipeline" src="https://cdn-images-1.medium.com/max/1024/1*JT9qEjnbVyYyqTArrAVBzw.png" /><figcaption>Git push triggered the CICD pipeline</figcaption></figure><figure><img alt="Succesful execution of automated CICD pipeline" src="https://cdn-images-1.medium.com/max/1024/1*QRN6kgqKb2ftTwkU4BX_FQ.png" /><figcaption>Succesful execution of automated CICD pipeline</figcaption></figure><h3>Step 3: Verify the Deployment</h3><ul><li>Check Kubernetes using kubectl commands to confirm the application update.</li><li>Access the CloudMart application in a browser to verify the changes.</li></ul><figure><img alt="Website with updated header" src="https://cdn-images-1.medium.com/max/1024/1*5Mux5hwEycSpsV7eAa90nA.png" /><figcaption>Website with updated header</figcaption></figure><h3>Key Takeaways</h3><ul><li>Automating deployments with CI/CD pipelines significantly streamlines the development process.</li><li>AWS CodePipeline and CodeBuild provide powerful tools for building and deploying applications on AWS.</li><li>Using IAM roles for CodeBuild deployment is crucial for security in production environments.</li><li>Always remember to clean up resources to prevent unexpected cost.</li></ul><h3>Next Steps</h3><p>Moving forward, I plan to:</p><ul><li>Implement <strong>Blue/Green deployments</strong> for zero-downtime updates.</li><li>Enhance <strong>monitoring with AWS CloudWatch</strong>.</li><li>Optimize <strong>IAM policies</strong> for better security.</li></ul><h3>Conclusion</h3><p>Day 3 was an <strong>intense yet rewarding</strong> experience, as I successfully implemented a <strong>CI/CD pipeline</strong> for CloudMart. Automating deployments ensures faster iterations, reduces errors, and enhances scalability — a key step towards mastering <strong>MultiCloud DevOps &amp; AI</strong>!</p><p>For detailed code and a more comprehensive summary, check out my GitHub repository:</p><p><a href="https://github.com/bhushann7/MultiCloud-Devops-AI-Project/tree/main/day3-Putting-CloudApp-on-Autopilot-with-DevOps-CI%3ACD-pipeline"><strong><em>GitHub Repository — Day 3</em></strong></a></p><p>💬 What are your thoughts on using AWS for CI/CD? Have you implemented a similar pipeline? Drop your insights in the comments! As always — Happy learning, and remember to be kind to others, keep drinking water, and be a responsible resident of Earth!</p><p>Connect with me on <a href="https://www.linkedin.com/in/bhushanbamble"><strong><em>Linkedin</em></strong></a> if you need to discuss anything related to Data, AI, Cloud, Soccer and Aviation!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a0117cd0f61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MultiCloud, DevOps & AI Challenge ☁️ Day 2: Deploying CloudMart with Docker & Kubernetes on AWS EKS]]></title>
            <link>https://medium.com/@bhushan.bamble/multicloud-devops-ai-challenge-%EF%B8%8F-day-2-deploying-cloudmart-with-docker-kubernetes-on-aws-eks-57668186f375?source=rss-d82d8d8ddfaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/57668186f375</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[amazon-eks]]></category>
            <category><![CDATA[amazon-ecr]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Bhushan Bamble]]></dc:creator>
            <pubDate>Wed, 19 Mar 2025 22:31:40 GMT</pubDate>
            <atom:updated>2025-03-19T22:31:40.211Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>On Day 2 of the MultiCloud, DevOps &amp; AI Challenge, I focused on deploying the CloudMart application using Docker and Kubernetes on AWS Elastic Kubernetes Service (EKS). This process involved containerizing both the frontend and backend of the application, pushing images to AWS Elastic Container Registry (ECR), and deploying the containers to an EKS cluster. Here’s a breakdown of my journey.</p><h3>Setting Up Docker on AWS EC2</h3><p>The first step was to install Docker on an AWS EC2 instance to create container images for CloudMart. This involved:</p><ul><li>Updating system packages</li><li>Installing Docker</li><li>Starting and enabling Docker services</li><li>Adding the current user to the Docker group</li><li>Verifying installation with docker run hello-world</li></ul><p>With Docker running, I proceeded to containerize the application.</p><h3>Creating Docker Images for CloudMart</h3><h4>Backend Containerization</h4><ol><li>Downloaded and extracted the backend source code.</li><li>Created a .env file to configure environment variables (e.g., AWS Region, Bedrock Agent ID, OpenAI API Key).</li><li>Wrote a Dockerfile specifying:</li></ol><ul><li>Node.js base image</li><li>Dependency installation using npm install</li><li>Exposing port 5000</li><li>Running the application with npm start</li></ul><p>4. Built and tagged the Docker image.</p><h4>Frontend Containerization</h4><ol><li>Downloaded and extracted the frontend source code.</li><li>Created a Dockerfile specifying:</li></ol><ul><li>Multi-stage build with Node.js Alpine</li><li>Running the React app in production mode</li><li>Exposing port 5001</li></ul><p>3. Built and tagged the frontend Docker image.</p><figure><img alt="Dockerfile for Frontend container deployment" src="https://cdn-images-1.medium.com/max/1024/1*8ql1F0HKizec0sGZhmyl5A.png" /><figcaption>Dockerfile for Frontend container deployment</figcaption></figure><p>Once both images were built, they were ready to be pushed to AWS ECR.</p><h3>Deploying to Kubernetes on AWS EKS</h3><h4>Setting Up EKS Cluster</h4><p>To deploy the application on AWS EKS, I needed to:</p><ol><li>Install eksctl and kubectl.</li><li>Create an EKS cluster using eksctl.</li><li>Configure kubectl to connect to the cluster.</li><li>Verify cluster health with kubectl get nodes.</li></ol><figure><img alt="Kubernetes Clusters on EKS" src="https://cdn-images-1.medium.com/max/1024/1*VBuCc6YNC3zmL9tfmPeuTA.png" /><figcaption>Kubernetes Clusters on EKS</figcaption></figure><p>Once the cluster was up, I set up IAM roles for pod execution.</p><h4>Backend Deployment to EKS</h4><ol><li>Pushed the backend Docker image to AWS ECR.</li><li>Created a Kubernetes deployment manifest (cloudmart-backend.yaml) specifying:</li></ol><ul><li>Deployment of a single replica</li><li>Environment variables for API keys and AWS services</li><li>LoadBalancer service for external access</li></ul><p>3. Applied the deployment using kubectl apply -f cloudmart-backend.yaml.</p><p>4. Retrieved the backend service URL using kubectl get service.</p><figure><img alt="backend container deployed on cluster" src="https://cdn-images-1.medium.com/max/1024/1*x8YCSTC_GEn3cE257cBAmA.png" /><figcaption>backend container deployed on cluster</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dTmHDx-4U6svAYbo82Frng.png" /><figcaption>Backend image on ECR</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*bFYec3utEITyh9IsXHVYww.png" /></figure><h4>Frontend Deployment to EKS</h4><ol><li>Updated the frontend .env file with the backend service URL.</li><li>Pushed the frontend Docker image to AWS ECR.</li><li>Created a Kubernetes deployment manifest (cloudmart-frontend.yaml) specifying:</li></ol><ul><li>Deployment of a single replica</li><li>LoadBalancer service for external access</li></ul><p>4. Applied the deployment using kubectl apply -f cloudmart-frontend.yaml.</p><p>5. Retrieved the frontend service URL using kubectl get service.</p><p>6. Accessed CloudMart in the browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qLU0SwUn-H05tiOFXcFa6g.png" /><figcaption>Frontend Image on ECR</figcaption></figure><figure><img alt="Website deployed successfully" src="https://cdn-images-1.medium.com/max/1024/1*D_4uHj3y3vujaXNh7oYQ2w.jpeg" /><figcaption>Website deployed successfully</figcaption></figure><h3>Verifying Deployment</h3><ul><li>The backend service was running and accessible.</li><li>The frontend successfully communicated with the backend.</li><li>Data stored in AWS DynamoDB was reflected correctly in CloudMart.</li><li>Admin panel was accessible at http://&lt;frontend-service-ip&gt;:5001/admin.</li></ul><figure><img alt="Two products added using Admin functionalities" src="https://cdn-images-1.medium.com/max/1024/1*RrpLn_uSgwa4fVPQtZHreA.png" /><figcaption>Two products added using Admin functionalities</figcaption></figure><figure><img alt="Reflection of the products added in DynamoDB" src="https://cdn-images-1.medium.com/max/1024/1*q17DHZB4kRIk-tvy7TQS9w.png" /><figcaption>Reflection of the products added in DynamoDB</figcaption></figure><h3>Cleanup and Cost Optimization</h3><p>Since AWS EKS incurs charges, I followed best practices to clean up resources after testing:</p><ul><li>Deleted the Kubernetes services and deployments.</li><li>Deleted the EKS cluster using eksctl delete cluster.</li><li>Removed ECR repositories if no longer needed.</li></ul><h3>Architecture Diagram for Day 2</h3><figure><img alt="Architecture diagram for Day 2" src="https://cdn-images-1.medium.com/max/871/1*RG1npwow3c3YGITMBJLbGA.jpeg" /><figcaption>Architecture diagram for Day 2</figcaption></figure><h3>Key Takeaways: Containerization &amp; Orchestration in Action</h3><ul><li>Docker simplifies application containerization, making it portable and scalable.</li><li>AWS EKS provides a managed Kubernetes environment for easy cluster orchestration.</li><li>Kubernetes YAML manifests define application deployment, ensuring reproducibility.</li><li>Proper cleanup is essential to avoid unnecessary AWS costs.</li></ul><h3>Conclusion</h3><p>This was a short summary of my Day 2. Day 2 of the MultiCloud DevOps &amp; AI Challenge highlighted the power of containerization and orchestration with AWS EKS. By leveraging Docker and Kubernetes, we can deploy cloud applications efficiently and at scale. I’m eager to continue this journey and explore more automation techniques in the coming days.</p><p>For detailed code and a more comprehensive summary, check out my GitHub repository:</p><p><a href="https://github.com/bhushann7/MultiCloud-Devops-AI-Project/tree/main/day2-Deploying-app-with-docker-kubernetes-on-AWS"><strong><em>GitHub Repository — Day 2</em></strong></a></p><p>Thank you for following along on my journey. I’m committed to sharing my learnings and insights as I progress through this challenge. Happy learning, and remember to be kind to others, keep drinking water, and be a responsible resident of Earth!</p><p>Connect with me on <a href="https://www.linkedin.com/in/bhushanbamble"><strong><em>Linkedin</em></strong></a> if you need to discuss anything related to Data, AI, Cloud, Soccer and Aviation!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57668186f375" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MultiCloud, DevOps & AI Challenge ☁️ Day 1 — Automating AWS Provisioning with Terraform]]></title>
            <link>https://medium.com/@bhushan.bamble/multicloud-devops-ai-challenge-%EF%B8%8F-day-1-automating-aws-provisioning-with-terraform-a8a7bfd4857b?source=rss-d82d8d8ddfaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8a7bfd4857b</guid>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[s3-bucket]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[terraform]]></category>
            <dc:creator><![CDATA[Bhushan Bamble]]></dc:creator>
            <pubDate>Wed, 19 Mar 2025 04:47:01 GMT</pubDate>
            <atom:updated>2025-03-19T09:41:02.963Z</atom:updated>
            <content:encoded><![CDATA[<h3>MultiCloud, DevOps &amp; AI Challenge ☁️ Day 1 — Automating AWS Provisioning with Terraform</h3><p>This week, I’m taking part in the MultiCloud DevOps &amp; AI Challenge, an exciting opportunity to dive deep into the world of cloud automation and AI integration. This post is a summary of my Day 1, which was focused on automating AWS provisioning using Terraform. My goal was to explore how AI, specifically Claude, can be used to streamline infrastructure deployment, and I’m eager to share my experiences.</p><h4>Automating Terraform Code Generation with AI</h4><p>The first step was to automate the creation of Terraform configuration. I prompted Claude: “<em>Please provide Terraform code to create an S3 bucket on AWS with a unique name in the us-east-1 region.</em>” Claude delivered the following:</p><pre>provider &quot;aws&quot; {<br>  region = &quot;us-east-2&quot;  # Ohio region<br>}<br><br>resource &quot;random_pet&quot; &quot;bucket_suffix&quot; {<br>  length = 2<br>  separator = &quot;-&quot;<br>}<br><br>resource &quot;aws_s3_bucket&quot; &quot;my_bucket&quot; {<br>  bucket = &quot;my-bucket-${random_pet.bucket_suffix.id}&quot;<br>  <br>  tags = {<br>    Name        = &quot;My bucket&quot;<br>    Environment = &quot;Dev&quot;<br>  }<br>}<br><br>output &quot;bucket_name&quot; {<br>  value = aws_s3_bucket.my_bucket.bucket<br>  description = &quot;The name of the S3 bucket&quot;<br>}</pre><p>This highlighted the automation of the initial code generation phase, reducing manual effort. It was pretty cool to see how quickly the AI could produce working code.</p><figure><img alt="Claude Output for Terraform configuration file" src="https://cdn-images-1.medium.com/max/1024/1*Gd_Z9wsO6LzR8vhxtnlhyA.png" /><figcaption>Claude Output for Terraform configuration file</figcaption></figure><h4>Setting Up an Automated AWS Environment</h4><p>Moving forward, to execute these automated deployments, I provisioned an EC2 instance named “<em>workstation</em>” running Amazon Linux 2. This served as my automation hub. I also created an EC2 admin role in IAM and attached it to the EC2 instance for the right permissions, and created a key pair named “<em>key-cloudmart</em>” for secure access.</p><p>After correcting a minor security group issue, I connected to the instance via EC2 Instance Connect. I always find it satisfying when those small troubleshooting steps lead to a successful connection.</p><figure><img alt="Successful connection to EC2 instance" src="https://cdn-images-1.medium.com/max/812/1*MRfLTuc0VpqCm64zb0_GyA.png" /><figcaption>Successful connection to EC2 instance</figcaption></figure><h4>Automated Deployment with Terraform</h4><p>With the EC2 instance ready, I installed Terraform and verified the installation. I then created a main.tf file and pasted the AI-generated code. After initializing Terraform (terraform init), I used terraform plan to review the changes and terraform apply to automate the S3 bucket deployment. The process was swift and efficient. It&#39;s amazing how quickly Terraform can spin up resources.</p><h4>Verification and Expansion of Automation</h4><p>To verify the automated deployment, I used aws s3 ls. The newly created S3 bucket was present.</p><p>Expanding the automation, I replaced the S3 configuration with Terraform code to automate the deployment of three DynamoDB tables: cloudmart-products, cloudmart-orders, and cloudmart-tickets. Another terraform apply command, and the tables were automatically created. Seeing the DynamoDB tables appear in the console was a nice confirmation of the day&#39;s work.</p><figure><img alt="Successful deletion of previous S3 bucket and adding 3 new tables in DynamoDB" src="https://cdn-images-1.medium.com/max/1024/1*SUn_qG8DkeP4fl5AuheC8Q.png" /><figcaption>Successful deletion of previous S3 bucket and adding 3 new tables in DynamoDB</figcaption></figure><figure><img alt="Tables added inside DynamoDB" src="https://cdn-images-1.medium.com/max/1022/1*Z_tdgJNtF5uteYlDuIuLKw.png" /><figcaption>Tables added inside DynamoDB</figcaption></figure><h4><strong>Architecture Diagram for Day1</strong></h4><figure><img alt="Architecture Diagram for Day 1" src="https://cdn-images-1.medium.com/max/570/1*Hwu43WjJU7-2_uHilP-puQ.jpeg" /><figcaption>Architecture Diagram for Day 1</figcaption></figure><h4>Key Takeaways: Automation in Action</h4><p>Day 1 emphasized the practical application of automation in cloud infrastructure provisioning. Key takeaways include:</p><ul><li>AI can automate the generation of Terraform code, saving time.</li><li>Terraform enables the automation of AWS resource deployments, reducing manual errors.</li><li>Automation significantly reduces manual effort and increases efficiency, which is crucial for scalable infrastructure.</li></ul><h4>Conclusion</h4><p>This was a short summary of my Day 1. Day 1 of the MultiCloud DevOps &amp; AI Challenge demonstrated the power of automating AWS provisioning with Terraform. By integrating AI for code generation, we can significantly accelerate cloud deployments. I’m excited to continue exploring the potential of these automation techniques and see where this challenge takes me.</p><p>For detailed code and a more comprehensive summary, check out my GitHub repository:</p><p><a href="https://github.com/bhushann7/MultiCloud-Devops-AI-Project/tree/4fcf76c6e5c7e0371ebb6c348eacbf8b4cc0a34e/day1-Automating-AWS-Provisioning-with-Terraform"><strong><em>Github Repository — Day 1</em></strong></a></p><p>Thank you for following along on my journey. I’m committed to sharing my learnings and insights as I progress through this challenge. Happy learning, and remember to be kind to others, keep drinking water, and be a responsible resident of Earth!</p><p>Connect with me on <a href="https://www.linkedin.com/in/bhushanbamble"><strong><em>Linkedin</em></strong></a> if you need to discuss anything related to Data, AI, Cloud, Soccer and Aviation!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8a7bfd4857b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A month has passed! Mastering SQL, Python and Power BI]]></title>
            <link>https://medium.com/@bhushan.bamble/a-month-has-passed-mastering-sql-python-and-power-bi-0779258fd1c1?source=rss-d82d8d8ddfaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/0779258fd1c1</guid>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[microsoft-power-bi]]></category>
            <dc:creator><![CDATA[Bhushan Bamble]]></dc:creator>
            <pubDate>Sun, 21 Jul 2024 18:58:44 GMT</pubDate>
            <atom:updated>2024-07-21T18:58:44.743Z</atom:updated>
            <content:encoded><![CDATA[<p>I can’t believe it’s already been a month. I certainly see some improvements and feel more confident than I was a month ago. In weeks 1 and 2, I started out by learning Git and navigating through DataLemur’s comprehensive SQL tutorial up until the Intermediate section. I also had interviews for which I still don’t have any official updates, but I did reach out to the hiring manager, and she sounded positive about my interview and asked me to wait it out as they discussed it internally! For more details, read my <a href="https://medium.com/@bhushan.bamble/week-1-2-fd63dff4975c"><strong><em>blog</em></strong></a> on weeks 1 and 2.</p><p>As I continued my learning journey, I decided to complete the advanced section of <a href="https://datalemur.com/sql-tutorial"><strong><em>DataLemur’s SQL tutorial</em></strong></a> I mentioned before. Within a week, I was able to finish it off. The topics included <strong>Common Table Expressions(CTE)</strong>, <strong>Subqueries</strong>, <strong>Aggregate Window Functions ( SUM(), AVG(), COUNT(), MIN(), MAX(), FIRST_VALUE(), LAST_VALUE() )</strong>, <strong>Ranking Window Functions ( RANK(), DENSE_RANK(), ROW_NUMBER() )</strong>, T<strong>ime series Window Functions ( LEAD(), LAG() )</strong>, <strong>Self Joins, String functions, UNION and UNION ALL</strong>, and lastly, some theory on the execution order of SQL queries. While learning the topics, I answered some challenging interview questions asked by major tech companies as part of the tutorial. Once I completed all the sections in the Advanced part of the tutorial, I dove deep into solving more SQL interview questions that DataLemur had to offer. I have uploaded all the solutions to a <a href="https://github.com/bhushann7/sql_practice"><strong><em>git repository</em></strong></a>. I intend to keep adding more solutions as I solve more questions, so keep a lookout!</p><p>After gaining confidence in my SQL abilities, I switched my focus to mastering Python basics. I researched what topics I needed to learn from a Data Engineering and Analytics perspective and jotted them down. Here’s a glimpse of what I think are the essential topics to learn: <strong>Variables, data types, operators, Flow control, built-in functions, Built-in data structures( List, Tuple, Dictionary, Set) and their use cases, Functions and different types of arguments, Variable scope (global, Non-local), Object Oriented Programming Fundamentals ( Classes, Objects ), 4 Pillars of OOP ( Abstraction, Encapsulation, Polymorphism, Inheritance), Strings and String-Formatting, Exception Handling, and File I/O</strong>. The resources I recommend to learn the above topics are <a href="https://www.youtube.com/playlist?list=PL-osiE80TeTt2d9bfVyTiXJA-UTHn6WwU"><strong><em>Corey Schafer’s Youtube channel</em></strong></a>, <a href="https://www.w3schools.com/python/default.asp"><strong><em>W3Schools</em></strong></a>, and <a href="https://docs.python.org/3/"><strong><em>official Python documents</em></strong></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NpvLls8u4LJqGMhPrfbAkQ.png" /></figure><p>After completing Python, I diverted my attention to an interview call I received. The interview was a HR screener, and I was mostly asked behavioral questions. The questions were as follows:</p><ul><li>Tell me something about you that’s not on your resume.</li><li>What’s your leadership style?</li><li>What are some skills from your previous experience that you can bring to this job?</li><li>Why do you think you are a good fit?</li></ul><p>The third question caught me a bit off-guard, but I was able to take a couple of seconds to collect my thoughts and give an answer. Other than that, the overall interview went smoothly. Fingers crossed as I wait for the results.</p><p>Moving on, I continued my learning journey with Power BI. As a Data Engineer, Power BI isn’t something that is required to be learned, but having an understanding of how data is consumed by Analysts and Data Scientists in a business context can help them build better data pipelines. Knowing how end-users interact with data can help Data Engineers anticipate their needs and ensure the data infrastructure supports those needs effectively. There are a lot of Youtube channels that have Power BI tutorials split into short videos related to a certain topic. I had previously followed <a href="https://www.youtube.com/watch?v=77jIzgvCIYY&amp;t=42s&amp;ab_channel=PragmaticWorks"><strong><em>Pragmatic Works’ Youtube channel</em></strong></a>, but this time I was focused on a structured approach. I stumbled upon an <a href="https://www.udemy.com/course/microsoft-power-bi-up-running-with-power-bi-desktop/"><strong><em>Udemy course from Maven Analytics</em></strong></a>, and after reviewing its course content, I believed it was the right course for me ( P.S. Don’t buy it for the full price. It should be 15.99$ so if you see something like 130$ wait for a day or two and the price should be 15.99$. I have an account from India so I spent Rs 500 which comes to about 6$). I’m halfway through the course, and I don’t regret my decision to invest in this course at all! Till now, I’ve completed connecting and shaping data in the PowerQuery Editor and creating a data model. I’m currently learning DAX and hope to soon complete this course. Also, as I use Macbook, installing Power BI was a challenge (not available for MacOS as of today), but I found a workaround! Check out my article on how to install Power BI on a Macbook.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*uIdjV-7LSHrHgNJmCGu1Wg.png" /></figure><p>This was an overall glimpse of my past month! Happy learning, and remember to be kind to others, keep drinking water, and be a responsible resident of Earth!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0779258fd1c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week 1 & 2]]></title>
            <link>https://medium.com/@bhushan.bamble/week-1-2-fd63dff4975c?source=rss-d82d8d8ddfaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd63dff4975c</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Bhushan Bamble]]></dc:creator>
            <pubDate>Tue, 25 Jun 2024 21:00:15 GMT</pubDate>
            <atom:updated>2024-06-25T21:01:56.507Z</atom:updated>
            <content:encoded><![CDATA[<p>Week 1 started out with a lot of optimism. I started out by mapping out what I needed to learn over the next couple of months. I quickly understood it was a bad idea, as I was already overwhelmed with the amount of things I wished to learn. To make it easier, I narrowed in on two main learning goals for the week. First was <strong>Git</strong>. I learned the basic command line/terminal git commands, which would enable me to document any projects I do from my local repository to my GitHub repository. I’m doing this as a habit builder, which would help me in the industry once I have that dream job. Here’s a glimpse of the main commands I learned:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*__t6w4CvgVObSVF0memoPA.png" /></figure><ul><li><strong>git init</strong> &gt; initializes a new repository in the current project directory. This command sets up the project to use Git for version control by creating a hidden folder to track changes.</li><li><strong>git add ”<em>filename”</em>/(<em>dot</em>)</strong> &gt; tells Git to start tracking changes for a specific file named “filename” or all the changes in the repository by using ‘.’ (dot) as a collective for all the files. This adds all the changes to a staging area.</li><li><strong>git status</strong> &gt; shows the current state of your project, telling you which files have changed and are ready to be committed.</li><li><strong>git commit -m “<em>message</em>”</strong> &gt; shows the current state of your project, telling you which files have changed and are ready to be committed, along with an optional message.</li><li><strong>git remote add &lt;name&gt; &gt; </strong>connects your local project to a remote repository at the given URL, using the specified name as a reference. Before this, you need to create a remote repository on GitHub or any other cloud-based repository hoster.</li><li><strong>git remote set-url &lt;name&gt; &lt;new_url&gt; &gt; </strong>updates the URL for the remote repository named “origin” to a new URL. You can get this URL from the GitHub repository you created for the particular project.</li><li><strong>git push &lt;remote_name&gt; &lt;branch_name&gt; &gt; </strong>uploads your local changes to a remote repository, allowing you to share your work with others or synchronize it across different devices.</li></ul><p>These are the important must-know commands of Git, which are the least expected by a jobseeker. Other than the commands, concepts like how the Git architecture works, staging areas, etc. are good to know. Two excellent resources I used to learn are <a href="https://youtu.be/kY5HtrkjSj0?si=Ddj2HpCwi29bZiJl"><em>TechTFQ’s 35-minute video</em></a> and <a href="https://www.youtube.com/watch?v=vbQ2bYHxxEA&amp;ab_channel=SyalInfotainment"><em>this 4-minute video</em></a><em>. </em>Learning Git took me 2 days, and I’m pretty confident in my current status.</p><p>My second goal for the week was to be confident and gain ultimate expertise in basic SQL commands. While looking for resources, I stumbled upon the <a href="https://datalemur.com/"><strong><em>DataLemur website</em></strong></a><em>.</em> DataLemur is primarily a website that offers practice questions for SQL, data science, statistics, and machine learning interviews. However, it also has a <a href="https://datalemur.com/sql-tutorial"><strong><em>comprehensive SQL tutorial</em></strong><em>,</em></a> right from the basics to the advanced stuff. Along with the explanation, you also get practice problems for the specific topics, some of which are real interview questions asked by companies in real interviews. Over the next couple of days, I finished the basic section of the tutorial. The topics included <strong>SELECT</strong>, <strong>WHERE</strong>, operators (<strong>AND, OR, NOT)</strong>, filtering <strong>(BETWEEN, IN, LIKE),</strong> and lastly, <strong>ORDER BY</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-ODIUrNXlomvdXBGXGfzSg.png" /></figure><p>However, after completing the basics, I had to temporarily divert my attention to prepare for an interview I got selected for. I had two back-to-back interview rounds over the course of four days. The first was an HR screener, which was just a basic exploration of my profile and a quick chat about the role and the responsibilities. The second interview was a technical discussion with the hiring manager. I explained my previous experience and academic projects in detail. Overall, it was an enriching experience, and I’m still waiting to hear about the outcome.</p><p>After the second interview, I resumed my SQL journey. Having cleared my basics, I started out by completing a basic iPhone dataset exploration project using SQL, which I have posted on <a href="https://github.com/bhushann7/Iphone_Data_Analysis/blob/master/Iphone_Data_Analysis.sql"><strong><em>GitHub</em></strong></a>. I also got to test the git skills I learned while uploading the local project repository to GitHub. After completing the project, I started the intermediate section of the SQL tutorial on DataLemur. The topics included the aggregate functions <strong>(SUM, MIN, MAX, AVG, COUNT)</strong>, <strong>DISTINCT</strong>, <strong>GROUP BY</strong> and <strong>HAVING</strong> clause, arithmetic operators in SQL, <strong>MATH</strong> functions, handling <strong>NULL</strong> values, a <strong>CASE</strong> statement, and lastly, <strong>JOINS</strong>. While navigating through the intermediate section, I also got practice SQL interviews from LinkedIn, Google, and Tesla. I also began to solve HackerRank SQL questions. All the questions I solved, along with their solutions, have been posted in my <a href="https://github.com/bhushann7/sql_practice"><strong><em>GitHub repository</em></strong></a>. As I solve more SQL problems, I’ll continue to update this repository so keep an eye out!</p><p>This was an overall glimpse of my past two weeks! Happy learning, and remember to be kind to others, keep drinking water, and be a responsible resident of Earth!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd63dff4975c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Who is Bhushan?]]></title>
            <link>https://medium.com/@bhushan.bamble/who-is-bhushan-fa5b2daecdb9?source=rss-d82d8d8ddfaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa5b2daecdb9</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-engineer]]></category>
            <category><![CDATA[blog]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Bhushan Bamble]]></dc:creator>
            <pubDate>Tue, 11 Jun 2024 00:19:32 GMT</pubDate>
            <atom:updated>2024-06-11T01:59:23.450Z</atom:updated>
            <content:encoded><![CDATA[<p>Who is this guy I am reading about, you might ask? Well, I’m just a normal (currently jobless) guy trying to navigate this extremely tough US tech market to find myself a job. To give you a bit of my background, I recently graduated in May 2024 with a Master’s degree in Information Technology and Management (commonly known as Management Information Systems) from the University of Texas at Dallas. I also earned an associate certificate in Applied Machine Learning.</p><p>So, why should you read my blog(s)? To be honest, even I’m not sure of the answer. Perhaps these blogs are a step towards making myself a bit more interesting. Nevertheless, we’ll find out together. I’ve always wanted to write a blog but never found the confidence. On countless occasions, I wrote an introductory paragraph like this one but ultimately gave up. This time, though, with the help and motivation from close friends and family, I’ve finally mustered the courage to start writing again. I don’t know if I’ll continue in the long run (life takes its toll eventually), but I promise to put in my best efforts.</p><p>So, why write a blog? Bear with me while we get there, but here’s a little backstory. Ever since I discovered the data domain during my bachelor’s (and reading how Data is the new oil <em>insert dollar emoji</em>), I’ve aspired to be involved in a profession that deals with data. While I was very naive then, I set my heart on becoming a Data Engineer without knowing anything about the field. Fast forward to today; I am still not a Data Engineer. Crap, what did I do all these years?</p><p>Well, I did manage to get my foot in the data domain professionally. During the final year of my bachelor’s degree, I took up a year-long unpaid research internship, where I gained some knowledge about Data Science. Later, after completing my bachelor’s, I started working as Analyst. In this job, I mostly dealt with Excel, SQL, and a bit of Python and Tableau. But then I decided to continue my studies by pursuing a Master’s degree, and that’s how I landed in the land of opportunities, the USA. After struggling to secure a summer internship, I pushed my limits and eventually got lucky by securing an internship at Frontier Airlines. The internship was a dream come true for various reasons, the best of which is that I have been an aviation geek my whole life. Additionally, it was a data analytics internship. I’m grateful to my former manager and the team because it was hands down the best period of my life (<em>cough</em> free travels <em>cough</em>).</p><figure><img alt="Intern Airport tour at Denver International Airport" src="https://cdn-images-1.medium.com/max/1024/1*Nhh9w5s7ozwqB8qk69y_BQ.jpeg" /><figcaption>Frontier Airlines Interns’ airport tour at Denver International Airport</figcaption></figure><p>All this while, I forgot the one thing I had set my heart on when I first came across data — becoming a Data Engineer. Since graduating last month, I’ve been persistently applying to data jobs. Starting today, I’ve also decided to actively learn Data Engineering, starting from the basics — SQL, Python, Databricks, Git, and whatever else it takes. If I already know the topic, it will be a revision, but I will touch base on everything from the beginner level. I plan to document my journey in the form of weekly blogs so someone in the same boat in the future can take some inspiration from me. Here’s my long-term career goal: “Become a Data Engineer for an airline.” The markets’ pretty bad right now, but one day I’ll surely make it.</p><p>Well, this is my short life story so far. I hope everyone achieves their dreams. Be kind to others, keep drinking water, and be a responsible resident of Earth!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SjJ44SzBRqxHeD4wbVLg4w.jpeg" /><figcaption>A beautiful sunset at the White Sands National Park</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa5b2daecdb9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>