<?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 Drnetdo on Medium]]></title>
        <description><![CDATA[Stories by Drnetdo on Medium]]></description>
        <link>https://medium.com/@drnetdo?source=rss-68dffe8f321b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*n7e68uzThKmMLym3</url>
            <title>Stories by Drnetdo on Medium</title>
            <link>https://medium.com/@drnetdo?source=rss-68dffe8f321b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 10:59:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@drnetdo/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[AWS|EC2, EBS, S3, AND RDS]]></title>
            <link>https://medium.com/@drnetdo/aws-ec2-ebs-s3-and-rds-6638dc8c111d?source=rss-68dffe8f321b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6638dc8c111d</guid>
            <dc:creator><![CDATA[Drnetdo]]></dc:creator>
            <pubDate>Sat, 01 Apr 2023 16:59:00 GMT</pubDate>
            <atom:updated>2023-04-01T16:59:00.386Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Project title:</strong></p><p><em>Migration of a Workload running in a Corporate Data Center to AWS using the Amazon EC2 and RDS service</em></p><p><strong>Project description:</strong></p><p>In another project based in a real-world scenario, I acted as the Cloud Specialist responsible for migrating a workload running in a Corporate DataCenter to AWS.<br> The application and database were migrated to AWS using the Lift &amp; Shift (rehost) model, moving both application and database data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IUtZKDJGH636FtnjEUaSlg.png" /><figcaption>On Lift to Cloud Migration</figcaption></figure><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 (ensure the operation of the application and user access</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fdXk-sdxbc_48Hbf-fydgg.png" /></figure><p><strong>Implementation Steps and Processes</strong><br> <br> <strong># VPC Provisioning</strong><br> <br> — Created a VPC:<br> <br> — CIDR Block: <strong><em>10.0.0.0/16</em></strong><br> PS: It should NOT overlap with on-premises or other cloud providers<br> <br> — VPC Name: <strong><em>vpc-production-1</em></strong><br> <br> — Public subnet details:<br> <br> <strong><em>vpc-production-1-pu-1 (Public</em></strong>)<br> CIDR Block: <strong><em>10.0.0.0/24</em></strong></p><p>- <strong>Private subnet details</strong>:<br> <br> <strong><em>vpc-production-1-pv-1 (Private</em></strong>)<br> CIDR Block: 10.0.1.0/24<br> <br> <strong><em>vpc-production-1-pv-2 (Private)<br> CIDR Block: 10.0.2.0/24</em></strong></p><ul><li>Creating an Internet Gateway, Attaching it to a VPC and Creating an Route<br> <br> <strong><em>VPC | Internet Gateway: igw-mod3 | Action: Attach to VPC (vpc-production-1)<br> VPC | Route Table | Routes | Edit routes | Add route: 0.0.0.0/0 — Target: Internet Gateway (igw-mod3)<br> </em></strong><br> <strong># EC2 Provisioning</strong>( )<br> — <strong><em>Created a new EC2 instance<br> </em></strong><br> — Amazon Machine Image: <strong><em>Ubuntu 18.04</em></strong><br> — Instance type: <strong><em>t2.micro</em></strong><br> — Instance details:<br> — Network: <strong><em>vpc-production-1</em></strong><br> — Subnet: <strong><em>vpc-production-1-pu-1 (Public)</em></strong><br> — Assign public ip: <strong><em>Enable</em></strong><br> — Tags:<br> — hostname: <strong><em>awsuse1app01</em></strong><br> — environment: <strong><em>bootcamp</em></strong><br> — Configure security group:<br> — Port: <strong><em>22 — Source: 0.0.0.0/0</em></strong><br> — Port: <strong><em>8080 — Source: 0.0.0.0/0</em></strong><br> <strong># RDS Provisioning ()</strong><br> <br> — <strong><em>Created a RDS instance</em></strong><br> <br> — <strong><em>MySQL<br> — MySQL 5.7.30</em></strong><br> — Templates: <strong><em>free-tier</em></strong><br> — Settings:<br> — DB Instance: <strong><em>awsuse1db01</em></strong><br> — Master username: <strong><em>adxxn</em></strong><br> — Master password: a<strong><em>dminxxxxxx</em></strong></li><li>- DB instance class: <strong><em>db.t2.micro</em></strong><br> — Storage: <strong><em>20 GB</em></strong><br> — Connectivity:<br> — VPC: <strong><em>vpc-production-1</em></strong><br> — Public access: <strong><em>No</em></strong><br> — <strong><em>Create new VPC security group</em></strong><br> — New VPC security group name: <strong><em>sec-group-db-01</em></strong><br> — Availability Zone: <strong><em>us-east-1a</em></strong></li><li><strong>Hands-on Project Solution — Part 2</strong><br> <br> # Pre-requisites steps to run in the EC2 instance (Application Server)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0I8TsdHaqWngsxKuZw-iig.jpeg" /><figcaption>Git Bash in VSCode Terminal Win1</figcaption></figure><p><strong><em>sudo apt-get update<br> sudo apt-get install python3-dev -y<br> sudo apt-get install libmysqlclient-dev -y<br> sudo apt-get install unzip -y<br> sudo apt-get install libpq-dev python-dev libxml2-dev libxslt1-dev libldap2-dev -y<br> sudo apt-get install libsasl2-dev libffi-dev -y</em></strong></p><ul><li><strong><em>curl -O </em></strong><a href="https://bootstrap.pypa.io/pip/3.6/get-pip.py"><strong><em>https://bootstrap.pypa.io/pip/3.6/get-pip.py</em></strong></a><strong><em> ; python3 get-pip.py — user<br> <br> export PATH=$PATH:/home/ubuntu/.local/bin/<br> <br> pip3 install flask<br> pip3 install wtforms<br> pip3 install flask_mysqldb<br> pip3 install passlib<br> <br> sudo apt install awscli -y<br> sudo apt-get install mysql-client -y</em></strong></li><li><strong>Hands-on Project Solution — Part 3</strong><br> <br> <strong>#Simulated: </strong>Steps to run during the “dry-run &amp; cutover”:<br> <br> — Open port RDS security group:</li><li>- Type: <strong><em>MySQL/Aurora</em></strong><br> — Source: <strong><em>0.0.0.0/0</em></strong><br> (<strong>only for bootcamp purposes</strong> !!- in production env, you should open the ports to the application server IPs only)<br> <br> — Connect to the EC2 instance<br> <br> <strong><em>$ ssh ubuntu@&lt;PUBLIC_IP&gt; -i &lt;ssh_private_key</em></strong>&gt;<br> <br> — Download the dump file and app file<br> <strong><em><br> wget </em></strong><a href="https://tcb-bootcamps.s3.amazonaws.com/bootcamp-aws/en/wikiapp-en.zip"><strong><em>https://tcb-bootcamps.s3.amazonaws.com/bootcamp-aws/en/wikiapp-en.zip</em></strong></a><strong><em><br> wget </em></strong><a href="https://tcb-bootcamps.s3.amazonaws.com/bootcamp-aws/en/dump-en.sql"><strong><em>https://tcb-bootcamps.s3.amazonaws.com/bootcamp-aws/en/dump-en.sql</em></strong></a><strong><em><br> </em></strong><br> — Connected on MySQL running on AWS RDS<br> <br> <strong><em>mysql -h &lt;RDS_ENDPOINT&gt; -P 3306 -u admin -</em></strong>p<br> <br> — Create the wiki DB and import data<br> <br> <strong><em>create database wikidb;<br> use wikidb;<br> source dump-en.sql;</em></strong></li><li>— Created the user wiki in the wikidb<br> <br> <strong><em>CREATE USER wiki@’%’ IDENTIFIED BY ‘wiki123456’;<br> <br> GRANT ALL PRIVILEGES ON wikidb.* TO wiki@’%’;<br> <br> FLUSH PRIVILEGES;</em></strong><br> <br> — Unzipped the app files<strong><em><br> <br> unzip wikiapp-en.zip</em></strong><br> <strong><em>cd wikiapp<br> </em></strong><br> — Edited the wiki.py file and change the MYSQL_HOST and point to the RDS endpoint.<br> <br>- Bring up the application<br> <br> <strong><em>python3 wiki.py</em></strong><br> <br> Steps to validate the migration:<br> <br> — Open the AWS console, copy the public IP and test the application using:<br> <br> &lt;<strong><em>EC2_PUBLIC_IP&gt;:8080</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*DOj8jtAWqLssSn8oAv_9aQ.png" /><figcaption>Working Website</figcaption></figure><ul><li>- Login to the application (user:xxx / password: xxx<strong><em>)</em></strong></li><li>- Create a new article <strong><em>vi wiki.py</em></strong></li><li>My initial attempt resulted didn’t yield the connection</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*STc5hnMBT5_p0S6VZy-11A.png" /><figcaption>Browser 1 Chrome</figcaption></figure><p>Another attempt was made after clearing cache and changing browsers</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*W9nLw47h5qrJO3RWYs1m3Q.png" /><figcaption>Browser 2 FireFox</figcaption></figure><p>And as well</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*CSAsUK7FQeEJ-kf8_Agg4A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*lx-NgqdgWlQ7SqYX48O-bg.jpeg" /><figcaption>Security group is required for the AMI to function</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*LhqY4m9Tl1UNtrqvjjKrQA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5GPXsL8WAiAqtx2Vusxxcw.jpeg" /></figure><p>After reexamination of Permissions and Policies</p><ul><li>A new article 6th on list was created by the application running on AWS</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*XOvGkrRbFhRkOi5D17VGBw.png" /><figcaption>Over the months to come more evidences with be posted</figcaption></figure><p>Thanks for browsing my work…..sah</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6638dc8c111d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>