<?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 Ayush Patel on Medium]]></title>
        <description><![CDATA[Stories by Ayush Patel on Medium]]></description>
        <link>https://medium.com/@ayush7.ap?source=rss-346d65f12609------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*JrNcNH9Ni84uVbKP9lc_Lg.jpeg</url>
            <title>Stories by Ayush Patel on Medium</title>
            <link>https://medium.com/@ayush7.ap?source=rss-346d65f12609------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 05:39:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ayush7.ap/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[Migration of a Workload running in a Corporate Data Center to AWS using the Amazon EC2 and RDS…]]></title>
            <link>https://medium.com/@ayush7.ap/migration-of-a-workload-running-in-a-corporate-data-center-to-aws-using-the-amazon-ec2-and-rds-8c0f7897e2d9?source=rss-346d65f12609------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c0f7897e2d9</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Ayush Patel]]></dc:creator>
            <pubDate>Thu, 27 Apr 2023 00:56:39 GMT</pubDate>
            <atom:updated>2023-08-31T06:16:30.614Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>Migration of a Workload running in a Corporate Data Center to AWS using the Amazon EC2 and RDS service</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MYrkt1lvCnZ1olMs3npi1w.png" /></figure><p>In another project based on a real-world scenario, I acted as the Cloud Specialist responsible for migrating a workload running in a Corporate data center to AWS.</p><p>The application and database were migrated to AWS using the Lift &amp; Shift (rehost) model, moving both application and database data.</p><p>I followed some migration steps: Planning (sizing, prerequisites, resource naming), Execution (resource provisioning, best practices), Go-live (validation test — Dry-run, final migration — Cutover), and Post Go-live (ensuring the operation of the application and user access).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Y_jNDDOvBs6UwkMYSFa2g.png" /></figure><p>In the context of a cloud engineering project, planning and preparation matter. It is important to plan and execute each stage of the migration process carefully to minimize disruption to the organization’s operations and ensure a successful transition to the cloud environment.</p><p>The migration process can be broken down into four stages:</p><p><strong>Planning Stage </strong>— In order to ensure a successful deployment of the application from the on-premises environment to the cloud, you must carefully plan the sizing and prerequisites for the application. This involves working closely with stakeholders such as application owners, system administrators, and cloud providers to gather the necessary information and ensure that all requirements are met.</p><p>Resources such as CPU, memory, storage, and network bandwidth must be provisioned to support the migration. Factors such as the compatibility of the applications, target cloud environment, security, compliance considerations, and any necessary modifications or updates to the applications need to be addressed respectively. The ultimate goal is to minimize downtime and disruption to the application during the deployment process.</p><p><strong>Implementation Stage</strong> — The implementation stage involves moving data, applications, and other resources from the current on-premises environment to the target cloud platform. It is important to ensure that data is migrated securely from the source to the destination. Applications may be reconfigured to work optimally in the cloud environment. Current infrastructure must be accessed to determine the required resources, the cost, and the timeline of the migration process. You will need to test the migration on a small scale to identify any bottlenecks and to ensure the migration works as expected and meets the organization’s requirements. The testing helps to ensure data integrity during the actual migration. Also, optimizing resource utilization, adjusting configurations, and implementing automation tools after the migration cannot be overlooked.</p><p><strong>Go Live Stage</strong> — This is the “dry-run” and “cutover” process and it is a common approach used during the migration of applications or workloads to a new environment or platform.</p><p>The “dry-run” is the first phase of the actual migration. Here, the applications and database files are imported from the on-premises environment to an AWS S3 bucket in the cloud. To optimize the process, you can simply install the AWS CLI (Command Line Interface) on one of the on-premises systems to upload the files much quicker to the S3 bucket. After the files are within the cloud environment, you can proceed to import them to the EC2 instance (Application Server) and the MySQL database respectively. The “dry-run” period basically allows you to do all necessary adjustments or collections to ensure that the migration is successful.</p><p>“Cutover” on the other hand, is the actual or final migration once the dry-run is complete. This involves moving the applications or workloads from the source environment to the production environment. This is where you keep your fingers crossed to avoid unexpected irregularities that may disrupt the migration process.</p><p><strong>Post-Go-Live Stage</strong> — This stage is a critical phase of the migration process. It involves ensuring that the migrated applications and data are functioning correctly in the new cloud environment and that any issues that arise are resolved promptly. Some essential activities at this stage involve setting up monitoring tools to track key metrics such as response times, resource utilization, and error rates. Unexpected anomalies or issues that were missed during the pre-migration test phase must be investigated and corrected at this stage. Continuous security, maintenance tasks, and updates must also be addressed during this period.</p><p>With the four stages of migration explained, let’s get our hands dirty via my go-to friend, the AWS Management Console for this real-world scenario hands-on exercise.</p><p>The Project Below:</p><p>On the AWS console, I created a VPC (Virtual Private Cloud) with three subnets (one public, two private, and a customized Route table).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*ckPk5v-F9V6RYxtz.png" /></figure><p>VPC, Subnets, and Route Table</p><p>After setting up the necessary components, I proceeded to establish an Internet Gateway and attached it to the VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*SLWmcYm0c6WXfovl.png" /></figure><p>Internet Gateway Attached to VPC</p><p>I also created an EC2 instance running Ubuntu 18.04 operating system and connected it to the VPC public subnet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*6ysPliivhqV88eWK.png" /></figure><p>Ubuntu EC2 Instance Running on T2.Micro</p><p>To ensure that I have everything in place for the migration, I created a MySQL database using the MySQL engine and deployed it in one of the private subnets of the Virtual Private Cloud (VPC) with a security group for added protection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*nHsJnqAcpPtT2Ydm.png" /></figure><p>MySQL Database With MySQL Engine</p><p>After completing the setup, I established a secure connection to the Ubuntu EC2 instance using the bash terminal and a private key pair. Once connected, I updated the instance to prepare for the migration</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*oFtK3Bx2vuPYd_cF.png" /></figure><p>SSH Connection to EC2 Application Server</p><p>I established another secured connection to the MySQL database, created a database table, and a new user with privileges. These are important for ensuring that the EC2 instance (Application Server) is properly connected to the database server (MySQL server) and that data can be stored and retrieved securely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*uoF18R2EoWKmhYhs.png" /></figure><p>Database Table on MySQL</p><p>I connected the Application server to the MySQL database via a configuration file and ran the python3 wiki.py script to validate the connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*xVP3Lu6j9nTcoCi5.png" /></figure><p>Application Connection to MySQL Database in The Cloud Environment is Successful</p><p><strong>Conclusion</strong></p><p>Amazon EC2, VPC, RDS, MySQL, and Internet Gateway are powerful tools that can be used together to create a robust and scalable cloud infrastructure. By leveraging the benefits of these technologies, businesses can achieve significant cost savings, improve their ability to scale and respond to changing demands, and enhance the security and reliability of their IT infrastructure.</p><p>Moreover, automating cloud infrastructure management can further optimize these benefits, enabling businesses to improve efficiency, reduce errors, and simplify management tasks. With automation tools like Amazon CloudFormation, businesses can quickly and easily create and manage complex infrastructure, reducing the time and resources required to deploy new applications and services.</p><p>Overall, utilizing Amazon’s cloud infrastructure and automation tools can provide businesses with a competitive advantage in today’s fast-paced digital landscape, enabling them to stay ahead of the curve and meet the ever-evolving needs of their customers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c0f7897e2d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automated user migration and management of AWS Identity and Access Management (IAM) resources]]></title>
            <link>https://medium.com/@ayush7.ap/automated-user-migration-and-management-of-aws-identity-and-access-management-iam-resources-4e04db6dfc9e?source=rss-346d65f12609------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e04db6dfc9e</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Ayush Patel]]></dc:creator>
            <pubDate>Tue, 25 Apr 2023 22:51:33 GMT</pubDate>
            <atom:updated>2023-08-31T06:13:40.600Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jdK6qaygPGSPH-ajQu82ow.png" /></figure><p>In this project based on a real-world scenario, I acted as a Cloud Specialist with the mission to migrate users in an automated way and manage AWS IAM (Identity and Access Management) resources.</p><p>There were 100 users that needed to be migrated and have MFA (Multi-factor authentication) enabled on their accounts, as this is a security best practice.</p><p>I needed to automate the processes to avoid repetitive and manual tasks in the AWS console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AE_ZAX_PBZlbp9eByk9L8g.png" /></figure><p><strong>Steps in executing the project successfully.</strong></p><p><strong>Step 1:</strong> Convert the spreadsheet file that contains the list of users and their details and save it as a .csv file, ensuring that the first row includes column headers for each field (“user”, “group ”, “password”).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*YLyGjgIBUyQTuSlI.png" /></figure><p>Screenshot of Excel File.</p><p><strong>Step 2: </strong>Open CloudShell in the AWS console and import the users.csv file<strong>. </strong>This enabled the automation script to create the IAM users in AWS<strong>.</strong></p><p><strong>Step 3</strong>: Run the automated script in CloudShell to create all the users. The advantage of automation is to save time and improve the efficiency of work. Creating IAM users manually in the AWS console would be time-wasting and affect productivity negatively.</p><p><strong>Step 4</strong>: Verify from the IAM dashboard that the users were successfully created from the automation script that was run in CloudShell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*U_oBBYrHeHNqGxZd.png" /></figure><p>Screenshot of the users created in AWS.</p><p><strong>The second part of the project focused on ensuring that security best practices are in place and adhered to by all the users.</strong></p><p><strong>Step 5:</strong> Users are required to change the default password at first time they sign in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*9In3W2rLGtf-Ed_o.png" /></figure><p><em>Changing the default password is important for security because default passwords are often publicly known or easily guessed by attackers. Default passwords are typically created by vendors or manufacturers and are often the same across all devices or systems of a particular type, making them an easy target for attackers who are looking to gain access to a system or device.</em></p><p><em>Here are some reasons why changing the default password is important:</em></p><ol><li><em>Preventing unauthorized access: Changing the default password helps prevent unauthorized access to a system or device. Attackers can use default passwords to gain access to systems or devices and steal sensitive information or launch attacks on other systems.</em></li><li><em>Protecting against attacks: Changing the default password can also help protect against attacks like brute force attacks, where attackers try to guess passwords using automated tools. Default passwords are often well-known or easily guessed, making them a prime target for these types of attacks.</em></li><li><em>Compliance requirements: Many compliance standards and regulations require that default passwords be changed or disabled in order to meet security requirements. Failure to change default passwords can result in non-compliance and potentially costly penalties.</em></li></ol><p><strong>Step 6:</strong> Enabled Multifactor Authentication on the root users.</p><p><strong>Why the MFA in AWS?</strong></p><p><strong><em>Multi-factor authentication (MFA) </em></strong><em>is a security feature in AWS that adds an extra layer of protection to user accounts. With MFA, users are required to provide two or more forms of authentication when accessing AWS resources, such as a password and a unique code generated by a physical or virtual MFA device.</em></p><p><em>Enforcing MFA for users in AWS is important because it helps prevent unauthorized access to sensitive data and resources. Passwords can be compromised or stolen, but MFA adds an additional layer of security by requiring something the user has (e.g., a physical or virtual MFA device) and something they know (e.g., a password). T</em><strong><em>his makes it much more difficult for hackers or attackers to gain access to AWS resources,</em></strong><em> even if they manage to obtain a user’s password through phishing or other means.</em></p><p><em>MFA is especially important for users with high-level access to AWS resources, such as administrators, developers, or other privileged users, who have the ability to modify critical infrastructure and configurations. Enforcing MFA for all users, regardless of their level of access, is a best practice for security in AWS and helps ensure that only authorized users can access sensitive resources.</em></p><p><strong>Step 7:</strong> Testing that the MFA is working.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e04db6dfc9e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>