<?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 Sagar Talwaray on Medium]]></title>
        <description><![CDATA[Stories by Sagar Talwaray on Medium]]></description>
        <link>https://medium.com/@SagarTalwaray?source=rss-730977a4d702------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mqDSZ0EhDJ4HU78SbtUjrQ.jpeg</url>
            <title>Stories by Sagar Talwaray on Medium</title>
            <link>https://medium.com/@SagarTalwaray?source=rss-730977a4d702------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 13:05:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@SagarTalwaray/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[SAP on Cloud]]></title>
            <link>https://medium.com/@SagarTalwaray/sap-on-cloud-2a85e8d04cb6?source=rss-730977a4d702------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a85e8d04cb6</guid>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Sagar Talwaray]]></dc:creator>
            <pubDate>Fri, 11 Apr 2025 12:20:22 GMT</pubDate>
            <atom:updated>2025-04-11T12:20:22.215Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Steps to Deploy SAP on the Cloud:</strong></p><p>Intro:</p><p>I have successfully worked on over 20 SAP on Cloud projects, helping organizations deploy and optimize their SAP environments in cloud platforms like AWS, Azure, and Google Cloud. These projects involved designing secure, scalable, and highly available architectures, selecting SAP-certified instances, and ensuring seamless deployment. My work focused on driving cost efficiencies, improving performance, and ensuring high availability and disaster recovery, leveraging the full potential of cloud technologies to meet business needs.</p><ol><li><strong>Initial Estimation:</strong> Begin by assessing your organization’s requirements, including the number of users, types of SAP applications, and the expected workload. This helps to estimate the necessary cloud resources and the potential costs associated with running SAP workloads. Use cloud cost estimation tools from providers like AWS, Azure, or Google Cloud to predict the infrastructure cost based on the expected resource utilization.</li></ol><p><strong>2. Cloud Provider Selection:</strong> Choose a cloud service provider that offers SAP-certified instances. AWS, Azure, and Google Cloud are some of the leading providers that offer such certifications. These providers offer specialized virtual machines (VMs) optimized for running SAP workloads, which ensure compatibility and high performance.</p><p><strong>3. Architecture Design:</strong> Design a cloud architecture that accommodates your SAP environment. This involves determining whether your architecture will be a hybrid, public, or private cloud deployment. Ensure that the architecture can support SAP S/4HANA or other SAP applications with components like compute instances, storage, and networking. Typically, an SAP landscape will include separate layers for development, testing, and production environments, each with specific resource requirements.</p><p><strong>3.Instance Selection and Sizing:</strong> Choose the right SAP-certified instance types based on the sizing recommendations for the specific SAP application. Ensure that these instances can support the SAP HANA database if you’re using S/4HANA, as it requires high performance and low latency. Consider using instance types with high memory and CPU capabilities for better performance.</p><p><strong>4. Deployment:</strong> Once the architecture is finalized and instances are selected, deploy the SAP software using the appropriate SAP installation and configuration methods. Many cloud providers offer automated deployment options for SAP workloads. For instance, AWS offers the “SAP Quick Start” that provides an easy way to deploy SAP environments with pre-configured templates.</p><p><strong>5. Database Setup:</strong> Configure the SAP database (SAP HANA or another compatible database) in the cloud. Ensure that database storage is highly available, reliable, and scalable to handle the large data volumes typical in SAP environments. Cloud providers offer managed database services that can automate database maintenance, backups, and scaling, which can significantly reduce the operational overhead.</p><p><strong>6. High Availability and Disaster Recovery:</strong> Set up high availability (HA) for your SAP applications and database to ensure minimal downtime and maximum reliability. Use cloud-native services like AWS Availability Zones, Azure Availability Sets, or Google Cloud’s regional deployments to spread resources across multiple locations. Additionally, configure disaster recovery (DR) plans that leverage cloud backup and recovery features to protect against data loss and unexpected outages.</p><p><strong>7. Security Configuration:</strong> Configure robust security settings for your SAP environment. This includes setting up firewalls, VPNs, encryption for data in transit and at rest, and user access management. Use Identity and Access Management (IAM) services from cloud providers to enforce least privilege access policies. Additionally, ensure compliance with industry standards like GDPR, HIPAA, or other relevant regulations.</p><p><strong>8. Monitoring and Optimization:</strong> Once deployed, continuously monitor the performance of your SAP environment. Use cloud monitoring tools such as AWS CloudWatch, Azure Monitor, or Google Cloud Monitoring to track the health of your SAP applications, instances, and network. Perform regular performance tuning, optimizing resource allocation to ensure cost-effectiveness and optimal performance.</p><p><strong>9. Scalability:</strong> Leverage the cloud’s inherent scalability to adjust resources dynamically. If demand for SAP applications grows, you can scale compute, storage, and network resources quickly. For example, use cloud auto-scaling features to automatically increase or decrease the number of instances based on traffic and workload demands.</p><p><strong>10. Backup and Maintenance:</strong> Implement a comprehensive backup strategy that aligns with your business continuity plan. Ensure that backups are performed regularly and stored securely. Cloud providers offer backup solutions that are fully integrated into their services, allowing for quick and reliable recovery if needed. Periodically perform software updates and patching to maintain security and performance.</p><p><strong>11. Cost Management:</strong> Regularly review your cloud usage and associated costs. Cloud providers offer cost management and optimization tools to help track your expenses and avoid over-provisioning. Using reserved instances or spot instances, where applicable, can help reduce ongoing costs while maintaining the performance of SAP workloads.</p><p>By following these steps, organizations can deploy SAP on the cloud efficiently, ensuring a secure, scalable, and highly available environment that supports business-critical operations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a85e8d04cb6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes]]></title>
            <link>https://medium.com/@SagarTalwaray/kubernetes-67dfe658d321?source=rss-730977a4d702------2</link>
            <guid isPermaLink="false">https://medium.com/p/67dfe658d321</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Sagar Talwaray]]></dc:creator>
            <pubDate>Sun, 02 Feb 2025 22:34:11 GMT</pubDate>
            <atom:updated>2025-12-20T18:59:50.645Z</atom:updated>
            <content:encoded><![CDATA[<h3>Kubernetes Microservices Application Deployment Platform</h3><h3>Building a Kubernetes Microservices Application Deployment Platform with Integrated Observability</h3><p>Modern applications are no longer single services running on a single server. They are composed of multiple components, deployed as containers, orchestrated by Kubernetes, and continuously monitored to ensure reliability.</p><p>In this post, I’ll walk through how I designed and deployed a <strong>multi-tier microservices application on Kubernetes</strong>, integrated with <strong>cloud-native observability</strong>, using production-grade practices.</p><p>This setup closely mirrors how real-world platforms are built and operated in cloud environments.</p><h3>Architecture Overview</h3><p>The platform consists of multiple microservices and supporting components deployed on a Kubernetes cluster running on AWS.</p><p>Core components include:</p><ul><li>Application layer running on <strong>Tomcat</strong></li><li>Data layer using <strong>MySQL</strong></li><li>Caching via <strong>Memcached</strong></li><li>Messaging using <strong>RabbitMQ</strong></li><li>Kubernetes-native networking and traffic routing using <strong>Services</strong> and <strong>Ingress</strong></li><li>Secure configuration and storage using <strong>Secrets</strong> and <strong>Persistent Volume Claims</strong></li><li>Observability using <strong>Prometheus</strong>, <strong>Grafana</strong>, and <strong>Loki</strong></li></ul><p>The goal was not just to deploy services, but to ensure:</p><ul><li>scalability</li><li>secure state management</li><li>high availability</li><li>full visibility into application and infrastructure health</li></ul><h3>Tech Stack</h3><p>Kubernetes, Docker, MySQL, Memcached, RabbitMQ, Tomcat, Ingress, PVC, Secrets, Prometheus, Grafana, Loki, AWS</p><h3>Step 1: Kubernetes Cluster Setup</h3><p>The first step was setting up a Kubernetes cluster on AWS.</p><p>Key actions:</p><ul><li>Provisioned compute nodes for running workloads</li><li>Ensured networking and security groups allowed internal service communication</li><li>Verified cluster access using kubectl</li><li>Organised namespaces to logically separate application components</li></ul><p>This provided the foundation on which all services would run.</p><h3>Step 2: Containerising Application Components</h3><p>Each application component was packaged as a Docker container.</p><ul><li>Tomcat-based application image built using Docker</li><li>MySQL image configured with persistent storage requirements</li><li>RabbitMQ and Memcached deployed using container images optimised for Kubernetes</li></ul><p>Containerisation ensured:</p><ul><li>consistent runtime environments</li><li>easy scaling</li><li>predictable deployments</li></ul><h3>Step 3: Deploying Microservices Using Kubernetes Deployments</h3><p>Each service was deployed using Kubernetes <strong>Deployments</strong>.</p><p>This allowed:</p><ul><li>declarative configuration of desired state</li><li>easy rollouts and updates</li><li>automatic pod recovery</li></ul><p>Separate deployments were created for:</p><ul><li>Application (Tomcat)</li><li>MySQL database</li><li>Memcached</li><li>RabbitMQ</li></ul><p>Replica counts were defined to support scalability and fault tolerance.</p><h3>Step 4: Service Discovery with Kubernetes Services</h3><p>To enable communication between microservices, <strong>Kubernetes Services</strong> were configured.</p><ul><li>Internal services allowed pods to discover and communicate with each other</li><li>Stable DNS-based service names removed dependency on pod IPs</li><li>Database and cache services were exposed only within the cluster</li></ul><p>This ensured loose coupling between components.</p><h3>Step 5: Managing State with Persistent Volume Claims</h3><p>Stateful components like MySQL require reliable storage.</p><p>To handle this:</p><ul><li><strong>Persistent Volume Claims (PVCs)</strong> were created</li><li>Storage was decoupled from pod lifecycle</li><li>Data persisted even if pods were restarted or rescheduled</li></ul><p>This is critical for real-world workloads where data loss is unacceptable.</p><h3>Step 6: Securing Configuration with Kubernetes Secrets</h3><p>Sensitive data such as:</p><ul><li>database credentials</li><li>application secrets</li></ul><p>were managed using <strong>Kubernetes Secrets</strong>.</p><p>Benefits:</p><ul><li>credentials were not hard-coded in images or manifests</li><li>access was controlled at the cluster level</li><li>improved security posture</li></ul><p>Secrets were injected into containers as environment variables.</p><h3>Step 7: Traffic Routing with Ingress</h3><p>To expose the application externally, <strong>Kubernetes Ingress</strong> was configured.</p><p>Ingress provided:</p><ul><li>HTTP routing to backend services</li><li>a single entry point into the cluster</li><li>flexibility for future routing rules</li></ul><p>This setup closely resembles how production platforms handle inbound traffic.</p><h3>Step 8: Setting Up Observability — Metrics, Logs, and Dashboards</h3><p>Deploying applications is only half the job. Operating them reliably requires observability.</p><h3>Metrics with Prometheus</h3><ul><li>Prometheus was deployed to scrape metrics from Kubernetes nodes and workloads</li><li>Nodes and services were added as Prometheus targets</li><li>Resource usage and performance data was collected continuously</li></ul><h3>Visualisation with Grafana</h3><ul><li>Grafana was connected to Prometheus</li><li>Dashboards were built using <strong>PromQL</strong></li><li>Metrics such as CPU, memory, pod health, and service performance were visualised</li></ul><h3>Logging with Loki</h3><ul><li>Loki was configured to collect application and system logs</li><li>Logs were correlated with metrics inside Grafana</li><li>This enabled faster debugging and root cause analysis</li></ul><h3>Step 9: Alerting and Proactive Monitoring</h3><p>To move beyond passive monitoring:</p><ul><li>Alerts were configured based on thresholds</li><li>Notifications were integrated for rapid awareness</li><li>This enabled proactive incident detection rather than reactive firefighting</li></ul><h3>Final Outcome</h3><p>By the end of this setup, the platform achieved:</p><ul><li>Scalable microservices deployment using Kubernetes</li><li>Secure handling of sensitive data and persistent storage</li><li>Reliable service discovery and traffic routing</li><li>Full observability across metrics and logs</li><li>Production-style monitoring and alerting</li></ul><p>This closely mirrors how modern DevOps and Platform teams build and operate cloud-native systems.</p><h3>Why This Matters</h3><p>This project demonstrates skills across the full lifecycle:</p><ul><li>application deployment</li><li>infrastructure orchestration</li><li>security and state management</li><li>monitoring and operations</li></ul><p>These are the same patterns used in real production environments.</p><h3>Closing Thoughts</h3><p>Kubernetes is not just about deploying containers. It’s about building <strong>operable systems</strong>.</p><p>By combining:</p><ul><li>microservices</li><li>Kubernetes primitives</li><li>and observability tooling</li></ul><p>you move from “it runs” to “it runs reliably”.</p><p>If you’re learning Kubernetes, I highly recommend building something end-to-end like this. It teaches far more than isolated examples.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67dfe658d321" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Step-by-Step Guide to Building Amazon AppStream 2.0 Applications on AWS]]></title>
            <link>https://medium.com/@SagarTalwaray/aws-appstream-268bfe03c41a?source=rss-730977a4d702------2</link>
            <guid isPermaLink="false">https://medium.com/p/268bfe03c41a</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[appstream]]></category>
            <category><![CDATA[lambda]]></category>
            <category><![CDATA[aws-service]]></category>
            <dc:creator><![CDATA[Sagar Talwaray]]></dc:creator>
            <pubDate>Wed, 29 Jan 2025 14:33:25 GMT</pubDate>
            <atom:updated>2025-12-20T18:58:51.154Z</atom:updated>
            <content:encoded><![CDATA[<h3>Step-by-Step Guide to Creating an Amazon AppStream 2.0 Application</h3><p>Amazon AppStream 2.0 allows you to stream desktop applications securely to users without installing anything locally. It is commonly used for secure remote access, regulated environments, and enterprise application delivery.</p><p>This guide walks through <strong>how to create, configure, and publish an AppStream application from scratch</strong>.</p><h3>What You Will Build</h3><ul><li>A Windows-based AppStream image</li><li>An AppStream fleet to run streaming instances</li><li>A stack to manage user access</li><li>Secure application streaming through a browser</li></ul><h3>Prerequisites</h3><p>Before starting, ensure:</p><ul><li>An active AWS account</li><li>IAM permissions for AppStream 2.0, EC2, IAM, and VPC</li><li>A region where AppStream is supported (e.g. eu-west-1, us-east-1)</li></ul><h3>Step 1: Create an AppStream Image Builder</h3><p>The Image Builder is where you install and configure applications.</p><ol><li>Go to the AWS Management Console</li><li>Search for <strong>AppStream 2.0</strong></li><li>Click <strong>Images → Image Builder → Launch Image Builder</strong></li></ol><h3>Configuration</h3><ul><li>Choose <strong>Windows Server</strong> (latest available)</li><li>Select an <strong>instance type</strong> (start with stream.standard.medium)</li><li>Choose a VPC and subnet</li><li>Assign a security group allowing outbound internet access</li><li>Enable internet access (required to install software)</li></ul><p>Click <strong>Launch Image Builder</strong></p><h3>Step 2: Connect to the Image Builder</h3><p>Once the Image Builder is running:</p><ol><li>Select the Image Builder</li><li>Click <strong>Connect</strong></li><li>Launch the streaming session</li></ol><p>You now have a Windows desktop running in AWS.</p><h3>Step 3: Install Applications on the Image Builder</h3><p>Inside the Image Builder session:</p><ul><li>Install your required desktop applications<br> (e.g. Chrome, VS Code, proprietary enterprise apps)</li><li>Apply system configurations</li><li>Validate application functionality</li></ul><p>Best practices:</p><ul><li>Avoid storing credentials locally</li><li>Keep installations minimal</li><li>Ensure apps launch correctly without admin prompts</li></ul><h3>Step 4: Add Applications to AppStream</h3><ol><li>Open <strong>AppStream Image Assistant</strong></li><li>Click <strong>Add Application</strong></li><li>Browse to the executable (.exe)</li><li>Provide:</li></ol><ul><li>Application name</li><li>Display name</li><li>Launch parameters (if required)</li></ul><p>Test the application using <strong>Launch</strong> inside Image Assistant.</p><h3>Step 5: Optimize and Finalize the Image</h3><p>Before creating the image:</p><ul><li>Run Windows updates if needed</li><li>Remove unnecessary software</li><li>Clean temporary files</li></ul><p>Then:</p><ol><li>Open Image Assistant</li><li>Click <strong>Create Image</strong></li><li>Provide an image name and description</li></ol><p>The image creation process can take 30–60 minutes.</p><h3>Step 6: Create an AppStream Fleet</h3><p>The fleet defines how applications are streamed.</p><ol><li>Go to <strong>Fleets → Create Fleet</strong></li><li>Choose:</li></ol><ul><li>Fleet type: <strong>Always-On</strong> or <strong>On-Demand</strong></li><li>Instance type</li><li>Desired capacity (start with 1)</li></ul><ol><li>Select:</li></ol><ul><li>Your VPC and subnet</li><li>Security groups</li></ul><ol><li>Enable:</li></ol><ul><li>Internet access (optional)</li><li>Domain join (if required)</li></ul><p>Create the fleet and wait until it becomes <strong>Running</strong>.</p><h3>Step 7: Create an AppStream Stack</h3><p>A stack controls user access and permissions.</p><ol><li>Go to <strong>Stacks → Create Stack</strong></li><li>Configure:</li></ol><ul><li>Stack name</li><li>User settings (clipboard, file upload/download)</li><li>Storage options (Home folders, S3 integration)</li></ul><p>Create the stack.</p><h3>Step 8: Associate Fleet with Stack</h3><ol><li>Open the created stack</li><li>Click <strong>Fleet associations</strong></li><li>Add the fleet you created</li></ol><p>This links applications to users.</p><h3>Step 9: Configure User Access</h3><p>You can provide access in multiple ways:</p><h3>Option 1: AppStream User Pool</h3><ul><li>Create users directly in AppStream</li><li>Assign them to the stack</li></ul><h3>Option 2: SAML / Active Directory</h3><ul><li>Integrate with Azure AD, Okta, or AWS Managed AD</li><li>Recommended for enterprise environments</li></ul><h3>Step 10: Test Application Streaming</h3><ol><li>Log in as an AppStream user</li><li>Launch the stack URL</li><li>Select the application</li><li>Verify:</li></ol><ul><li>Application launches correctly</li><li>Performance is acceptable</li><li>Clipboard and file permissions behave as expected</li></ul><h3>Step 11: Enable Security and Monitoring</h3><p>Best practices:</p><ul><li>Enable <strong>CloudWatch metrics</strong> for fleet health</li><li>Restrict outbound access via security groups</li><li>Use IAM policies for least privilege</li><li>Enable logging for audit and compliance</li></ul><h3>Architecture Overview (Summary)</h3><ul><li>AppStream Image → defines applications</li><li>Fleet → provides compute resources</li><li>Stack → controls user access</li><li>Browser → streams the application securely</li></ul><p>No data is stored on user devices.</p><h3>Common Use Cases</h3><ul><li>Secure enterprise application access</li><li>Remote workforce enablement</li><li>Regulated environments (finance, healthcare)</li><li>Training and lab environments</li></ul><h3>Final Thoughts</h3><p>Amazon AppStream 2.0 is a powerful service for securely delivering desktop applications at scale. By separating <strong>image</strong>, <strong>fleet</strong>, and <strong>stack</strong>, it provides flexibility, scalability, and strong security.</p><p>This setup closely matches real enterprise implementations and is widely used in production environments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=268bfe03c41a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Seamless AWS MGN Migration: 40% Less Downtime, 100% More Efficiency.]]></title>
            <link>https://medium.com/@SagarTalwaray/seamless-aws-mgn-migration-40-less-downtime-100-more-efficiency-57beaf2d3d87?source=rss-730977a4d702------2</link>
            <guid isPermaLink="false">https://medium.com/p/57beaf2d3d87</guid>
            <category><![CDATA[aws-service]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-mgn]]></category>
            <category><![CDATA[migration]]></category>
            <dc:creator><![CDATA[Sagar Talwaray]]></dc:creator>
            <pubDate>Wed, 29 Jan 2025 14:03:42 GMT</pubDate>
            <atom:updated>2025-02-02T22:53:50.824Z</atom:updated>
            <content:encoded><![CDATA[<p>This article contains steps to migrate AWS EC2 instances from one region to another on AWS.</p><h3>Step 1: Setup AWS MGN</h3><p>· Login to AWS and go to AWS MGN service.</p><p>· Choose Get Started and select the target AWS Region where you want to migrate your workloads.</p><p>· Create a Replication Settings Template:</p><p>· Select a staging area subnet (used to temporarily store data).</p><p>· Choose the instance type for replication servers (default: t3.small).</p><p>· Enable encryption for security.</p><p>Click Create Template</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1OdIp7Sqj-GBUkBtRik4xA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u3S1Zs4jpEEZu9YzeXiaYw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/388/1*PdOcU9LfrgGE-LWkJncEKw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*_kWFwobQlEWPkyyYfTghrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M5vPjxGR7I7ErfyxvBT8CQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*g54p3DZsaR5zD0fngQYE1A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5B56wEP0f7yZKMHkf4YUEw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*f3f5n4j-f8eX60OqJKXlPQ.png" /></figure><p>Step 2: Add Source Servers for Migration</p><p><strong>1. Install AWS MGN Replication Agent</strong> <strong>on your existing servers:</strong></p><p>· In AWS MGN, select <strong>Add Servers</strong>.</p><p>· Provide the <strong>OS type</strong>, <strong>IAM credentials</strong>, and <strong>Replication preferences.</strong></p><p>· Copy the <strong>installation command</strong> and run it on your source server.</p><p>· The source server appears in AWS MGN once the installation is complete.</p><p><strong>2. Monitor the replication</strong>:</p><p>· AWS MGN will start <strong>syncing data.</strong></p><p>· Wait until <strong>100% replication is completed.</strong></p><p><strong>Let’s start with step 2 now,</strong><br> <br> First, create an IAM user with the below permissions:<br> <br> Create a New User:</p><p>• Click IAM Users → Add users.</p><p>• Enter Username: AWS-MGN-Migration</p><p>• Select Access Key — Programmatic Access (needed for AWS CLI/SDK)</p><p>Set Permissions:</p><p>• Choose to Attach policies directly.</p><p>• Add the following AWS Managed Policies:</p><p>◦ AWSApplicationMigrationFullAccess</p><p>◦ IAMFullAccess</p><p>◦ EC2FullAccess</p><p>◦ S3FullAccess (for storing logs)</p><p>◦ CloudWatchLogsFullAccess (for monitoring logs)</p><h3>Generate IAM Access Key &amp; Secret Key</h3><p>1. <strong>Go to IAM Console</strong> → <strong>Users.</strong></p><p>2. Select <strong>AWS-MGN-Migration</strong> user.</p><p>3. Navigate to the <strong>Security Credentials</strong> tab.</p><p>4. Click <strong>Create Access Key</strong></p><p>5. <strong>Select Use Case:</strong> Choose <strong>Programmatic access.</strong></p><p>6. <strong>Copy &amp; Save the Access Key ID and Secret Key</strong></p><p>Download the <strong>.csv file</strong> (IMPORTANT: You won’t see the secret key again)</p><p><strong>Access key: </strong>AKIAVVZOOP6xxxxxxx<br> <strong>Secret access key</strong>: eJ5skTFxpGZqe+nxxxxxxxxxxxxxxxxx<br> <br> <br> <strong>Now Launch the Source server:</strong><br> <br> Launch source server in source region N.Virginia with AMI ID as mentioned below:<br> AMI ID — 123173973848<br> <br> As part of the proof of concept (POC), I provisioned a server in the <strong>North Virginia (us-east-1) region</strong>, utilizing the specified AMI. The instance was launched in a <strong>public subnet</strong>, with a <strong>security group</strong> configured to permit <strong>incoming HTTP traffic over TCP port 80.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a1Z2owNtCOdyFdfq8W057Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*bmgjpDBeDW04Wco4nzeSVQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_fmR5l2WKe8NtISTnB5NCQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YJMei5T2kOQWDk3CDO6Jgw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vQrwE5SW8S7Na8fz5DhEfg.png" /></figure><p>Launch server.<br> <br> <br> Create Role for EC2 and attach to ec2 source server:<br> <br> <strong>Attach AWS Managed Policies</strong></p><p>Attach the following AWS Managed<strong> </strong>Policies for AWS MGN:</p><p>• AWSApplicationMigrationFullAccess</p><p>• AmazonSSMManagedInstanceCore <em>(For SSH via AWS Systems Manager)</em></p><p>• AmazonEC2FullAccess</p><p>CloudWatchLogsFullAccess</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jgOj7mUqlIJpOgOF3pFIMQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CU3b7x_NCGHmpyI3TII-ZA.png" /></figure><p>Connect to session manager:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yacZjNSHSrGE-kIOTNHkEQ.png" /></figure><p>Go to target region MGN, and select source server (Add server option)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HH47JRoA_rnPqE2NYucb9g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HAQqW_VjR-RH0tk44mPSPQ.png" /></figure><p>Command 1:<br> <strong>Download the installer using this command:</strong><br> sudo wget -O ./aws-replication-installer-init <a href="https://aws-application-migration-service-ap-southeast-1.s3.ap-southeast-1.amazonaws.com/latest/linux/aws-replication-installer-init">https://aws-application-migration-service-ap-southeast-1.s3.ap-southeast-1.amazonaws.com/latest/linux/aws-replication-installer-init</a><br> <br> <br> <br> <br> Command 2:<br> <strong>Copy and input the command below into the command line on your source server</strong></p><p>sudo chmod +x aws-replication-installer-init; sudo ./aws-replication-installer-init — region ap-southeast-1 — aws-access-key-id AKIAVVZOOP65KCANFFKG — aws-secret-access-key eJ5skTFxpGZqe+nfyLIxpUhg/kGwtaTL7RXOCmgG — no-prompt<br> <br> <br> <br> If the role is attached to ec2 use the below command, Your <strong>AWS Access Key and Secret Key</strong> should <strong>never be exposed in plain text.</strong> Instead, use <strong>IAM Roles </strong>attached to EC2, so you don’t need to pass credentials manually.<br> <br> Check if the ec2 role is attached by running this command: curl <a href="http://169.254.169.254/latest/meta-data/iam/security-credentials/">http://169.254.169.254/latest/meta-data/iam/security-credentials/</a><br> <br> If yes then run the below command: <br> <br> Command 2 new:<br> sudo chmod +x aws-replication-installer-init</p><p>sudo ./aws-replication-installer-init — region ap-southeast-1 — no-prompt<br> <br> After running command 1:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ta2X4nLA5_-1OV78525w5Q.png" /></figure><p>To check is role is attached:<br> curl <a href="http://169.254.169.254/latest/meta-data/iam/security-credentials/">http://169.254.169.254/latest/meta-data/iam/security-credentials/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cwFiqxTSfmwmYAG1ykLeAA.png" /></figure><p>It means role is attached.<br> <br> <strong>After running command 2 new:<br> <br> </strong>sudo chmod +x aws-replication-installer-init</p><p>sudo ./aws-replication-installer-init — region ap-southeast-1 — no-prompt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*-pT65MEtHDD--vwmIFMUgg.png" /></figure><p>Target region EC2:<br> <br> replication server is launched:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*1BI7olQL7dn1yJjCbldY-A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*2RvjgBAW6oN3Ppj2_pQRSg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GVNYeIVuoel8CRL-Z_7K2Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mxBOAK6UeGXo0Rfkkw1XPw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h9qywOHv-FfATupQNh_qNg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_PPxBsgQRSp5u6Lo8K9aRw.png" /></figure><p>Source EBS attached to the replication server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n141D3vo90ZQWitkA0RxWw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bPmekTZY-xEf-KJA0xJsHw.png" /></figure><p>Target region MGN:<br> <br> During Initial Sync, the service will perform various actions:</p><p>· Creating Firewall Rules</p><p>· Spinning Up the Replication Server</p><p>· Authenticating with AWS MGN</p><p>· Downloading Replication Software</p><p>· Creating Staging Volumes</p><p>· Establishing Communication between Agent &amp; Replication Server</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6xX6Chn6GpoZZMlgJXgzIw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*NwIDsck1TV4Ft2gh5XXrOw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ngq-D5icXEp7VrB1cJZpXg.png" /></figure><p>Replication completed after 28 mins for 12 GB storage server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mijhNcEhgu1nysqqG00n3w.png" /></figure><p>Other details:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vLLNjOy6g8AH9_pG3fffsg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HhlOs4Do_rEpKZfE39CgNA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OpyvFMTCC-guSaf8sw9dMg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WRCJL6bnypkHVfBX9ESGCA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c1UNY4gLPxANhMV8ThX0TA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zgWSFwMgVJ340YwXGkHTEQ.png" /></figure><p>1. After installing the agent, the source server will appear in the AWS MGN console but will initially be marked as not ready.</p><p>2. During this phase, the source server begins its initial synchronization with the replication server in AWS.</p><p>3. Once replication is complete, the server’s status will update to ready for testing.</p><p>4. At this stage, testing can be performed to ensure the server functions as expected.</p><p>5. If testing is unsuccessful, you can either reset the server to ready for testing or proceed by marking it as ready for cutover.</p><p>6. Marking the server as ready for cutover will move it to the next phase, where you can follow similar steps to finalize the cutover process.</p><h3>7. When finalizing the cutover, AWS MGN will remove the replication agent from the source server and delete any temporary AWS resources, including EBS snapshots and volumes, that were used during migration.<br> <br> Step 3: Configure and Launch a Test Migration</h3><p>1. <strong>Set up a Launch Template</strong>:<br> Go to <strong>Launch Settings.</strong><br> Modify the <strong>EC2 launch template</strong> (change instance type, security groups, key pair, etc.).<br> Save the <strong>default launch template.</strong></p><p>2. <strong>Launch a Test Instance</strong>:<br> In AWS MGN, choose <strong>Launch Test Instances.</strong><br> Confirm that the test instance is <strong>running properly.</strong><br> SSH/RDP into the test instance and <strong>validate the setup.</strong><br> <br> If everything works fine, <strong>terminate the test instance</strong> and mark the source server as <strong>Ready for Cutover.<br> <br> Note:<br> </strong>You must configure your launch settings before launching test/cutover instances.<br> You can alter launch settings after launching a test/cutover instance but you must launch a new instance for these settings to take effect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BgtGfdtIQ-IeKaR2MOhZ7g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-rVPOIl00LJJBqdEVe_7xQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kYnlKcGw_Ub6-jPsZs4Z-w.png" /></figure><p>General Launch settings:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nkwZyhd1yd5zHnWr9tEUkg.png" /></figure><h3>EC2 Launch template:<br> <br> Best Practice: Select “Don’t Include AMI” ✅</h3><ul><li><strong>AWS MGN automatically generates an AMI</strong> for the migrated instance.</li><li>Including an AMI in the launch template may cause <strong>conflicts </strong>because AWS MGN already captures the <strong>source system state</strong>.</li><li>The AWS MGN-created AMI <strong>includes the exact disk image and system settings</strong> from the source EC2.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gflaIiN1_gd2F5oaEOVfBw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zgw1OXGE5TlVC5afsYVtEw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1UsOUCJfrtb1EX7k1qaYow.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vXOqoetoMj63NRmujoRvqQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JxuMNmY8gXYz-vZXObdtFQ.png" /></figure><p>Every time you change an EC2 Launch Template, a new version is created. In order for Application Migration Service to use the new version you created, you must mark it as “Default”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wk4nsStILAEK-aTkDJQfxg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*v0lxPTi4ofk3Tcfsu0mnAA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*81Mwl7xP6-VIc9gibK43hg.png" /></figure><p>Modified Launch template to increase volume size to 12 GB and to enable Public IP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*xDgQJB8FreGDmRj0Tl8u0w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*4leuOHg9qUGlXzHzxswV3Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AZSinEfCs4PpmOKUHuPHMw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1NuVnk7TCkyL1_h5ueu03Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KYoaIDXKHs94QkmP0OqK5w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DdX9dhcOB7lHHGfAcHuGcA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*-NhbGp8s_mzI95h28WNUrQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l88AwmOyWG4wI4_2EK7tVA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t7sDPYL2aTD_KeEkJEOMOw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*CTWBLG32_7sl3kHCoERBXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fpvnEhKaC0cfKb44A5MMZw.png" /></figure><p>Conversion Instance is launched:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ks4HeX7K0m5C6qDpz6acUQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dg-tWqn7NUB64gwYBL8kcQ.png" /></figure><h3>Conversion server terminated and source server launched.<br> <br> What is a Conversion Server in AWS MGN?</h3><p>A <strong>Conversion Server</strong> in AWS <strong>Application Migration Service (AWS MGN)</strong> is a temporary instance used during the migration process to <strong>convert the replicated source disk data into an Amazon Machine Image (AMI)</strong> before launching the final instance in the target AWS region.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*KzboHq9IeuD1J3bxrtMhbQ.png" /></figure><p>Source server is launched and running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_SqwrWWjs4QdQHfrxBIncQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ALcCe-MEQBqIQ67Qspryg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qXziE4HLkaqeeidTAPdLSw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1bngV5WaqYh-D0L_Pc7DoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1bngV5WaqYh-D0L_Pc7DoA.png" /></figure><p>MGN console:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*39i1oUaYufz2zIM827338w.png" /></figure><p>After your test instances has been launched, on the migration dashboard tab confirm the launch status reports <strong>Succeeded.<br> <br> </strong>If testing was successful then choose Mark as “Ready for Cutover”.</p><p>Else Revert to “ready for testing” (this might include changing instance type or IP address configurations)<br> <br> <strong>After testing you can mark as ready for cutover.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VeEdlp8WbQwlKwWLkbBEnQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*EWrpztIiWmrftSTAbbvoDw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QdnswzdqSyLo06jhjc772w.png" /></figure><p>Test server terminated</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aAp34zw9g_CUQk83FNLQLA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*krWUKd_T53o5X1lyQz2bHA.png" /></figure><p><strong>You may proceed with cutover if : </strong>Migration lifecycle : <br> <br> Ready for cutover Data replication status : Healthy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8jh_Esm_b-t8W7JnMwdCUg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pBcpUsPuAk-qtR4yGw8M8g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*zrvznIFXpNT2NpMnvgGT3A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FkyMshLyofIc0UPd2Qaa5A.png" /></figure><h3>Step 4: Perform Final Migration (Cutover)</h3><p><strong>Launch Cutover Instance</strong>:</p><p>In AWS MGN, go to <strong>Source Servers</strong> &gt; <strong>Launch Cutover Instances</strong>.</p><p>AWS will create a copy of your servers in the <strong>new AWS region</strong>.</p><p>Monitor the <strong>cutover process</strong>.</p><p><strong>2. Validate the Cutover</strong>:</p><p>Check if the instance <strong>runs correctly</strong> in the new AWS region.</p><p>Test application connectivity.</p><p><strong>3. Finalize the Migration</strong>:</p><p>If everything is working, go to <strong>AWS MGN</strong> &gt; <strong>Finalize Cutover</strong>.</p><p>Once finalized, AWS <strong>disconnects the old servers.<br> </strong><br> Cutover Instance launched:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WNIX327X5SklBAjuAiGkRg.png" /></figure><p>For reference: Snapshot and volumes getting created getting created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*leFbx-xnIR9NnafMCvoR-Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RHhGsb9b4G__xpVLIHVo4g.png" /></figure><p><strong>Note:</strong><br> <strong>How AWS MGN Creates Snapshots and Volumes &amp; Uses Them for Cutover Instances</strong></p><p>1️. <strong>Replication Phase:</strong></p><p>AWS <strong>MGN Agent</strong> continuously replicates <strong>block-level data</strong> from the <strong>source server</strong> to the <strong>staging area</strong> in the <strong>target AWS Region</strong>.</p><p>The replicated data is stored in <strong>Amazon EBS volumes</strong> attached to a <strong>Replication Server.</strong></p><p>2️. <strong>Snapshot Creation:</strong></p><p>Once <strong>initial synchronisation</strong> is complete, AWS MGN <strong>automatically creates EBS snapshots</strong> from the replicated volume.</p><p>These snapshots are stored in <strong>Amazon S3</strong> (as part of AWS’s snapshot storage system).</p><p>3️. <strong>Launch of Test or Cutover Instance:</strong></p><p>When you <strong>launch a test or cutover instance</strong>, AWS MGN:</p><ol><li><strong>Creates a new EBS volume</strong> from the <strong>latest snapshot</strong>.</li><li><strong>Attaches the volume</strong> to the new EC2 instance.</li><li><strong>Uses the volume as the root disk</strong> for the launched instance.</li></ol><p>4️. <strong>Final Cutover:</strong></p><p>After successful testing, AWS MGN launches the <strong>cutover instance</strong> using the <strong>latest replicated volume and snapshot.</strong></p><p>The <strong>Replication Server is terminated</strong> as it is no longer needed.</p><p>The <strong>source server is disconnected</strong> from AWS MGN.<br><br> <br> If cutover was successful then you may <strong>Finalize cutover</strong>. Else you may Revert to <strong>“Ready to cutover” </strong>instead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ps1-9eer6hjwyc525RHUWQ.png" /></figure><p>If cutover was successful then you may <strong>Finalize cutover</strong>. Else you may Revert to <strong>“Ready to cutover” </strong>instead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eyje9kGGmVWpyqi0vppnXA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fMZJQNtHI12mERJlgWFb3A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XDLqHGVrn_Avnl_r8p-u_Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fSp64VhdrzFHxPO2mODPBg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LSkaaCh_MpiL-3T0uKMFGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CEEThP0l8MLPNLYP31YUrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mqVdHLZ8uq-gW0k5LNMmmw.png" /></figure><p>Finalize cutover:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kpfqkN_UekFBhMOSTEqjwA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*BNiEMLBOd1qNbVEsm8nxcA.png" /></figure><h3>This will cause all replicated data to be discarded &amp; all AWS resources used for data replication to be terminated.<br> <br> <br> 5. Cleanup After Final Cutover</h3><p><strong>Now that you’ve cut over your source server, you must clean up the server from the console because no further actions are required.<br> You may find following indicators to take this ahead : Migration lifecycle: Cutover Complete<br> Data replication status : Disconnected<br> Next step : Mark as Archived<br> <br> <br> Replication server terminated, only source server in target region running.</strong></p><h3>Delete These AWS Resources to Avoid Charges After Migration with AWS MGN</h3><ol><li>Terminate Source Server from AWS MGN Console</li><li><strong>Archive Source Server in AWS MGN</strong></li><li><strong>Delete Replication Servers</strong> (Staging area instances)</li><li><strong>Delete Staging EBS Volumes &amp; Snapshots</strong></li><li><strong>Delete Replication Settings in AWS MGN</strong></li><li><strong>Remove Old Security Groups, IAM Roles, and Policies (if not needed)</strong></li><li><strong>Detach &amp; Delete Internet Gateway (IGW) if created for migration</strong></li><li><strong>Delete VPC &amp; Subnets (only if not needed for other workloads)</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H8zUrhyEg_cFpggsND_62Q.png" /></figure><p><strong>Source server in source region running:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kEJu2aJXJYrNXnrHLo6ghQ.png" /></figure><p><strong>Delete conversion server available volume.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q28XHDYq7-wLv32c_xRQNw.png" /></figure><p><strong>To check on migrated server.<br> <br> # OS Details Check</strong></p><p><strong>cat /etc/os-release</strong></p><p><strong>uname -r</strong></p><p><strong>uname -a</strong></p><p><strong>arch</strong></p><p><strong>lsb_release -a</strong></p><p><strong># Network Checks</strong></p><p><strong>hostname -I</strong></p><p><strong>ip route show</strong></p><p><strong>nslookup google.com</strong></p><p><strong>dig google.com</strong></p><p><strong>ping -c 3 8.8.8.8</strong></p><p><strong># Firewall &amp; Security Group Checks</strong></p><p><strong>sudo iptables -L -n -v</strong></p><p><strong># Storage &amp; Disk Checks</strong></p><p><strong>lsblk</strong></p><p><strong>df -h</strong></p><p><strong>lsblk | grep disk</strong></p><p><strong>sudo fsck -y /dev/xvda1</strong></p><p><strong>df -h /</strong></p><p><strong># Performance Monitoring</strong></p><p><strong>htop</strong></p><p><strong>top</strong></p><p><strong>ps aux — sort=-%cpu | head -10</strong></p><p><strong>sudo journalctl -xe</strong></p><p><strong>dmesg | tail -20</strong></p><p><strong>systemd-analyze blame</strong></p><p><strong># Application &amp; Service Checks</strong></p><p><strong>systemctl list-units — type=service — state=running</strong></p><p><strong>sudo tail -f /var/log/syslog</strong></p><p><strong>sudo cat /var/log/auth.log | grep sshd</strong></p><p><strong>sudo systemctl status mysql</strong></p><p><strong>sudo systemctl status apache2</strong></p><p><strong># AWS Specific Checks</strong></p><p><strong>curl </strong><a href="http://169.254.169.254/latest/meta-data/iam/security-credentials/"><strong>http://169.254.169.254/latest/meta-data/iam/security-credentials/</strong></a></p><p><strong>ec2-metadata -t<br> <br> <br> Source server:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*knJ6vSbLFIgQYBnj9MUazw.png" /></figure><p><strong>Migrated server:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6M7Ff-YI9lqI-JJBCQixLQ.png" /></figure><p><strong>Terminate Migrated server:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1u8XVIx9on9jedJObAlQFA.png" /></figure><p><strong>Terminate Source server:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PuLiz3adQ9LepXfO3IGaQg.png" /></figure><h3>MGN:<br> <br> Marck source server as archive.<br> <br> <br> <br> What Does “Archive Source Server in AWS MGN” Mean?</h3><p>In AWS Application Migration Service (MGN), archiving a source server means removing it from the MGN console after migration is complete. This prevents further replication and stops unnecessary charges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yHybonGhE41g8HeqHikVmw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nr36iFSE5-fX_z9kAHodYQ.png" /></figure><p>Delete volumes and snapshot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h9nXOQlJXVVbKuEzjYOIIA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1_ss7-H2qZLpMjyyJCve-g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jHgjHIf8niSk4HLtq-zZxg.png" /></figure><p>delete the launch template.</p><p>Resources to delete:<br> EC2 Instance, Volumes, Snapshot, MGN source server.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57beaf2d3d87" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS DRS Unleashed: Smarter Disaster Recovery & High Availability]]></title>
            <link>https://medium.com/@SagarTalwaray/aws-migration-73c51cd8189f?source=rss-730977a4d702------2</link>
            <guid isPermaLink="false">https://medium.com/p/73c51cd8189f</guid>
            <dc:creator><![CDATA[Sagar Talwaray]]></dc:creator>
            <pubDate>Mon, 20 Jan 2025 23:00:12 GMT</pubDate>
            <atom:updated>2025-01-29T13:43:20.468Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DOsROpVKZSa5zUI_yeUSzA.png" /></figure><p>This document contains steps to perform DR from Mumbai to the Singapore region in AWS on a windows server.<br> <br> <br> <br> <strong>Date:</strong> 18/10/2022<br> <br> <strong>Replication Settings</strong><br> Link: <a href="https://docs.aws.amazon.com/drs/latest/userguide/quick-start-guide-gs.html#first-time-setup-gs">https://docs.aws.amazon.com/drs/latest/userguide/quick-start-guide-gs.html#first-time-setup-gs</a><br> <br> <strong>IAM user</strong><br> Link: <a href="https://docs.aws.amazon.com/drs/latest/userguide/credentials.html">https://docs.aws.amazon.com/drs/latest/userguide/credentials.html</a><br> <br> <strong>Supported OS:</strong><br> Link: <a href="https://docs.aws.amazon.com/drs/latest/userguide/Supported-Operating-Systems.html">https://docs.aws.amazon.com/drs/latest/userguide/Supported-Operating-Systems.html</a><br> <strong><br> Elastic DR Documentation:</strong><br> Link: <a href="https://docs.aws.amazon.com/drs/latest/userguide/what-is-drs.html">https://docs.aws.amazon.com/drs/latest/userguide/what-is-drs.html</a><br> <br> <strong>DR Drill:</strong><br> Link: <a href="https://docs.aws.amazon.com/drs/latest/userguide/launch-preparation.html">https://docs.aws.amazon.com/drs/latest/userguide/launch-preparation.html</a><br> <strong><br> Network Requirments:</strong> The bandwidth requirement is mentioned in this.<br> Link: <a href="https://docs.aws.amazon.com/drs/latest/userguide/Network-Requirements.html">https://docs.aws.amazon.com/drs/latest/userguide/Network-Requirements.html</a><br> <br> <strong>Agent Installation:</strong><br> Link: <a href="https://docs.aws.amazon.com/drs/latest/userguide/windows-agent.html">https://docs.aws.amazon.com/drs/latest/userguide/windows-agent.html</a><br> <br> <strong>EC2 Launch Template:</strong><br> <a href="https://docs.aws.amazon.com/drs/latest/userguide/ec2-launch.html">https://docs.aws.amazon.com/drs/latest/userguide/ec2-launch.html</a><br> <br> <strong>Replication Status:</strong><br> <a href="https://docs.aws.amazon.com/drs/latest/userguide/interracting.html">https://docs.aws.amazon.com/drs/latest/userguide/interracting.html</a><br> <br> <strong>Communication Troubleshooting:</strong><br> <a href="https://docs.aws.amazon.com/drs/latest/userguide/Troubleshooting-Communication-Errors.html">https://docs.aws.amazon.com/drs/latest/userguide/Troubleshooting-Communication-Errors.html</a></p><p><strong>Agent Troubleshooting:</strong><br> <a href="https://docs.aws.amazon.com/drs/latest/userguide/Troubleshooting-Agent-Issues.html">https://docs.aws.amazon.com/drs/latest/userguide/Troubleshooting-Agent-Issues.html</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EcTz6diBqN8tEUkVQKGTOw.png" /></figure><p>Create user:</p><p>legacy:<br> For windows 2008 R2:<br> <br> <a href="https://aws-elastic-disaster-recovery-ap-south-1.s3.amazonaws.com/latest/windows_legacy/AwsReplicationWindowsLegacyInstaller.exe">https://aws-elastic-disaster-recovery-ap-south-1.s3.amazonaws.com/latest/windows_legacy/AwsReplicationWindowsLegacyInstaller.exe</a><br> <br> New:<br> <br> <a href="https://aws-elastic-disaster-recovery-ap-south-1.s3.amazonaws.com/latest/windows/AwsReplicationWindowsInstaller.exe">https://aws-elastic-disaster-recovery-ap-south-1.s3.amazonaws.com/latest/windows/AwsReplicationWindowsInstaller.exe</a>AWS DRS Unleashed: Smarter Disaster Recovery &amp; High Availability</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1C2M6OYyvdYj-QLIPgIgAw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UJqcRKDpEH4IF5wsYui9wA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W1DS40Re1XcPQfyPq6PgiQ.png" /></figure><p>Select gp3 volume type: you can change this later as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d3ldzfa1imGT4OM1cOg1lQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zz-ku34o-34imrkTiI5GAg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MKjhdhhp7FkZJQodUlcenQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qQlNAINP9LYt_WcqsrwoPQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vNQUUIJwL_xrWnnKjGmecg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AOnCXAJdYiCtvqiVvHXD6Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l_01zj0yGLeb3GHfC1oxUQ.png" /></figure><p><strong>Server details:</strong><br> <br> Password: <a href="/service/mailto:MOhmCKh*yEDl.8OeTjH@*ZVx-6w!Vd)4">MOhmCKh*yEDl.8OeTjH@*ZVx-6w!Vd)4</a><br> Username: Administrator<br> IP: 13.233.142.141<br> <br> <strong>2. Create IAM user with programmatic access and attach</strong>.<br> AWSElasticDisasterRecoveryAgentInstallationPolicy Policy to the user.<br> <br> Link: <a href="https://docs.aws.amazon.com/drs/latest/userguide/credentials.html">https://docs.aws.amazon.com/drs/latest/userguide/credentials.html</a><br> <br> <br> <br> <br> <br> <strong><br> 3. Network Requirements for source servers:</strong><br> <br> <strong>Link:</strong> <br> <a href="https://docs.aws.amazon.com/drs/latest/userguide/Network-Requirements.html">https://docs.aws.amazon.com/drs/latest/userguide/Network-Requirements.html</a><br> <br> <br> On source:<br> <br> In source outbound rule:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*WpkFFTd4wh2jmijh23Bzrg.png" /></figure><p>+=================================================+<br> Agent Installation:<br> <br> <strong>Link:</strong><br> <a href="https://docs.aws.amazon.com/drs/latest/userguide/windows-agent.html">https://docs.aws.amazon.com/drs/latest/userguide/windows-agent.html</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*z_PWzyZLG7bwcqvqzUtquA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*t2xLlgGQSzUzyvTULd6sGQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*Hm0taEDXtYsmoocnZa2LwQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*MShqRf4aC9V2l71zNyMz-A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*SUbiZbIIucdUPdb_2PCzEA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*D_Mg--jMz0-kxXObxtbK8g.png" /></figure><p>4. Installing Agent on source server.<br> <br> Link: <br> <a href="https://docs.aws.amazon.com/drs/latest/userguide/windows-agent.html">https://docs.aws.amazon.com/drs/latest/userguide/windows-agent.html</a><br> <br> Install the agent and keep it in your local system for Mumbai and Singapore region. Copy it to the customer’s source system and then run the .exe command on the path on which agent is stored.<br> <br> <strong>For Singapore region:</strong> Download for replication Instance Region <br> <a href="https://aws-elastic-disaster-recovery-ap-southeast-1.s3.ap-southeast-1.amazonaws.com/latest/windows/AwsReplicationWindowsInstaller.exe">https://aws-elastic-disaster-recovery-ap-southeast-1.s3.ap-southeast-1.amazonaws.com/latest/windows/AwsReplicationWindowsInstaller.exe</a><br> <br> <br> Now paste the installer in the source system and run cmd as Admin on the agent path.<br> <br> AWSReplicationWindowsInstaller.exe<br> <br> Screenshot mentioned below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hrclUXvujRgADfV_oBZNYA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XQpmriMZDNOFk00VZAWlwQ.png" /></figure><p>In DR region initial sync will be in progress:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uz9oNB6jcUP3iy0FI67mcw.png" /></figure><p><a href="https://docs.aws.amazon.com/drs/latest/userguide/windows-agent.html">https://docs.aws.amazon.com/drs/latest/userguide/windows-agent.html</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t1cMZ-94qYKKBk4DGDcR-w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3ujDzoGB_muL3efTm_o8tA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HtGxJnj6gy-qK0PBVtJqGg.png" /></figure><p>Replication server details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*51RESpS0_zW4URfG9Y0sog.png" /></figure><p>Defaults port allowed on the replication server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*na5St0CgRPsl0_6Vh3jJ8A.png" /></figure><p>Snapshot ready:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bwE075-KJ2wNupFdL7dWqA.png" /></figure><p>After creating snapshot automatically:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k54mVh6X5wt3OtzC9uZ5cw.png" /></figure><p>Initiate drill:<br> <br> Link:<br> <a href="https://docs.aws.amazon.com/drs/latest/userguide/launch-preparation.html">https://docs.aws.amazon.com/drs/latest/userguide/launch-preparation.html</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xu7-ByAfSEapB2W_UCM-uA.png" /></figure><p><strong>1. Edit the existing launch template and perform DR Drill with it.<br> <br> </strong><br> <strong>EC2 Launch Template:</strong><br> <a href="https://docs.aws.amazon.com/drs/latest/userguide/ec2-launch.html">https://docs.aws.amazon.com/drs/latest/userguide/ec2-launch.html</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ltml8yt_18gMel21Dh5alw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MeJNF404kIqQCOUv0PiYyA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o6ilk07joAzFF7NJVXVQ8w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lsnII5reDbwltBzi4F9k3w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5tsjJIyRaqIQXve04D6YiQ.png" /></figure><p>Select not encrypted in volumes section otherwise volumes will get encrypted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q4V3d523c3rDItWwzQbPWQ.png" /></figure><p>To change default Launch template version:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1HCtu8MbfgybWe7SDOjKwQ.png" /></figure><p>Launch Settings:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_L_h95TdjGzKVFCeUDraWQ.png" /></figure><p>Initiate Drill after changes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y4pom2Obg0TFXRy5wrB7aA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BLWld_LvYy-b7JNI07dI8A.png" /></figure><p>Recovery jobs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sj3XviAREnFnf-Dn2oYXeg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*28_iCIGfPHGViUC9Xp3VEg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Mb1m-FX406HZmpETLiVOg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-jUtyctkF_n_3n0Zsq1SZA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hVAL_1w4Qfev-vNXIwe2LA.png" /></figure><p>Able to connect to the server with source server’s password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EABAPR839aOypqaAX3-v_g.png" /></figure><p>Now terminate the DR server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RX-jGoPHXK3joFZcnLWUBg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LobxMf_dzlde_O84gIq0aQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aaYyaaDj-vnlBKOBzdg0KQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*56gUQObZwslMzPuXK6Kh3Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NrLipeeWz0cYVgdzEs-XxA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hVIv6cskeuhEBYScNqTaVQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3i2JGcFfmUTqvFUC0-mmRw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H4in0TZT0Yjufa3sgoZzaQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZHvYaUT0twIxO7w-a8mOmA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aImE8rnU7w0e51VZ1VVe1Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-316LZ563eEfF4KRveDEIA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QewR0a19NJjxkG-Iy38pOQ.png" /></figure><p>Terminate the source server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1_g6ZGYizghBvq-f-QAqZg.png" /></figure><p><strong>2. Initiate DR drill with default launch template:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YWgNtMuXmPjOEv2miXSe2A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gNu-oJYSloQtZBmUw_NHdg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iAHlQVSn46XjYOhalIAibA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1MoHg6s6-sG10HuhJtpdtw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yZkNsRb3y3hv91zKxRvwCA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RPrWQ-aX5rwPTs0-0fsHBw.png" /></figure><p>Conversion server created:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XhkqnSgejyh04w-p-zdgJw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mZ9QFBa27vwUAbOr6c6qCg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rJwbcHtNw_wgcvCDg--JBA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X1orHSWnXFclsijQYdawyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s1OYsihwQOM7BxxrHs1beA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pi2fJivUnBQabMsGyv9-8g.png" /></figure><p>To perform failback:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*snpWt756Y3rCeUski5e0oQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8NzSitztYgIH-tDPlXkj3A.png" /></figure><p>Link:<br> <br> <a href="https://docs.aws.amazon.com/drs/latest/userguide/failback-overview.html">https://docs.aws.amazon.com/drs/latest/userguide/failback-overview.html</a><br> <br> <a href="https://docs.aws.amazon.com/drs/latest/userguide/monitoring-recovery-instances.html#recovery-instances-actions">https://docs.aws.amazon.com/drs/latest/userguide/monitoring-recovery-instances.html#recovery-instances-actions</a></p><p>To test disk change:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p3QPzAborogMk7l6CKC9Gg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*XU3mUYRq6qzuKVB3yAa3OA.png" /></figure><p>First change settings in replication setting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qoOwmIUeE71olDtF-49yyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E0YYlz_fVUzC2ZCJJ0OvmQ.png" /></figure><p>Replication instance will be launched again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1iBG7T9wLaKp6tDEm_gSiQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0zKW10dRMykfnFSza-Fd4A.png" /></figure><p>New disk is attached to the replication server and now we can perform DR Drill.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Xa6-DYr4OF8qX_IF1nOWw.png" /></figure><p>Once DR Drill is performed, the server fails its status check, keep the server running and it will pass the status check. If the server doesn’t pass status check after 20 mins, then stop and start the server again. Stop Start the server 3 to 4 times.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73c51cd8189f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Terra]]></title>
            <link>https://medium.com/@SagarTalwaray/aws-terra-1e7d24426c4d?source=rss-730977a4d702------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e7d24426c4d</guid>
            <dc:creator><![CDATA[Sagar Talwaray]]></dc:creator>
            <pubDate>Mon, 20 Jan 2025 22:58:53 GMT</pubDate>
            <atom:updated>2026-01-15T14:05:31.915Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mastering AWS Automation with Terraform: Build, Scale, Deploy!</h3><p>This guide walks through deploying a full AWS infrastructure using Terraform, including VPC, subnets, Internet Gateway, EC2 instances, Application Load Balancer, Auto Scaling Group, Security Groups, S3, DynamoDB, IAM, and CloudWatch alarms. Everything is fully automated as Infrastructure-as-Code. Below is the complete process from installation to deployment, along with the full Terraform code base.</p><p>Step 1: Install Terraform (MacOS)</p><ol><li>Download Terraform: <a href="https://developer.hashicorp.com/terraform/install">https://developer.hashicorp.com/terraform/install</a></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nFLiWYcQDCtQI2IKJX7vPw.png" /><figcaption>Terraform Installation on MAC OS</figcaption></figure><ol><li>Create install folder:<br> mkdir ~/Documents/terraform-install</li><li>Move the Terraform ZIP file into the folder</li><li>Unzip:<br> unzip terraform_1.x.x_darwin_amd64.zip</li><li>Move binary:<br> mv terraform /usr/local/bin</li><li>Verify:<br> terraform version</li></ol><p>Step 2: Install AWS CLI &amp; Configure Credentials</p><ol><li>Download:<br> curl “<a href="https://awscli.amazonaws.com/AWSCLIV2.pkg">https://awscli.amazonaws.com/AWSCLIV2.pkg</a>&quot; -o “AWSCLIV2.pkg”</li><li>Install:<br> sudo installer -pkg AWSCLIV2.pkg -target /</li><li>Verify:<br> aws — version</li><li>Configure credentials:<br> aws configure<br> Enter: Access Key, Secret Key, Region (eu-west-2), Output format (json)</li></ol><p>Step 3: Install VS Code &amp; Terraform Extension</p><ol><li>Download VS Code: <a href="https://code.visualstudio.com/download">https://code.visualstudio.com/download</a></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZdDbb-0NQ02WqluKJIkvlA.png" /></figure><ol><li>Install “HashiCorp Terraform” extension</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1HfM6_SNS6kUsBcHNoHNWg.png" /></figure><p>Step 4: Create Project Structure<br> mkdir terraform-aws-infra<br> cd terraform-aws-infra<br> mkdir modules<br> cd modules<br> mkdir vpc security_groups alb_asg storage monitoring<br> cd ..</p><p>Step 5: Add Root Terraform Code</p><h3>provider.tf</h3><p>terraform {<br> required_version = “&gt;= 1.5.0”<br> required_providers {<br> aws = {<br> source = “hashicorp/aws”<br> version = “~&gt; 5.0”<br> }<br> }<br> }<br> provider “aws” {<br> region = var.aws_region<br> }</p><h3>variables.tf</h3><p>variable “aws_region” { type = string default = “eu-west-2” }<br> variable “project_name” { type = string default = “terraform-aws-infra” }<br> variable “environment” { type = string default = “dev” }</p><h3>outputs.tf</h3><p>output “vpc_id” { value = module.vpc.vpc_id }<br> output “public_subnets” { value = module.vpc.public_subnet_ids }<br> output “alb_dns_name” { value = module.alb_asg.alb_dns_name }</p><h3>main.tf</h3><p>module “vpc” {<br> source = “./modules/vpc”<br> project_name = var.project_name<br> environment = var.environment<br> aws_region = var.aws_region<br> }<br> module “security_groups” {<br> source = “./modules/security_groups”<br> vpc_id = module.vpc.vpc_id<br> project_name = var.project_name<br> environment = var.environment<br> alb_cidr_ingress = [“0.0.0.0/0”]<br> ssh_cidr_ingress = [“0.0.0.0/0”]<br> }<br> module “alb_asg” {<br> source = “./modules/alb_asg”<br> project_name = var.project_name<br> environment = var.environment<br> vpc_id = module.vpc.vpc_id<br> public_subnet_ids = module.vpc.public_subnet_ids<br> private_subnet_ids = module.vpc.private_subnet_ids<br> alb_sg_id = module.security_groups.alb_sg_id<br> ec2_sg_id = module.security_groups.ec2_sg_id<br> instance_type = “t3.micro”<br> desired_capacity = 2<br> min_size = 1<br> max_size = 3<br> }<br> module “storage” {<br> source = “./modules/storage”<br> project_name = var.project_name<br> environment = var.environment<br> }<br> module “monitoring” {<br> source = “./modules/monitoring”<br> project_name = var.project_name<br> environment = var.environment<br> asg_name = module.alb_asg.asg_name<br> }</p><p>Step 6: Add Module Code</p><h3>modules/vpc/main.tf</h3><p>locals { name_prefix = “${var.project_name}-${var.environment}” }<br> resource “aws_vpc” “this” {<br> cidr_block = “10.0.0.0/16”<br> enable_dns_hostnames = true<br> enable_dns_support = true<br> }<br> data “aws_availability_zones” “available” {}<br> resource “aws_subnet” “public” {<br> count = 2<br> vpc_id = aws_vpc.this.id<br> cidr_block = cidrsubnet(“10.0.0.0/16”, 4, count.index)<br> availability_zone = data.aws_availability_zones.available.names[count.index]<br> map_public_ip_on_launch = true<br> }<br> resource “aws_subnet” “private” {<br> count = 2<br> vpc_id = aws_vpc.this.id<br> cidr_block = cidrsubnet(“10.0.0.0/16”, 4, count.index + 2)<br> availability_zone = data.aws_availability_zones.available.names[count.index]<br> }<br> resource “aws_internet_gateway” “igw” {<br> vpc_id = aws_vpc.this.id<br> }<br> resource “aws_route_table” “public” {<br> vpc_id = aws_vpc.this.id<br> route {<br> cidr_block = “0.0.0.0/0”<br> gateway_id = aws_internet_gateway.igw.id<br> }<br> }<br> resource “aws_route_table_association” “public” {<br> count = 2<br> subnet_id = aws_subnet.public[count.index].id<br> route_table_id = aws_route_table.public.id<br> }</p><h3>modules/vpc/variables.tf</h3><p>variable “project_name” {}<br> variable “environment” {}<br> variable “aws_region” {}</p><h3>modules/vpc/outputs.tf</h3><p>output “vpc_id” { value = aws_vpc.this.id }<br> output “public_subnet_ids” { value = aws_subnet.public[<em>].id }<br> output “private_subnet_ids” { value = aws_subnet.private[</em>].id }</p><h3>modules/security_groups/main.tf</h3><p>locals { name_prefix = “${var.project_name}-${var.environment}” }<br> resource “aws_security_group” “alb” {<br> name = “${local.name_prefix}-alb-sg”<br> vpc_id = var.vpc_id<br> dynamic “ingress” {<br> for_each = var.alb_cidr_ingress<br> content {<br> from_port = 80<br> to_port = 80<br> protocol = “tcp”<br> cidr_blocks = [ingress.value]<br> }<br> }<br> }<br> resource “aws_security_group” “ec2” {<br> name = “${local.name_prefix}-ec2-sg”<br> vpc_id = var.vpc_id<br> ingress {<br> from_port = 80<br> to_port = 80<br> protocol = “tcp”<br> security_groups = [aws_security_group.alb.id]<br> }<br> dynamic “ingress” {<br> for_each = var.ssh_cidr_ingress<br> content {<br> from_port = 22<br> to_port = 22<br> protocol = “tcp”<br> cidr_blocks = [ingress.value]<br> }<br> }<br> }</p><h3>modules/security_groups/variables.tf</h3><p>variable “vpc_id” {}<br> variable “project_name” {}<br> variable “environment” {}<br> variable “alb_cidr_ingress” { type = list(string) }<br> variable “ssh_cidr_ingress” { type = list(string) }</p><h3>modules/security_groups/outputs.tf</h3><p>output “alb_sg_id” { value = aws_security_group.alb.id }<br> output “ec2_sg_id” { value = aws_security_group.ec2.id }</p><h3>modules/alb_asg/main.tf</h3><p>locals { name_prefix = “${var.project_name}-${var.environment}” }<br> data “aws_ami” “amazon_linux” {<br> most_recent = true<br> owners = [“amazon”]<br> filter {<br> name = “name”<br> values = [“al2023-ami-*-x86_64”]<br> }<br> }<br> resource “aws_lb” “this” {<br> name = “${local.name_prefix}-alb”<br> internal = false<br> load_balancer_type = “application”<br> security_groups = [var.alb_sg_id]<br> subnets = var.public_subnet_ids<br> }<br> resource “aws_lb_target_group” “this” {<br> name = “${local.name_prefix}-tg”<br> port = 80<br> protocol = “HTTP”<br> vpc_id = var.vpc_id<br> }<br> resource “aws_lb_listener” “http” {<br> load_balancer_arn = aws_lb.this.arn<br> port = 80<br> protocol = “HTTP”<br> default_action {<br> type = “forward”<br> target_group_arn = aws_lb_target_group.this.arn<br> }<br> }<br> resource “aws_launch_template” “this” {<br> name_prefix = “${local.name_prefix}-lt”<br> image_id = data.aws_ami.amazon_linux.id<br> instance_type = var.instance_type<br> network_interfaces {<br> security_groups = [var.ec2_sg_id]<br> }<br> user_data = base64encode(&lt;&lt;EOF<br> #!/bin/bash<br> yum update -y<br> yum install -y httpd<br> systemctl enable httpd<br> systemctl start httpd<br> echo “&lt;h1&gt;${local.name_prefix} running on $(hostname)&lt;/h1&gt;” &gt; /var/www/html/index.html<br> EOF<br> )<br> }<br> resource “aws_autoscaling_group” “this” {<br> name = “${local.name_prefix}-asg”<br> desired_capacity = var.desired_capacity<br> max_size = var.max_size<br> min_size = var.min_size<br> vpc_zone_identifier = var.private_subnet_ids<br> launch_template {<br> id = aws_launch_template.this.id<br> version = “$Latest”<br> }<br> target_group_arns = [aws_lb_target_group.this.arn]<br> }</p><h3>modules/alb_asg/variables.tf</h3><p>variable “project_name” {}<br> variable “environment” {}<br> variable “vpc_id” {}<br> variable “public_subnet_ids” { type = list(string) }<br> variable “private_subnet_ids” { type = list(string) }<br> variable “alb_sg_id” {}<br> variable “ec2_sg_id” {}<br> variable “instance_type” {}<br> variable “desired_capacity” {}<br> variable “min_size” {}<br> variable “max_size” {}</p><h3>modules/alb_asg/outputs.tf</h3><p>output “alb_dns_name” { value = aws_lb.this.dns_name }<br> output “asg_name” { value = aws_autoscaling_group.this.name }</p><h3>modules/storage/main.tf</h3><p>locals { name_prefix = “${var.project_name}-${var.environment}” }<br> resource “aws_s3_bucket” “app_bucket” {<br> bucket = “${local.name_prefix}-bucket”<br> }<br> resource “aws_dynamodb_table” “app_table” {<br> name = “${local.name_prefix}-table”<br> billing_mode = “PAYPERREQUEST”<br> hash_key = “id”<br> attribute {<br> name = “id”<br> type = “S”<br> }<br> }</p><h3>modules/storage/variables.tf</h3><p>variable “project_name” {}<br> variable “environment” {}</p><h3>modules/storage/outputs.tf</h3><p>output “s3_bucket_name” { value = aws_s3_bucket.app_bucket.id }<br> output “dynamodb_table_name” { value = aws_dynamodb_table.app_table.name }</p><h3>modules/monitoring/main.tf</h3><p>locals { name_prefix = “${var.project_name}-${var.environment}” }<br> resource “aws_cloudwatch_metric_alarm” “high_cpu” {<br> alarm_name = “${local.name_prefix}-asg-high-cpu”<br> comparison_operator = “GreaterThanThreshold”<br> evaluation_periods = 2<br> metric_name = “CPUUtilization”<br> namespace = “AWS/EC2”<br> period = 60<br> statistic = “Average”<br> threshold = 70<br> dimensions = {<br> AutoScalingGroupName = var.asg_name<br> }<br> }</p><h3>modules/monitoring/variables.tf</h3><p>variable “project_name” {}<br> variable “environment” {}<br> variable “asg_name” {}</p><h3>modules/monitoring/outputs.tf</h3><p>output “cpu_alarm_name” { value = aws_cloudwatch_metric_alarm.high_cpu.alarm_name }</p><p>Step 7: Run Terraform Commands</p><p>Init:<br> terraform init</p><p>Format:<br> terraform fmt</p><p>Validate:<br> terraform validate</p><p>Plan:<br> terraform plan</p><p>Apply:<br> terraform apply<br> yes</p><p>Step 8: Verify Deployment</p><ol><li>ALB shows a DNS name → open it in browser</li></ol><p>2. EC2 instances created inside Auto Scaling Group</p><p>3. VPC with 4 subnets (2 public, 2 private)</p><p>4. S3 bucket created</p><p>5. DynamoDB table created</p><p>6. CloudWatch alarm created</p><p>Step 9: Destroy Infrastructure</p><p>terraform destroy<br> yes</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e7d24426c4d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CI/CD on Autopilot: Jenkins, Docker AWS EKS & AWS EC2 for Seamless Deployment]]></title>
            <link>https://medium.com/@SagarTalwaray/automated-build-and-deployment-using-jenkins-maven-docker-and-tomcat-c7fd0a4e044f?source=rss-730977a4d702------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7fd0a4e044f</guid>
            <dc:creator><![CDATA[Sagar Talwaray]]></dc:creator>
            <pubDate>Mon, 20 Jan 2025 17:27:55 GMT</pubDate>
            <atom:updated>2025-01-29T14:07:24.810Z</atom:updated>
            <content:encoded><![CDATA[<p>This blogs contains steps to Automate build and deployment using Jenkins, Maven, Docker, and Tomcat. Integrated Ansible for container management, and deployed applications on AWS EKS, enabling seamless CI/CD pipelines and reducing deployment time by 40%.</p><p><strong>Steps:</strong></p><p>1. First install Jenkins (https://pkg.jenkins.io/redhat-stable/)<br> (Open port 8080 on server).<br> 2. Install Java (yum install fontconfig java-17-openjdk) or (amazon-linux-extras install java-openjdk11)<br> 3. Install Epel (amazon-linux-extras install epel) <br> 4. Install Jenkins (yum install jenkins)<br> start Jenkins, service jenkins start<br> <br> open in browser and use admin and password<br> 5. Install Git<br> yum install git<br> 6.Install Github plugins<br> 7. Configure git in tools<br> 8. Now you can pull code for github<br><br> <a href="https://pkg.jenkins.io/redhat-stable/">https://pkg.jenkins.io/redhat-stable/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zh-Z4xgID2R_clGs31nszw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q9gKcNXgv6EG5FTET9IAHQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sdhkfytmaIgGZ830wRYEoA.png" /><figcaption>allow only your ip to ssh.</figcaption></figure><p>9. Download apache maven (https://maven.apache.org/download.cgi)<br> under /opt<br> wget <a href="https://dlcdn.apache.org/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.tar.gz">https://dlcdn.apache.org/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.tar.gz</a><br> <br> then <br> tar -xvzf (file name)<br> use mv<br> <br> then<br> /opt/maven/bin<br> ./mnv -v<br> <br> then change the home path under root/ ll -a, .bash_profile<br> vi .bash_profile<br> <br> M2_HOME=/opt/maven</p><p>M2=/opt/maven/bin</p><p>JAVA_HOME=/usr/lib/jvm/java-11-openjdk-11.0.23.0.9–2.amzn2.0.1.x86_64</p><p># User specific environment and startup programs</p><p>PATH=$PATH:$HOME/bin:$JAVA_HOME:$M2_HOME:$M2<br> <br> then save it<br> echo $PATH<br> source .bash_profile</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*idNh0feCR2oSvbODXigVCA.png" /></figure><p>Install epel, java and Jenkins<br> <br> amazon-linux-extras install epel<br> <br> amazon-linux-extras install java-openjdk11<br> java — version<br> <br> yum install Jenkins<br> service jenkins status<br> service jenkins status</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YXg5DUHSNqffcHEN7aur5A.png" /></figure><p>open public ip<br> <br> 35.154.185.103:8080</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*FeOnEdqAaeCcl5UF-pXxGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*NKCBcEObIpX2Inewo5WjCw.png" /></figure><p>10. Install Maven plugin in Jenkins (Maven Integration)<br> 11. Configure JDK and Maven Tool, specify home path)<br> 12. Build using maven, select github path, choose clean install (goals and option)<br> <a href="https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html">https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html</a><br> <br> 13. We get .war artifact under target folder in workspace</p><p>Don’t select anything</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MScxT3GDN1NcCkQUUPmLFQ.png" /></figure><p>username will be admin<br> password can be found at (cat /var/lib/jenkins/secrets/initialAdminPassword)</p><p>Run First Jenkins Job</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n1ksmCBkuzkZj4G09dF79A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ioW9btRx830Ehy-GxrbWBg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PY5iESB6PyzqDbP9Wtkwiw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wznQNwP6IZkIT2pvVszKRA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5cxh0tZyig3P1bfEtNjvDw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zAqU7BknUD4zAR5CZ0hl8w.png" /></figure><p>Select the green tick mark</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XKW6KTdwsXkBRlf_vo0VbQ.png" /></figure><p>Now Install Git</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*nF-_QoGkdgBDKrNX4dE_Aw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*9KBK-UBXgg1F5DGJ9lOyTg.png" /></figure><p>Integrate Git with Jenkins</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3EaEHpZtLA4-f5nD0scXUw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CNZ5WW2lACbHeSmUGH2NpA.png" /></figure><p><a href="https://www.jenkins.io/doc/book/platform-information/support-policy-java/">https://www.jenkins.io/doc/book/platform-information/support-policy-java/</a><br> Upgrade: <a href="https://www.jenkins.io/doc/book/platform-information/upgrade-java-to-17/">https://www.jenkins.io/doc/book/platform-information/upgrade-java-to-17/</a><br> <br> <a href="https://www.jenkins.io/blog/2023/05/30/operating-system-end-of-life/">https://www.jenkins.io/blog/2023/05/30/operating-system-end-of-life/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sWuwBJJLJLqMEbaNmK98lg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CR2x4hK7RVtD-c2c5goE9Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9QDvTJAl5ssGYR39hM94qg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KWFc0Tcvq47AWG1OX-sFMQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6FDR3g3svw7nZd1KR1GU4w.png" /></figure><p>Along with github plugins it install other plugins, because they all are dependencies</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_fOYdn8YW3vs5deF3sm3Wg.png" /></figure><p>Now we need to configure Jenkins</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*erKs_sM5eyROdWKS8zasNg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mNjMJfhbVDaUMx8TWflBAA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8bL4A_KDuDTHzEBcrmMeFg.png" /></figure><p>If the git command doesn’t work and mention the path</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*IebKNBRjoobIqFK8agGTcg.png" /></figure><p>Now we have integrated github with Jenkins<br> <br> Run Jenkins job to pull code from Github</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qudf2SM5tcIib_polHtpjw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6P_CZU4IttIyrv5AUpUCjw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DC7vLzFiPp8_WwXzZ2uT4A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1LkZh7uP8efk-pPuOv-i9w.png" /></figure><p>Fork(Copy) the repository under your account by clicking on Fork button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AxamFfN1SI0yeEsvsrKZCg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LYiltLxRdW2z2amp3UghRA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hpVfeeeefP3E10dZ5jL8lw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lpOmLXcrTjAmIvNHxRiTIQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UzWNU9BUUx57c-uelbiLNg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UzWNU9BUUx57c-uelbiLNg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wAaXPxHe3tbR8m-ZjKTsbg.png" /></figure><p>Whenever Jenkins do any build activity It comes under workspace<br> Path<br> /var/lib/jenkins/workspace/</p><p>You can now see the same content that is in your github account.</p><p><strong>Integrate Maven on Jenkins</strong><br> <br> Steps<br> Setup maven on Jenkins server<br> Setup Environment Variables<br> Java_Home, M2 and M2_home (maven Environment variables)<br> Install Maven Plugins<br> Configure Maven and Java</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tnsKU-JNrcGvv6VImwZzbQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zsIOV6YCEucq9g15RaelTQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5ck7XuHTA0Qf4O4b7RcDhg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NU2QJwkDEgk5GPKHcvDTnQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dg4qZoonki1LpkVOv6ij5A.png" /></figure><p>Check path of Java</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*temq89ZVBuH4MjLo7Gv0bA.png" /></figure><p>We now make changes in the environment varible, .bash_profile</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*mgFOai1VPrn5LxDGzZljow.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RFyMrWAW7O7ZtPCFS-wicA.png" /></figure><p>M2_HOME: where the apache maven is available<br> M2: Binary director<br> JAVA_HOME: Where java is the located<br> <br> We then tell PATH to load these values, $ means we specify the path mentioned above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c6GnRepfKV8nTAAXkTX-SQ.png" /></figure><p>source command will read the bash profile again<br> <br> now we can run Maven under the home path.<br> <br> We need to tell Jenkins GUI that Maven and java are available under the specified path.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vXdOxMXxPDMnnBjJhkBRZA.png" /></figure><p>First, install maven plugins</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fCKw9r-aRiyGASUUI_NVTA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8uSGcKtazl-9cOs1xN7gaw.png" /></figure><p>Now add the path In Jenkins</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-bdPduC4ap5fPB07XBp3VQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HnZSUQqu81TtaKCzUQiB4w.png" /></figure><p>Done<br> <br> Build a java Project using Jenkins.<br> <br> We need to create build job so that we can build our source code pulled from github.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pKd1Epw-IOLOPHZYn8CtTQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_LzptcvZ5WIas75eXnvI-g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7g61-Q5QcajduCtW49INrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pu0LLxLc0VZYriLtQb444Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3JJLtvPy46TG6oJYd3Z5dw.png" /></figure><p>Default</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ol6JdGX4VdmCcxE0B96n2Q.png" /></figure><p>Install is used to creates package and store it in local repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4cd_BN-9DDelpOLgLl1YEw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oO-sq3gjlUe43SFl7M8uqQ.png" /></figure><p>It pull code from github and builds with help of maven.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zRScEsSfYPyH7CxDfCQ-Xg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qo-HyLCySDC2ewlG2mi-gw.png" /></figure><p>Before building it identifies what are the dependencies needed and will install it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HTinbSByVFyKUn88XuQfaw.png" /></figure><p>Under the target directory our build output is stored.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*6kJk-d9mnGIpKSxSb8OoZA.png" /></figure><h3>we can also check in GUI.<br> <br> Test cases are stored under surefire, surefire plugins and reports are stored.</h3><p>This codes generate .war file as output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FaDlPyg0X2OyDxQ3bM-L3w.png" /></figure><p><strong>We have setup Jenkins, we have pulled code from GitHub and then build with the help of maven and it generated an artifact.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7fd0a4e044f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Cloud computing and why one must learn AWS asap!]]></title>
            <link>https://medium.com/@SagarTalwaray/what-is-cloud-computing-and-why-one-must-learn-aws-asap-a852dfd0fba4?source=rss-730977a4d702------2</link>
            <guid isPermaLink="false">https://medium.com/p/a852dfd0fba4</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[amazon-web-services]]></category>
            <category><![CDATA[storage]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Sagar Talwaray]]></dc:creator>
            <pubDate>Sun, 29 Aug 2021 14:56:25 GMT</pubDate>
            <atom:updated>2021-08-29T14:57:03.305Z</atom:updated>
            <content:encoded><![CDATA[<p>What is Cloud?</p><p>We all must have come across this question and we all come up with the same old answer that is Iaas, Paas, and Saas. Well if someone asks me I would simply tell them using one example.</p><p>Suppose you are running an MNC or a small business company.</p><p>You have a requirement for let&#39;s say 1000 PCs. Each pc has a storage requirement of 5 TB and also has applications installed in them. They need to be centrally managed(all of them in a single private network) all must be separated as per their environment (Production, Development, Quality). Now imagine the cost involved in order to maintain these servers on your own! and you will constantly worry about the security and also there are chances the hard disk may get corrupted and important data can be lost!</p><p>Now keeping all these things in mind, a cloud company approaches you and tell you that not to worry about the data, we will store it in such a way that data can be recovered at any time, you just work on building your application rest everything we will be taken care by us!</p><p>That&#39;s Cloud computing for you!</p><p>Now, why AWS?</p><p>Well AWS has been ruling the cloud sector since 2006 that&#39;s almost 15 years and since then it&#39;s only been improving on providing better and faster solutions to the customers. AWS provides more than 150 services that not only include storage services but also ML and data analytics etc. Customers can choose different storage classes based on their requirements that is from s3 standard, Infrequent access, one-zone infrequent access, glacier and glacier deep archive for long-term storage.</p><p>We can also launch any Instance quickly in different AZ for high availability and region of our choice. Right AWS has 81 AZ’s and 25 regions. Have Quick insights using Athena and QuickSight together. Jus like these many more!. Also, the storage cost is cheaper compared to other cloud providers. Because of all these reasons, most companies are migrating their storage to AWS. More customers mean more demand for AWS engineers!</p><p>So what are you waiting for open your free tier account and try to perform hands-on on as many services as possible?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a852dfd0fba4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My AWS Interview Experience/Questions as fresher!]]></title>
            <link>https://medium.com/@SagarTalwaray/my-aws-interview-experience-6476e1bb52e8?source=rss-730977a4d702------2</link>
            <guid isPermaLink="false">https://medium.com/p/6476e1bb52e8</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[questions]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[amazon-web-services]]></category>
            <dc:creator><![CDATA[Sagar Talwaray]]></dc:creator>
            <pubDate>Sat, 28 Aug 2021 09:19:27 GMT</pubDate>
            <atom:updated>2021-08-28T11:11:52.832Z</atom:updated>
            <content:encoded><![CDATA[<p>Good news for those who are looking for a job after clearing saa c02 cert!!!</p><p>A few days back I cleared my saa c02 exam on 10th December, after clearing the exam I started looking for a job, for the first few days I thought it will not be easy to get a job as for the position I was applying for was having at least 100–200 candidates applying for the same position, what I saw was that the cert does give u upper hand for selection the company was also asking for an experience which I didn’t have in this field, lost and worried about the job, I decided to also study for full stack developer position as I saw many positions for that, but luckily my friend suggested to apply on LinkedIn And to my surprise after applying for few jobs One of them which I had applied was at startup company, the founder himself messaged me after one hour and told me to send the Resume to the HR team after 3 hours I got a call from the team for an interview I got really nervous as I hadn’t given any interview since one year, anyway I quickly prepared for few questions like tell me about yourself, etc….</p><p>Talking about Interview</p><p>The interview was really intense, he asked about everything every service that saa exam tests you on, so I explained to him the services which I learned from neals course, aws faqs and documentation, other questions were</p><ol><li>How many edge locations are there?</li></ol><p>2. How many AWS AZs and regions are there?</p><p>3. From which region u launched your ec2?</p><p>4. Diff between S3 and EBS and EFS, which one u uses with ec2 and more deep questions.</p><p>5. Can we detach root volume from ec2?</p><p>6. What is cloud computing, explain in your own words.</p><p>7. Diff between Security groups and NACL.</p><p>8. Steps to launch EC2 instance.</p><p>9. What is VPC and Subnet?</p><p>10. what is Cloudwatch and lambda function?</p><p>The interview lasted for 1 hour 15 mins, he asked me about everything!!!</p><p>Coming to other skills asked by the interviewer.</p><p>I had done a course on Linux, btw I recommend everyone to gain some knowledge about Linux (must)</p><p>He asked me about my past experience, I told him I am fresher (2019 pass out)</p><p>Took one year to study aws, linux python, Jenkins, html, CSS, java.</p><p>Don’t worry about the skills you need not know all of them</p><p>The main ones are aws and Linux but I suggest everyone add more skills at least go through the definition and basic idea, no need to have all the deep knowledge, the company will only need you aws and Linux skills mostly but if you add more skills they might prefer you more than other</p><p>128 candidates applied for the same job position and I got selected from them, I think because of my cert and my additional skills so make sure u add them.</p><p>My background:</p><p>I have completed my BE in dept. of EXTC in 2019. Was confused about which path to choose, so one of my mentors suggested me Aws platform then I started preparing for the exam.</p><p>My job profile</p><p>Cloud Engineer: Migrating SAP HANA Databases to AWS</p><p>My suggestion to all freshers or those who are planning to get a place in AWS cloud platform</p><p>1.Definitely get certified (saa c02)</p><p>2. Get knowledge about Linux</p><p>These two are a must and then also add your other skills or just add the one which I added.</p><p>Sources I referred for the exam</p><p>1. Neal Davis course and practice tests</p><p>2. Stephane course and practice tests</p><p>3. Whizlabs course and practice tests</p><p>4.Jon Bono&#39;s practice tets</p><p>Yes, I did study all of them but it&#39;s not required u can clear the exam with just the neals course and practice exam and Jon Bono&#39;s practice tests easily, the exam is easy compared to them.</p><p>ALL the best to everyone on the same journey don’t lose hope, remember the cert does carry value simultaneously also work on diff skills.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6476e1bb52e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>