<?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 Toyeeb Adekunle on Medium]]></title>
        <description><![CDATA[Stories by Toyeeb Adekunle on Medium]]></description>
        <link>https://medium.com/@toyeebade62?source=rss-15774053825b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*VFI6m1efcUJWmFhY.</url>
            <title>Stories by Toyeeb Adekunle on Medium</title>
            <link>https://medium.com/@toyeebade62?source=rss-15774053825b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 06:04:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@toyeebade62/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[Implementation of an E-Commerce System on AWS in an automated way using Terraform and Ansible]]></title>
            <link>https://medium.com/@toyeebade62/implementation-of-an-e-commerce-system-on-aws-in-an-automated-way-using-terraform-and-ansible-b0b767831bda?source=rss-15774053825b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0b767831bda</guid>
            <dc:creator><![CDATA[Toyeeb Adekunle]]></dc:creator>
            <pubDate>Tue, 16 May 2023 05:49:26 GMT</pubDate>
            <atom:updated>2023-05-16T05:49:26.243Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c42Po6Sq_9iP_uAJ_-l6Xw.png" /></figure><p>In another project based on a real-world scenario, I worked as Cloud Engineer using DevOps, where I created and implemented an e-Commerce MVP (Minimum Viable Product) on AWS in less than 2 hours and in an automated way using Terraform and Ansible (Infrastructure as Code — IaC).</p><p>I provisioned the infrastructure in an automated way using Terraform and Ansible to automate the configuration management process, software installation, and package management of the EC2 instance. I also used Magento, PHP, MySQL, and Redis to complete this project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*maPof0YhnzOd4K1M8kIS2Q.png" /><figcaption>E-Commerce MVP deployment Architecture Solution</figcaption></figure><p>To begin this project, I registered on the Magento marketplace and set up an account to obtain access keys, which would allow me to configure Ansible for the e-commerce website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DhUOvXkqLLDLUcoqP5xpZw.png" /><figcaption>Magento Access Keys For Ansible Configuration</figcaption></figure><p>Once I obtained the Magento marketplace access keys, I initiated AWS CloudShell and proceeded to install Terraform, enabling me to provision the required resources for the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P63YmPhJlzzQQikQgZYLTg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5bRgk_XYgr-P9bf_THpvmw.png" /><figcaption>Terraform with source code Installation (run and unzip)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LAULQ21FKlKv4Sft0hsBKw.png" /><figcaption>CloudShell showing 2 resources provisioning complete</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZiqzDlsAL_5q4OjAA3hZUg.png" /><figcaption>AWS showing Resources Up and Running</figcaption></figure><p>Having installed the necessary resources, I accessed the e-commerce instance via SSH and provisioned it for Ansible installation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*Y6EZZnHv6_CZubtLPaozvA.png" /><figcaption>Instance connect using SSH key using Git Bash</figcaption></figure><p>I ranAnsible to deploy a stack of tools for the e-commerce website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*FKkm1fjh8tkIO_s6CTHoag.png" /><figcaption>Ansible Installation Successful</figcaption></figure><p>After the successful installation of Ansible, I connected to the Magento sign-in interface by entering the EC2 instance IP address in the URL: http://3.237.94.192<a href="http://44.199.243.86/securelocation">/</a>securelocation to configure the e-commerce website Organization’s requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*vbUqPR0CfSq8g9y-7zqzcg.jpeg" /><figcaption>Magento Sign-in Interface</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*qHOKYCwQ1XuFBkeGuAimrQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*-yo61s8wDks2ITmVxdPdUA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0b767831bda" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implement a set of EC2 instances using Terraform and AWS Systems Manager configuration with Amazon…]]></title>
            <link>https://medium.com/@toyeebade62/implement-a-set-of-ec2-instances-using-terraform-and-aws-systems-manager-configuration-with-amazon-91b34982ebce?source=rss-15774053825b------2</link>
            <guid isPermaLink="false">https://medium.com/p/91b34982ebce</guid>
            <category><![CDATA[visual-studio-code]]></category>
            <category><![CDATA[vpc]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-systems-manager]]></category>
            <category><![CDATA[terraform]]></category>
            <dc:creator><![CDATA[Toyeeb Adekunle]]></dc:creator>
            <pubDate>Thu, 11 May 2023 04:27:22 GMT</pubDate>
            <atom:updated>2023-05-11T04:27:22.411Z</atom:updated>
            <content:encoded><![CDATA[<h3>Implement a set of EC2 instances using Terraform and AWS Systems Manager configuration with Amazon Simple Notification Service for automated installation of security officers.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vKdof7cu7jfz9EzF6PRNpw.png" /></figure><p>In this project, based on a real-world scenario, I acted as DevSecOps Engineer and deployed a set of EC2 instances and infrastructure in an automated way using Terraform (infrastructure as code — IaC). Also, it was necessary to install a specific security agent on all these instances in an automated way.</p><p>After setting up the infrastructure, I employed AWS System Manager and its Command Run feature to automatically install security agents. To provide updates on the entire process, I utilized Amazon Simple Notification Service (SNS) to send an email notification.</p><p>AWS Systems Manager is a centralized platform for monitoring and managing AWS applications and resources. It offers a secure and comprehensive management solution for hybrid cloud environments, facilitating secure operations on a large scale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l5nIFDSszczl4WNhBGpnYA.png" /><figcaption>Solution Architecture</figcaption></figure><p>I utilized Terraform, an infrastructure-as-code (IaC) tool, to provision the infrastructure and instances. This was done through the AWS Cloud Shell, which provided a convenient environment for managing AWS resources through code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hC_JCs4zh-Bqrr6a67rKjg.png" /><figcaption>Installing Terraform and Infrastructure Provisioning using Cloud Shell</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jYaN84SKmAOD_MM6vnl3og.png" /><figcaption>Two EC2 Instances were Installed using Terraform.</figcaption></figure><p>My next step was to create an IAM role and assign the ‘AmazonSNSFullService’ policy to authorize the systems manager to utilize the Simple Notification Service (SNS) for sending email notifications. This allows the systems manager to send notifications seamlessly through SNS using the specified IAM role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cZD4sh2fFIKDPCBSUnIXpQ.png" /><figcaption>SNS Notification for Systems Manager Resources</figcaption></figure><p>To ensure the optimal performance of the project, I proceeded with configuring the System Manager Quick Setup. Specifically, I selected the Host Management option and manually designated the EC2 web server instances that were previously provisioned as the targets for this use case. By doing so, I set up the System Manager to effectively manage and monitor these specific instances as part of the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*4GIr0opuVD5yiyeJqkdurA.jpeg" /><figcaption>Configuration Deployment and Association Status</figcaption></figure><p>I used the System Manager Run Command feature to send email notifications to verify the successful configuration. For this purpose, I utilized a shell script (AWS-RunShellScript) to deploy the security agent installation. The script was explicitly configured to target the two EC2 web server instances and enable SNS notification using the ARN from the previously created SNS topic. By executing this command, I ensured the notifications were adequately set up and delivered to the desired recipients via email.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wn02f7LSnv6XiSSMIcexYg.png" /><figcaption>Security Agent Successfully Executed</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ENjxoHSK3qhHuwRUyXOktQ.png" /><figcaption>SNS Notifications by Email confirming the configuration</figcaption></figure><h4>Take away</h4><p>Combining Terraform, Systems Manager, EC2 instances, and Simple Notification Service (SNS) makes it possible to design and deploy an automated cloud architecture that offers numerous advantages. One key benefit is the time saved through automation, as manual tasks are executed automatically.</p><p>Moreover, automation reduces the risk of human error, resulting in enhanced efficiency and reliability. Minimizing the need for manual intervention makes the overall system more robust and less prone to mistakes.</p><p>In addition to the operational benefits, automating cloud architecture using these tools can also lead to cost savings. Organizations can achieve a more cost-effective solution by optimizing resource allocation and eliminating unnecessary expenses.</p><p>In conclusion, implementing a cloud architecture with Terraform, Systems Manager, EC2 instances, and Simple Notification Service (SNS) offers a highly efficient, reliable, and cost-effective approach to achieving automation in the cloud.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91b34982ebce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementation of a Scalable Web Application using the services of AWS Elastic Beanstalk, DynamoDB…]]></title>
            <link>https://medium.com/@toyeebade62/implementation-of-a-scalable-web-application-using-the-services-of-aws-elastic-beanstalk-dynamodb-eaf128651b41?source=rss-15774053825b------2</link>
            <guid isPermaLink="false">https://medium.com/p/eaf128651b41</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloudfront]]></category>
            <category><![CDATA[dynamodb]]></category>
            <category><![CDATA[elastic-beanstalk]]></category>
            <category><![CDATA[autoscaling]]></category>
            <dc:creator><![CDATA[Toyeeb Adekunle]]></dc:creator>
            <pubDate>Tue, 09 May 2023 23:23:11 GMT</pubDate>
            <atom:updated>2023-05-09T23:23:11.941Z</atom:updated>
            <content:encoded><![CDATA[<h3>Implementation of a Scalable Web Application using the services of AWS Elastic Beanstalk, DynamoDB, CloudFront, and Edge Location</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jwrZrCNy5zEFXLfYVkQKsg.jpeg" /></figure><p>In this project, based on a real-world scenario, I was responsible for implementing an application to support the high demand of many users accessing it simultaneously. This application has been used in a large conference that had more than 10,000 people, in-person and online, with participants from all over the world.</p><p>This event was broadcast online and in person, and ten vouchers were drawn for 3 Cloud certifications. At that moment, more than 10,000 people in the audience registered their emails to guarantee their participation in the raffle.</p><p>I created Elastic Beanstalk services to deploy the web application, DynamoDB to store emails, and CloudFront to cache static and dynamic files in an Edge Location close to the user.</p><p>CloudWatch was also provisioned to monitor CPU usage from EC2 instances to determine whether to launch additional instances to handle the increased workload from the 10,000-plus people registering.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0AZIMG6AnBEf-qgCpI_CDw.jpeg" /><figcaption>AWS Services Used</figcaption></figure><p>I began this project with the AWS portal to create a DynamoDB database. Then I created a table to store the user information.</p><p>After creating the table, the following tool in this project I used was <strong>Elastic Beanstalk</strong> <em>(using Python Platform. image below)</em> to provision an EC2 instance, load balancer, and the auto-scale group as needed for this project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*k-mz_sWrvVeXQZTn4O9q4Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*8PWU1yG_cAbABs5nbLnqVA.jpeg" /><figcaption><em>Python Platform</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*JFP7bWRFXhrTWq0K5YF1pQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*yB9-AYrn6sIjjLhW5xZEyg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*TrBaRProMtFxZmK1IZeiUw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*2TvVePrPWi6MPA5Zwk9Ibg.jpeg" /><figcaption>General Purpose (SSD) Instance Type</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*qqksafe5hWvMGcHcGyQLMw.jpeg" /><figcaption>Autoscaling Parameters</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*G3S4JBEor8_ChPkJcgbqug.jpeg" /><figcaption>Triggers for Autoscaling</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*YAZZLaark3sxoJTMj0JJAg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*MfOJt5VXGKL3dRGNBKBhnQ.jpeg" /><figcaption>ELB is set to Public to allow internet access to the application</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*Oberp9NcAqKmIqc28lTSkA.jpeg" /><figcaption>Elastic Beanstalk deployed and provisioned the environment</figcaption></figure><p>To test the application and see if it is running, I selected the link to preview in a browser to see if the registration page would display</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*qhhuruLnVZTLs9uynX3uPw.jpeg" /><figcaption>Registration Page</figcaption></figure><p>I tried doing a test registration but encountered an “Internal Server Error” message, which I then realized that I hadn’t set up a role so that the EC2 instance could write to the database.</p><p>I searched for the ‘aws-elasticbeanstalk-ec2-role’ role in the IAM console and attached the ‘AmazonDynamoDBFullAccess’ to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*Gu5_OnRWNEzBUgkDKgeD_Q.jpeg" /><figcaption>aws-elasticbeanstalk-ec2-role</figcaption></figure><p>After attaching the policy, I tried doing test registration again, and it was successful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mo4BGlD8kHsG84WGQUWy2A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B3EawnhadQhjhezaiIIC3Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l3NCM-Kcn60JxOA88LqCfw.png" /></figure><p>To confirm that the architecture was functioning as designed, a stress test was launched, from the Terminal, to emulate heavy traffic. Auto-scaling reacted as configured, adding an instance when needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9WJCH2-uF_aHXJzjCmeN9A.jpeg" /><figcaption>Stress test from Terminal</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*27EQZ7viOTzmC2-dKFw1Jw.jpeg" /><figcaption>Auto Scaling added a new instance.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eaf128651b41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <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/@toyeebade62/migration-of-a-workload-running-in-a-corporate-data-center-to-aws-using-the-amazon-ec2-and-rds-535199b76ad3?source=rss-15774053825b------2</link>
            <guid isPermaLink="false">https://medium.com/p/535199b76ad3</guid>
            <category><![CDATA[ec2-instance]]></category>
            <category><![CDATA[rds]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Toyeeb Adekunle]]></dc:creator>
            <pubDate>Sat, 06 May 2023 00:06:48 GMT</pubDate>
            <atom:updated>2023-05-06T12:53:19.119Z</atom:updated>
            <content:encoded><![CDATA[<h3>Migration of a Workload running in a Corporate Data Center to AWS using the Amazon EC2 and RDS service</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 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><p>Note: The <em>lift and shift</em> migration approach is one of several strategies available to organizations for migration. This approach involves lifting the organization’s applications from the existing on-premises infrastructure and shifting them to the cloud. However, it is crucial to acknowledge that lift and shift is not universally the most suitable migration strategy. Some applications may not function optimally in the cloud without certain architectural modifications, necessitating a compatibility assessment prior to migration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*b28ubqV4rQm73NTMiLJwUA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*xk9lFbVgIlCzo4ae0E0Prw.jpeg" /></figure><p>The details regarding both the on-site resources and the cloud-based resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ilIzkhPVPZWUT3sX1fMrrQ.jpeg" /><figcaption><strong>on-premises resources and the cloud resources</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_umiSeZc9lMmyzSecLKpXg.jpeg" /><figcaption>Planning Phase Prerequisite</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 (ensuring the operation of the application and user access).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*jnYG9XEqZCcK5n1d6Ieusw.gif" /><figcaption><strong>Summary of the pre-migration work</strong></figcaption></figure><p><strong>Pre-migration work:</strong></p><ol><li><strong>Planning Stage: </strong>To ensure a successful application deployment 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 all requirements are met.</li><li><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 essential 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.</li><li><strong>Go Live Stage</strong>: This is the “dry-run” and “cutover” process and is a common approach used when migrating applications or workloads to a new environment or platform. The “dry-run” is the first phase of the actual migration. 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 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 allows you to make all necessary adjustments or collections to ensure the migration succeeds. “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.</li><li><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 function correctly in the new cloud environment and that any issues are resolved promptly. Some essential activities at this stage include setting up monitoring tools to track key metrics such as response times, resource utilization, and error rates. Unexpected anomalies or issues 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.</li></ol><blockquote>Getting Started:</blockquote><p><strong>PROVISIONING MY VIRTUAL PRIVATE CLOUD (VPC)</strong></p><p><strong>Planning my VPC:</strong> I started by defining the IP address range, subnets, routing tables, and security groups my VPC will use. Considering the business requirements, including the number of subnets needed, the number of availability zones required, and the type of necessary connectivity.</p><p><strong>Creating the VPC:</strong> I signed into the AWS Management Console and navigated to the VPC dashboard. Choose the region to create the VPC and click “Create VPC.” Entered the details to create the VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SdbPLD65vJhP361NqtTpbw.png" /><figcaption>VPC</figcaption></figure><p><strong>Creating Subnets:</strong> The project required three subnets within the VPC. Each subnet is associated with a specific availability zone in the selected region. Different availability zones are used, e.g., us-east-1a and us-east-1b. Deploying the application across multiple availability zones will protect against failures of individual zones and ensure that the application stays available even if one or more zones are experiencing issues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ue4OUNDy9MHxaL7WAj2OMQ.png" /><figcaption>Subnets</figcaption></figure><p><strong>Creating an Internet Gateway (IGW)</strong>: I created an Internet Gateway and attached it to the VPC to enable communication between your VPC and the Internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8j6JW27PgAgPUB9Zn_C7Eg.png" /><figcaption>IGW</figcaption></figure><p><strong>Creating Route Tables:</strong> I created route tables to define how traffic is routed within the VPC. In this project, I need three routes, 1 public route table, and 2 private route tables for the private subnet. Each route has its own <strong>CIDR Block</strong>.</p><p><strong>Associating Subnets with Route Tables:</strong> I associated the public subnet with the public route table and the private subnet with the private route table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dfhRKnML83e_aJYs2_m0ig.png" /><figcaption>Route Table</figcaption></figure><p><strong>Configuring Security Groups: </strong>I created and configured security groups to control access to instances running in my VPC.</p><ul><li>One is for remote connection to the EC2 instance, that is, SSH on port 22.</li><li>The second inbound rule is a custom TCP on port 8080 to allow traffic from the Internet to the application.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZLcc7evi0ECVQ78qad0MVg.png" /><figcaption>Security Group</figcaption></figure><p><strong>PROVISIONING MY EC2 INSTANCE:</strong></p><p>I created an AWS EC2 instance to host the application we are migrating from the on-premise to the cloud. The instance was running Ubuntu 18.04 operating system and connected to the VPC public subnet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aBTp71JJdbRLxJbRMSCmpA.png" /><figcaption>EC2 Instance</figcaption></figure><p>I created a MySQL database using the MySQL engine to ensure that I have everything in place for the migration. I 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/1024/1*rNsrH_xNsVHtBI3VQFjxpw.png" /></figure><p>After 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/720/1*9uDmR9PJ-90qWDBUMebbEg.jpeg" /><figcaption>SSH Connection to EC2 Application Server</figcaption></figure><p>I established another secured connection to the MySQL database, created a database table, and created a new user with privileges. These are important for ensuring that the EC2 instance (Application Server) is correctly 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/720/1*yk7TE7oJKtl_DwAnpgya-Q.jpeg" /><figcaption>Database Table on MySQL</figcaption></figure><p>I connected the Application server to 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/1024/1*vSyTzHPg_HOU4co-ZJYtlw.png" /></figure><p><strong>Conclusion:</strong></p><p>Amazon EC2, VPC, RDS, MySQL, and Internet Gateway are powerful tools that can be used 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>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=535199b76ad3" 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/@toyeebade62/automated-user-migration-and-management-of-aws-identity-and-access-management-iam-resources-e955a79d7ec0?source=rss-15774053825b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e955a79d7ec0</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[microsoft-azure]]></category>
            <dc:creator><![CDATA[Toyeeb Adekunle]]></dc:creator>
            <pubDate>Mon, 01 May 2023 21:40:33 GMT</pubDate>
            <atom:updated>2023-05-16T13:34:04.996Z</atom:updated>
            <content:encoded><![CDATA[<p>For this real-world project, I acted as Cloud Specialist with the mission to migrate users in an automated way and manage AWS IAM (Identity and Access Management) resources. IAM is a service that provides fine-grained access controls for an AWS environment.</p><p>One hundred users needed to be migrated and have MFA (Multi-factor authentication) enabled on their accounts, as this is a security best practice.</p><p>I automated the processes to avoid repetitive and manual tasks in the AWS console.</p><p><strong>GitBash </strong>with<strong> AWS CLI </strong>and<strong> Shell Script</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2EWWw_x_69oPKldrMBz7VQ.png" /><figcaption><strong>GitBash </strong>with<strong> AWS CLI </strong>and<strong> Shell Script</strong></figcaption></figure><p><strong>Details:</strong></p><p>I received an Excel file from HR containing user data, including First and Last names extracted from their company email addresses and their team assignments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VYQpG0mGFSP-iZnxV6a2Sg.png" /></figure><p>I needed three items to create the <strong>IAM user: username</strong>, <strong>group name,</strong> and <strong>password</strong>. I edited the Excel file changing the email to a username, the team to a group and added a generic password for each user. After that, I saved the file as a <strong>CSV file</strong> for the <strong>Shell Script</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*RT0rMT9CyNCsn1MTAIvqtA.png" /></figure><p>Next, I uploaded the <strong>CSV file</strong> to <strong>AWS CloudShell</strong>. Once uploaded, I installed <strong>Dos2unix</strong> to run my <strong>GitBatch</strong> <strong>script</strong>, which I later made some changes to read the <strong>IAM user</strong> file I uploaded to create the 100 users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AE_ZAX_PBZlbp9eByk9L8g.png" /></figure><p>I ran the script, and all the users were uploaded to <strong>IAM within two minutes.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wp_poayQUOWmB6y1rZ_-BA.png" /></figure><p>The final step was to add the proper permission to each user group, create a custom policy enforcing <strong>MFA,</strong> and change their <strong>password</strong> when they first log in. There were five user groups( Cloud_Admin, DBA, Network_Admin, Trainees, and Linux_Admin) to add policies, which only took less than 8 minutes to implement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*jFjWgbmy3_c4d_mU9GBAew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZllkQPE8RMEf2E2-jDx0iQ.png" /><figcaption>MFA Authentication</figcaption></figure><p><strong>Conclusion:</strong></p><p>Businesses can reap numerous benefits when automating their AWS cloud infrastructure in a secure, efficient, and by utilizing AWS IAM, permissions, IAM groups, AWS CLI, Shell scripts, GitBash, and MFA token authentication compliant manner. These benefits include enhanced security, centralized management, improved governance and compliance, and increased efficiency.</p><p>#AWS #AWScloud #AWScloudcomputing #Googlecloud #Azure #Oraclecloud #Cloudsecurity #Cybersecurity #Thecloudbootcamp #Gocloudcareers</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e955a79d7ec0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>