<?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 Akram Rayri  on Medium]]></title>
        <description><![CDATA[Stories by Akram Rayri  on Medium]]></description>
        <link>https://medium.com/@akram-rayri?source=rss-e0a0a9843090------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*K4gW8aQd4gcOHg1tkITd1g.jpeg</url>
            <title>Stories by Akram Rayri  on Medium</title>
            <link>https://medium.com/@akram-rayri?source=rss-e0a0a9843090------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 05:51:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@akram-rayri/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[Lift & Shift + Application Modernization: Converting a legacy application to run in containers on…]]></title>
            <link>https://akram-rayri.medium.com/lift-shift-application-modernization-converting-a-legacy-application-to-run-in-containers-on-71cc43fdcb10?source=rss-e0a0a9843090------2</link>
            <guid isPermaLink="false">https://medium.com/p/71cc43fdcb10</guid>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[anthos]]></category>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[gke]]></category>
            <dc:creator><![CDATA[Akram Rayri ]]></dc:creator>
            <pubDate>Wed, 25 Oct 2023 19:45:37 GMT</pubDate>
            <atom:updated>2023-10-25T19:45:37.088Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>Lift &amp; Shift + Application Modernization: Converting a legacy application to run in containers on Google Kubernetes Engine (GKE) using Anthos.</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e7OJ18VFSW67dbTLMQsElg.png" /></figure><p>In another project based on a real-world scenario, I acted as a Cloud Specialist for a company that decided to migrate its entire Datacenter to Google Cloud in 3 months.</p><p>The company decided to split the project into 2 stages. The first Lift &amp; Shift, and the second modernization of Talent Management Portal.</p><p>After the Lift &amp; Shift process was finished, I had to modernize the Talent Management Portal application for a Google Kubernetes Engine (GKE) cluster using Migrate for Anthos.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NKbFJPOXUCV2cAk5t4k1Eg.png" /></figure><p>As described by the architecture above, the first step consists of compressing the web application files (.html, .css .js ...) into a zip file, then uploading it to a google cloud bucket, this is what we are calling “lifting the application”.</p><p>In order to “shift” the application, we have first to create a VM that will host those files, but before the VM will be created, we need first to perform the following from <strong><em>cloud shell (CLI)</em></strong>:</p><ol><li>Create a new google cloud project, by making sure the its billing status.</li><li>Enable the APIs that we will need to provide the necessary resources, i.e Compute Engine, Kubernetes Engine and Cloud Resource manager API.</li><li>Set up the firewall rules (port 22 for ssh and port 80 for http for instance), decide which region/zone the resources will be located.</li><li>Create the VM that will host the application files, by specifying the name, type, zone, subnet, image, project, disk size…</li><li>From cloud shell, generate the ssh key that will be imported later to google cloud so that we will successfully ssh to the created machine.</li><li>From the compute engine platform, we can open an ssh web console of the VM, and installing the necessary packages (update the OS, curl, unzip apache2 or httpd).</li><li>Now it’s time to download the zip file that contains the application files to our VM (curl -O <a href="https://bucket-link.com)/">https://bucket-link.com)</a> into the /var/www/html, since we are talking about a web application, by replacing the default index.html file by the new one plus the .css, .js, jpg, ttf …</li><li>We can now check the external IP address of our VM to check if the application was successfully “shifted to the cloud”. Here you can find an example of the application that I have implemented on google cloud VM :</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eo8D06_YXVkv_uausr1hdQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GtnBhO64fquXaPQXr39lZg.jpeg" /></figure><p>The second part of the project consists of modernization of the application by migrating the web server from the VM to Kubernetes cluster that in this case will be composed by only one node that contains a containerd container, by deploying <a href="https://cloud.google.com/anthos">Google Anthos</a> migration project.</p><p>Always form <strong><em>cloud shell (CLI)</em></strong>, we will follow the following steps :</p><ol><li>Let’s start by creating our k8s cluster by providing the name, region, compute type, version (note the it should be 1.24 above otherwise it’s deprecated), node image (Docker containers are not supported anymore by GKE, that’s why I have mentioned earlier that we are going to use containerd containers), number of nodes, project (you can use $DEVSHELL_PROJECT_ID variable to refer to your project ID without typing it manually)…</li><li>Create a new service account with storage.admin permissions, generate its key and connect it to the k8s cluster.</li><li>Set up the Anthos migrate component to the cluster : migctl setup install — — json-key=x.json (x.json is the service account key file that we have created before). By this we have completed the part between Anthos and k8s cluster shown in the project architecture above.</li><li>Now, we are going to setup communication between our VM that contains the web application files and Anthos, but before that <strong><em>we have to shutdown the machine, otherwise the migration will not be successful.</em></strong></li><li>Let’s carry on by creating another service account role permissions (compute.viewer and compute.storageAdmin) that will take in place between the VM and Anthos.</li><li>Creating and downloading the service account key.</li><li>Define the CE (Compute Engine) as migration source : migctl source create ce webapp-source — project $DEVSHELL_PROJECT_ID — json-key=x1.json (x1 is the service account key that we have generated before)</li><li>Creating the migration plan : migctl migration create my-migration — source webapp-source — vm-id &lt;name of your VM&gt;</li><li>Generating the artifacts : migctl migration generate-artifacts my-migration. Note, you can always check the status of migration by using the following command : migctl migration status my-migration</li><li>Download the artifacts. Note : a file called deployment_spec.yaml will be automatically generated after a successful artifacts generation.</li><li>Deploy the “deployment_spec.yaml” to the cluster : kubectl apply -f deployment_spec.yaml</li><li>Check the external IP of the created workload : kubectl get service X2 (X2 is the name of the deployed service). By this, you will be successfully deployed the k8s cluster that hosts your web application and no longer in need of the VM (you can even delete it after the checking the external IP of the deployed service) as it shown below :</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jn47-i08yBngT4lq0xN9PQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZSoaAWYlJ5yLb8fhhkptaQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71cc43fdcb10" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deployment of a Private Communication in a MultiCloud Environment (AWS and GCP) 100% Automated…]]></title>
            <link>https://akram-rayri.medium.com/deployment-of-a-private-communication-in-a-multicloud-environment-aws-and-gcp-100-automated-eeab75be3f09?source=rss-e0a0a9843090------2</link>
            <guid isPermaLink="false">https://medium.com/p/eeab75be3f09</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[multicloud-management]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Akram Rayri ]]></dc:creator>
            <pubDate>Fri, 20 Oct 2023 09:51:38 GMT</pubDate>
            <atom:updated>2023-10-20T09:51:38.163Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>Deployment of a Private Communication in a MultiCloud Environment (AWS and GCP) 100% Automated Using Terraform</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RN6rnJtP2_3rEvN1TPKPvA.png" /></figure><p>In another project based on a real-world scenario, I acted as a Cloud Specialist in a company that uses Google Cloud and AWS services in separate architectures.</p><p>The company decided to interconnect the two architectures, in a completely private way, using the Virtual Private Gateway, Customer Gateway, Cloud Routers, Cloud VPN, among other services.</p><p>However, they needed it in production in a week. So, once GCP and AWS accounts were created, to save time, I decided to deploy it in a 100% automated way using Terraform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IHQse3tWNsEcw6C25kTijw.png" /></figure><p>As described by the architecture above, that I had to design in order to meet stakeholders requirements, the whole scenario was fully automated by using Terraform as an ‘Infrastructure as a Code’ or what we call IaC, in order to provide the whole architecture using terraform scripts from Google Cloud shell.</p><p>Before start creating the architecture, it was crucial to follow cloud Security best practices, by creating user roles related to EC2 Administration in AWS, and also creating Service Account for Compute Engine rules. In order to make instances in both ‘worlds’ (AWS and GCP) authenticate and know each other, I had to create EC2 ssh-key and a file.json for GCP’s VM. These two file will become as two arguments for two bash scripts that will automate the authentication for AWS and GCP respectively. However, two machines in both cloud providers will not be able to authenticate if we will not connect both of them to Google Cloud Shell VM (since we chose to run the project from it), hence an ssh-key should be created for and upload it into Google Cloud Compute Engine VM and into AWS EC2 instance.</p><p>After that, it was time to create terraform scripts, where I have used the Hashicorp official documentation to provide resources on both AWS and GCP. Starting from GCP, I had to create many resources, mainly : VPC, subnets, routing tables, cloud routers, Internet gateway, VPN , tunnels towards AWS , Elastic IP and a VM. For the AWS side, I had to create terraform scripts that will provide : VPC, subnets, Customer Gateway, Private Gateway, Internet gateway and an EC2 instance.</p><p>In the end, it looks like that the VMs are the cores of this secure, private and automated architecture, since communication between the two VMs will go through the internal IPs. Here you can also find a proof of communication between the two instances using ping command and Network Intelligence service from Google Cloud.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2znrkWmvRsUnRD5P0dJ-8A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5ASeenkaiVL2IChPPxjwAw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2CiWuGx66Go7hNyYrQVZtQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eeab75be3f09" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automation Using Python on Google Cloud — IAM Service Accounts]]></title>
            <link>https://akram-rayri.medium.com/automation-using-python-on-google-cloud-iam-service-accounts-8510cf09fc01?source=rss-e0a0a9843090------2</link>
            <guid isPermaLink="false">https://medium.com/p/8510cf09fc01</guid>
            <category><![CDATA[iam-roles]]></category>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[sdk]]></category>
            <dc:creator><![CDATA[Akram Rayri ]]></dc:creator>
            <pubDate>Sat, 07 Oct 2023 10:42:17 GMT</pubDate>
            <atom:updated>2023-10-07T10:42:17.677Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>Automation Using Python on Google Cloud — IAM Service Accounts</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RfNXWkLFnncEYV6HEg824g.png" /></figure><p>In this real-world based project, I acted as a Cloud Specialist and used IAM services to create a Service Account. This service account allowed communication via scripts within the architecture through Cloud SDK and Python Scripts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-GtXpq65JVCRAnaQyXsw6w.png" /></figure><p>To have it deployed, I have downloaded both Google Cloud SDK packages together with latest version of Python on windows. By using CMD command prompt, I have implemented the python script that I prepared before, which includes the authentication key for the Google Service Account that is responsible on accessing the Cloud resources. The python script will also list all the created resources in my GCP project such as compute instances or object storage.</p><p>By this, I have implemented a solution to automate the access to my cloud resources created in my GCP project.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8510cf09fc01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Packing Applications with Docker Containers]]></title>
            <link>https://akram-rayri.medium.com/packing-applications-with-docker-containers-8a9767b45227?source=rss-e0a0a9843090------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a9767b45227</guid>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[docker-compose]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Akram Rayri ]]></dc:creator>
            <pubDate>Mon, 11 Sep 2023 09:51:49 GMT</pubDate>
            <atom:updated>2023-09-11T09:51:49.401Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sdm6bKGJ74sP5nPzR6dH9Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gdgjpTfSzXE9JcL6Z2UFtg.png" /></figure><p>No one can deny the crucial role that containers are playing in the modern cloud infrastructure nowadays, since we can create hundreds of them on only few virtual machines. Docker containers, for instance can host several services from different scopes. In this project I will focus more on Docker Compose, which is a utility from Docker that brings automation to the container layer from the cloud stack.</p><p>The two figures above, are illustrating two different applications hosted on two different containers. The first one is a WordPress application server where a user can populate with his own data, that is connected to another container that hosts a MySQL database in the back-end. The second application is a Python based one, where it’s simply allowing the user to upload files, documents, images to the Docker host machine.</p><p>Since we already know that containers have ephemeral storage, we have leveraged containers volumes and bind-mounts to persist data after deletion of these containers. Networking was also another topic to deal with, since we had to create custom bridge networks in order to make containers isolated and in two different “worlds” so that we are insuring security best practices.</p><p>The novelty of this infrastructure implementation is the fact that we utilized Docker Compose plugin, which is a YAML file that could be written depending on which Docker Compose version we want to use. For this project, I have written the YAML file in the last version which is version “3” that supports many other services rather than the last two versions, especially the Docker Swarm support.</p><p>While constructing the automation YAML file, we have implemented services (container names, images, ports, environment variables…), volumes (where data will persist, it’s like a virtual storage residing on the docker host machine) then networks (which essential component to make containers talk to each other, especially in the isolation case).</p><p>By that, we have provisioned multiple Docker containers hosting multiple application, and residing in different networks in few seconds and in automated way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a9767b45227" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HumanGov: Configuration and Deployment of HumanGov SaaS Application on AWS EC2 Inventory Across US…]]></title>
            <link>https://akram-rayri.medium.com/humangov-configuration-and-deployment-of-humangov-saas-application-on-aws-ec2-inventory-across-us-a373d1ec619e?source=rss-e0a0a9843090------2</link>
            <guid isPermaLink="false">https://medium.com/p/a373d1ec619e</guid>
            <category><![CDATA[jinja2]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[ansible]]></category>
            <category><![CDATA[codecommit]]></category>
            <dc:creator><![CDATA[Akram Rayri ]]></dc:creator>
            <pubDate>Mon, 21 Aug 2023 09:16:33 GMT</pubDate>
            <atom:updated>2023-08-21T09:16:33.750Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>HumanGov: Configuration and Deployment of HumanGov SaaS Application on AWS EC2 Inventory Across US States Using Ansible Securely Storing Configuration Files on AWS Code Commit</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z9xnKV5FyT6iIa6HCXbScg.jpeg" /></figure><p>In this project based on a real-world scenario, I used the Ansible configuration management automation to configure and deploy the innovative HumanGov SaaS application on AWS EC2 instances that will serve the entire United States, each state with its own independent infrastructure and configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sza7LJiuU52_YpnMEW7-KQ.png" /></figure><p>As described in the architecture abstract above, I played the role of a DevOps engineer and provisioned the necessary resources (thanks to terraform) across all the 50 states, including EC2 instances that will host the Jinja2 dynamic webserver using Nginx in a reversed proxy to Gunicorn (application server) through Unix sockets. Then the Gunicorn will be calling the Flask web application using Python scripts. In order to support the new users of the HumanGov application a Dynamodb table will be created as a back-end database, then an S3 bucket will be there as well to store all the files of new users (ID cards, files, pdfs…).</p><p>After Provisioning the resources, now it’s time to create Ansible playbooks, that will automatically install the web server, application server and web application inside of the EC2 instances. Ansible inventory was automatically populated after creation of our infrastructure resources, since IAM user roles were used to allow terraform to interact with the AWS services, otherwise many of AccessDenied errors will restrict the provisionning.</p><p>After our inventory was created and populated, Ansible roles were utilized to encapsulate tasks, handlers, files, templates and module dependecies in a way to enhance the organization and the scalability of our automated code.</p><p>Finally, in order to maintain security best practices and CI/CD principles, our configuration files together with the ones of provisioning the infrastructure, were pushed to AWS CodeCommit that was pre-authenticated with our Cloud9 instance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a373d1ec619e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HumanGov: Deployment Of A Reusable Saas Multi-tenant AWS Infrastructure Using Terraform Modules…]]></title>
            <link>https://akram-rayri.medium.com/humangov-deployment-of-a-reusable-saas-multi-tenant-aws-infrastructure-using-terraform-modules-fd572504a54d?source=rss-e0a0a9843090------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd572504a54d</guid>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[iac]]></category>
            <category><![CDATA[codecommit]]></category>
            <category><![CDATA[terraform]]></category>
            <dc:creator><![CDATA[Akram Rayri ]]></dc:creator>
            <pubDate>Tue, 15 Aug 2023 10:14:02 GMT</pubDate>
            <atom:updated>2023-08-15T10:14:02.286Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>HumanGov: Deployment Of A Reusable Saas Multi-tenant AWS Infrastructure Using Terraform Modules Securely Storing Terraform Configuration Files On AWS Code Commit.</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z9xnKV5FyT6iIa6HCXbScg.jpeg" /></figure><p>In this project based on a real-world scenario, I designed and deployed a reusable, multi-tenant SaaS infrastructure on AWS using Terraform modules.</p><p>The infrastructure was based on AWS services such as EC2 instances, DynamoDB databases, and S3 buckets. To ensure the secure storage of Terraform configuration files, I used AWS CodeCommit as a remote repository to ensure versioning of the workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sza7LJiuU52_YpnMEW7-KQ.png" /></figure><p>As presented in the architecture above, the HumanGov project consists of creating application for public education sector across all the 50 states of USA. Hence, as a DevOps engineer I had to create the same resources for each region for 50 times. In order to do so, I leverage the power of Terraform (Infrastructure as a Code) to automatically provision the infrastructure in few hours and in simultaneous way.</p><p>First, I had to create the root directory where *.tf files will contain the population of the infrastructure. Then, under the modules directory, I created the main.tf , variables.tf and outputs.tf files that contains the infrastructure as a code scripts. While creating the scripts, several concepts of Terraform were used, like “random” and “aws” as a providers, resources to create the EC2 instances S3 buckets and DynamoDB tables to store NoSQL data. Variables were also used to insure the efficiency and dynamic approach of coding. Provisioners, can be utilized to bootstrap or configure the EC2 instances several times with only few lines of code. Outputs we leveraged as well so that after the creation of infrastructure we will make sure that the intended resources were created for each region with the appropriate tags and names.</p><p>Second, After creation of the infrastructure, Terraform is automatically generating the “terraform.tfstate” which is a crucial file in case of unexpected incident that can cause the lost of the whole resources for the whole project. Hence, it is important to take into consideration storing the Terraform state file not only in case of files loss, but also it may contain sensitive information like passwords and authentication keys. For that reason, I have created a “backend.tf” file to automatically store the Terraform state in a S3 bucket that is protected by ACLs, also creating a specific Dynamodb table to store the “lock file” that contains metadata about who is making changes at the same moment on our infrastructure.</p><p>Third, by using “.gitignore” file, I was making sure that all the files except the sensitive ones will be uploaded successfully to the CodeCommit remote repository that I also make it per-autheticated with AWS Cloud9.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd572504a54d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HumanGov: Implementation Of Git Repositories For Application And Infrastructure Code Using AWS Code…]]></title>
            <link>https://akram-rayri.medium.com/humangov-implementation-of-git-repositories-for-application-and-infrastructure-code-using-aws-code-271df5b6a3b1?source=rss-e0a0a9843090------2</link>
            <guid isPermaLink="false">https://medium.com/p/271df5b6a3b1</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[codecommit]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Akram Rayri ]]></dc:creator>
            <pubDate>Fri, 11 Aug 2023 17:59:29 GMT</pubDate>
            <atom:updated>2023-08-11T17:59:29.134Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>HumanGov: Implementation Of Git Repositories For Application And Infrastructure Code Using AWS Code Commit + Proof Of Concept (POC) Process Of Commit, Push And Revert Code Changes</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4_q0fVHf2x69W2RzJJaF8w.jpeg" /></figure><p>In this project based on a real-world scenario, I implemented Git repositories for both application and infrastructure code using AWS CodeCommit, and got hands-on experience with the Proof of Concept (PoC) process of commit, push, and revert code changes.</p><p>My mission was to set up a Git repositories using AWS CodeCommit for HumanGov, a hypothetical Software as a Service for government organization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U1fObhflzzOpwhYUBCd9Dg.png" /></figure><p>As you can notice on the project architecture, I have played the role of a DevOps engineer to create separate repositories for both teams (software developers and Devops engineers).</p><p>For the team of software developers, I have created multiple working environments for each one of the developers using Cloud9, which is an AWS IDE where terminals and code editors are available.</p><p>During the project, I have made changes on the source code of the HumanGov application, then committing changes on the Remote Repository (CodeCommit) after making it integrated with the local environment on AWS Cloud9. As a part of the process, I have also applied the Proof of Concept (PoC), by pushing, pulling, committing and also reverting code versions in case of errors.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=271df5b6a3b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementation of an E-Commerce Website on AWS in an automated way using Terraform and Ansible]]></title>
            <link>https://akram-rayri.medium.com/implementation-of-an-e-commerce-website-on-aws-in-an-automated-way-using-terraform-and-ansible-5ec3b22a5d9c?source=rss-e0a0a9843090------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ec3b22a5d9c</guid>
            <category><![CDATA[ansible]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[redis]]></category>
            <category><![CDATA[magento]]></category>
            <category><![CDATA[terraform]]></category>
            <dc:creator><![CDATA[Akram Rayri ]]></dc:creator>
            <pubDate>Sat, 06 May 2023 15:54:20 GMT</pubDate>
            <atom:updated>2023-05-06T15:54:20.317Z</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 in 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 <strong><em>Terraform</em></strong> and <strong><em>Ansible</em></strong> (Infrastructure as Code — IaC).</p><p>I provisioned the infrastructure 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" /></figure><p>First, using Terraform scripts, I have created the infrastructure which is an EC2 instance (with a given number of vCPU, memory and storage to be able to host the website without any interruptions) inside a VPC.</p><p>Then, by accessing the instance remotely, I have installed in automated way, Mangeto (which is an Adobe affiliate company that is going to be our e-commerce website host), php, MySQL as a database service, Redis to manage website caches in order to improve the user experience by providing the minimum possible delays. All of the previous mentioned services were installed in our instance by using Ansible playbooks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ec3b22a5d9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Elaboration of Executive Presentation about Infrastructure costs for a SAP Migration project from…]]></title>
            <link>https://akram-rayri.medium.com/elaboration-of-executive-presentation-about-infrastructure-costs-for-a-sap-migration-project-from-7876992487f8?source=rss-e0a0a9843090------2</link>
            <guid isPermaLink="false">https://medium.com/p/7876992487f8</guid>
            <category><![CDATA[cost-estimation]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[excel]]></category>
            <category><![CDATA[powerpoint]]></category>
            <category><![CDATA[sap]]></category>
            <dc:creator><![CDATA[Akram Rayri ]]></dc:creator>
            <pubDate>Sat, 06 May 2023 12:38:57 GMT</pubDate>
            <atom:updated>2023-05-06T12:38:57.608Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>Elaboration of Executive Presentation about Infrastructure costs for a SAP Migration project from On-Premises to AWS</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zMSfjs3oRtaM-isZHBrPzw.png" /></figure><p>In this project based on a real-world scenario, I acted as a Cloud Architect and created an executive presentation of infrastructure costs for a<strong><em> SAP</em></strong> migration project from On-Premises to AWS.</p><p>SAP workloads were running in a corporate Data Center with the environment divided into Production, Quality Assurance — QA and Development/Test layers.</p><p>My mission was to estimate the costs of migration to AWS, considering that this infrastructure will be running on AWS for at least the next 3 years.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YAWiEB6UsU4Npr2a7D_c8w.png" /></figure><p>Thanks to <strong><em>AWS calculator</em></strong>, a variety of scenarios, resources and parameters can be used as an input to give an estimated value for companies that want to migrate their services from on-premises to public cloud no matter what is the infrastructure. In this Real world scenario hand-on project, we had to move application servers in production and also in testing center, together with database servers. For this, I had to take into consideration a given number of EC2 instances as they are going to host the application servers, with a number of TBytes dedicated for block and NFS storage. Load balancing was also estimated, since we are considering to use 3 Load balancers for at least 2GB per second for each.</p><p>Additionally, RDS Oracle database servers migration costs was also covered with a given number of vCPU, RAM and storage in TB.</p><p>On the other hand, the AWS support was also included in the estimation with an availability of 24/7 and with estimated response time less than 15 minutes especially for production environments.</p><p>Overall, the estimated costs for such architecture was 22% less than implementing the same on-premises. As a result, it turns out that migrating towards the public cloud not only reducing efforts to maintain and managing on-premises data centers but also reducing implementation costs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7876992487f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementation of a set of EC2 instances using Terraform and AWS Systems Manager configuration with…]]></title>
            <link>https://akram-rayri.medium.com/implementation-of-a-set-of-ec2-instances-using-terraform-and-aws-systems-manager-configuration-with-e2b78787b099?source=rss-e0a0a9843090------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2b78787b099</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[sns]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[systems-manager]]></category>
            <dc:creator><![CDATA[Akram Rayri ]]></dc:creator>
            <pubDate>Thu, 04 May 2023 15:22:07 GMT</pubDate>
            <atom:updated>2023-05-04T15:22:07.743Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>Implementation of a set of EC2 instances using Terraform and AWS Systems Manager configuration with Amazon Simple Notification Service for automated installation of security officers</em></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 I deployed a set of EC2 instances and infrastructure in an automated way using <strong><em>Terraform</em></strong> (infrastructure as code — IaC). Also, it was necessary to install a specific security agent on all these instances in an automated way.</p><p>Once I provisioned the infrastructure, <strong><em>AWS Systems Manager</em></strong> and its component Command Run were used to install the security agents in an automated way. I used the <strong><em>Amazon Simple Notification Service — SNS</em></strong> to send an email informing the whole process status.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l5nIFDSszczl4WNhBGpnYA.png" /></figure><p>As described in the architecture above, several EC2 instances were created inside a VPC in automated way using Terraform scripts. The main goal is to run commands in these Virtual Machines automatically without manual intervention, for instance installing patches or security agents etc…</p><p>In order to achieve automation, AWS Systems manager was used, in a way that it can interact with Amazon Simple notification Service (SNS) so that notification emails will be sent automatically to an end user, also to run scripts automatically among selected EC2 instances. By this I have created a fully automated environment to run commands in a certain number of instances.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2b78787b099" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>