<?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 @joassouramou on Medium]]></title>
        <description><![CDATA[Stories by @joassouramou on Medium]]></description>
        <link>https://medium.com/@joassouramou?source=rss-59bffc95623d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZUhO6EjS6EVExrMcu4ZqjA.jpeg</url>
            <title>Stories by @joassouramou on Medium</title>
            <link>https://medium.com/@joassouramou?source=rss-59bffc95623d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 02:30:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@joassouramou/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[Terraform Hands-On! How to build and push a Docker image on ECR using AWS Codebuild]]></title>
            <link>https://medium.com/@joassouramou/terraform-hands-on-how-to-build-and-push-a-docker-image-on-ecr-using-aws-codebuild-8ebc444e5d48?source=rss-59bffc95623d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ebc444e5d48</guid>
            <category><![CDATA[ecr]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[terraform]]></category>
            <dc:creator><![CDATA[@joassouramou]]></dc:creator>
            <pubDate>Tue, 14 Jun 2022 18:48:11 GMT</pubDate>
            <atom:updated>2022-06-15T01:50:44.025Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0pguSfGfedAfDCXJqj54MQ.png" /></figure><p>Containerization has been trending in cloud computing for many reasons. It helps build fully packaged and portable environments with all the resources needed to achieve a specific objective.</p><p>In this hand-on, we will use AWS services and Terraform to build a Docker image container. The AWS services are:</p><ul><li><strong>AWS CodeBuild</strong> is a fully managed build service. It compiles your source code, runs unit tests, and produces artifacts that are ready to deploy. CodeBuild eliminates the need to provision, manage, and scale your own build servers.</li><li><strong>Amazon ECR </strong>(Amazon Elastic Container Registry) is an AWS managed container image registry service. Like DockerHub, Amazon ECR supports private and public repositories. Therefore, you can use it to push, pull and manage Docker images.</li></ul><h3>Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*MdxT3ozq28pJIRQK5pnecQ.png" /></figure><p>The architecture is simple and involves Terraform, AWS Codebuild, Github and ECR. Here is the story:</p><ol><li>User builds the Terraform project to create a Codebuild project.</li><li>Terraform deploys the code to AWS and create the Codebuild project.</li><li>When the customer runs the build, Codebuild builds the Docker image using the Github repository as source</li><li>Codebuild pushes the Docker image to ECR.</li></ol><h3>ECR repository</h3><p>Firstly, we need an ECR repository for our built Docker image. We will use the steps defined in <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/repository-create.html">AWS documentation</a> to create a private ECR.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4ghFQkSb3jATcbBMyfKULA.png" /></figure><p>The following script can be used to test the push of an <em>nginx</em> image to our ECR repository. Run it on your local and make sure to update the ACCOUNT_ID and the AWS_DEFAULT_REGION variables.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9ee133d55b740b79b5b56d8a576ccb90/href">https://medium.com/media/9ee133d55b740b79b5b56d8a576ccb90/href</a></iframe><p>The <em>nginx</em> image should now be visible in your private ECR repository.</p><h3>Docker image</h3><p>Now, we need to create the specifications of our Docker image for CodeBuild. AWS Codebuild will use our GitHub repository as source. In the repository, we have the below main files:</p><ul><li><em>Dockerfile</em> has the instructions to create our Docker image which is a web app running on <em>nginx</em>.</li><li><em>index.html</em> is the web page to be added to our Docker image.</li><li><em>buildspec.yml</em> contains the phases to build and push our Docker image to our ECR repository.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ce14622dc42fd88401badf51795f1ffa/href">https://medium.com/media/ce14622dc42fd88401badf51795f1ffa/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/30a654c2529ed870c02b096bfdbf0757/href">https://medium.com/media/30a654c2529ed870c02b096bfdbf0757/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e1ba0a22715dc58a3366a754163c9e99/href">https://medium.com/media/e1ba0a22715dc58a3366a754163c9e99/href</a></iframe><p>Here is the Git repository: <a href="https://github.com/ilsaTi/docker-simple-webpage">https://github.com/ilsaTi/docker-simple-webpage</a>.</p><h3>Create AWS Codebuild project using Terraform</h3><p>Here, we will create our AWS Codebuild project with Terraform. The Git repository can be found here: <a href="https://github.com/ilsaTi/docker-codebuild-terraform.git">https://github.com/ilsaTi/docker-codebuild-terraform.git</a>.</p><h4>main.tf</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/967411e5ff8ab1ffa94c70b9a8e3fbb7/href">https://medium.com/media/967411e5ff8ab1ffa94c70b9a8e3fbb7/href</a></iframe><h4>variable.tf</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bce222a22102e8aedbc9031848a7ffbe/href">https://medium.com/media/bce222a22102e8aedbc9031848a7ffbe/href</a></iframe><h4>iam.tf</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/98be6e6f3319c88da9795aae2ab5795f/href">https://medium.com/media/98be6e6f3319c88da9795aae2ab5795f/href</a></iframe><p>Here are the policies we define:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6a220b8d19f697a689f39a180fcc0a89/href">https://medium.com/media/6a220b8d19f697a689f39a180fcc0a89/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/094d0e6eb8ff6fefb88af19f5d63b023/href">https://medium.com/media/094d0e6eb8ff6fefb88af19f5d63b023/href</a></iframe><h4>terraform.tfvars</h4><p>Here are the variables values as input. Make sure to update before deploying.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3d877bedb1a298831edce7a6c101a93a/href">https://medium.com/media/3d877bedb1a298831edce7a6c101a93a/href</a></iframe><h4>Deploy</h4><p>Run the following commands to deploy and create the AWS Codebuild project:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f965e07520975b50be096aebd877c7d6/href">https://medium.com/media/f965e07520975b50be096aebd877c7d6/href</a></iframe><p>The project should now be visible in AWS console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UOfy6c3hRrLh9kRGTvLbkQ.png" /><figcaption>Build project from AWS Console</figcaption></figure><h3>Build and push to ECR</h3><p>Now it is time to build the project we created. Click on the project and then click <em>Start build</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nBrjXzUHKW-tB-BFSy86Mg.png" /><figcaption>Start build project</figcaption></figure><p>As a result:</p><ul><li>the build is completed successfully,</li><li>our new Docker image pushed to our ECR repository.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3EodETWVWK1DnzJcZceXkA.png" /><figcaption>Successful build</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l0Exw_y2qgd0uPeSxloI3g.png" /><figcaption>Image pushed to ECR</figcaption></figure><h3>Clean up</h3><ol><li>Delete the ECR repository from AWS console</li><li>Delete the Codebuild project by running <em>terraform destroy</em> in the Terraform project directory</li></ol><h3>Conclusion</h3><p>We have shown the steps to build and push a Docker image using AWS Codebuild. The AWS Codebuild project was created using Terraform. The build was triggered manually by a user but it can be improved by using Github webhooks. This improvement will help trigger the build as soon as a change is detected in the source repository.</p><p>The Docker image we have built is in preparation of our next article where we will explore the creation of a web application on ECS using Terraform. <strong>Stay tuned!</strong></p><h3>References</h3><ol><li><a href="https://docs.docker.com/get-started/02_our_app/">Docker documentation</a></li><li><a href="https://docs.aws.amazon.com/codebuild/latest/userguide/welcome.html">AWS Codebuild</a></li><li><a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/what-is-ecr.html">Amazon ECR</a></li><li><a href="https://registry.terraform.io/providers/hashicorp/aws/latest/docs">Terraform — AWS Provider</a></li><li><a href="https://github.com/ilsaTi/docker-simple-webpage">Docker for AWS CodeBuild</a></li><li><a href="https://github.com/ilsaTi/docker-codebuild-terraform.git">Terraform project to create AWS Codebuild</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ebc444e5d48" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to install Kafka on macOS X]]></title>
            <link>https://medium.com/@joassouramou/how-to-install-kafka-on-macos-x-b096f682a576?source=rss-59bffc95623d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b096f682a576</guid>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[events]]></category>
            <category><![CDATA[apache-kafka]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[kafka]]></category>
            <dc:creator><![CDATA[@joassouramou]]></dc:creator>
            <pubDate>Sat, 28 May 2022 21:23:26 GMT</pubDate>
            <atom:updated>2022-05-28T21:23:26.854Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*SGKAf4-V9cu9vYzPLqrkHw.png" /></figure><p>In this article, we will show the steps to install Apache Kafka <strong>very easily</strong> on macOS using brew. The main steps are:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5DFBPOErRJpbLJmLuc6LMg.png" /></figure><h3>Install brew</h3><p>Homebrew is a package manager that is widely used to install stuff on Mac or Linux systems. To install Homebrew, run the following command:</p><pre>/bin/bash -c &quot;$(curl -fsSL <a href="https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh">https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh</a>)&quot;</pre><p>Once Homebrew is installed, you can validate the version using:</p><pre>brew --version</pre><h3>Install Kafka using brew</h3><p>Now, it is time to install Kafka. For that, use the brew command as below:</p><pre>brew install kafka</pre><p>The command will install not only Kafka but also all the required packages and binaries to support it: <strong>openjdk, ca-certificates, openssl@1.1 and zookeeper.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pTvIFrXzQS89SQ9R31C_rw.png" /></figure><h3>Start Zookeeper</h3><p>Before starting Kafka, we need to start the Zookeeper which is one of dependencies installed earlier. To launch Zookeeper, run the following command:</p><pre>/opt/homebrew/bin/zookeeper-server-start /opt/homebrew/etc/zookeeper/zoo.cfg</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zRO-Qm25A7KcXoLkg45A-w.png" /><figcaption>Zookeeper started successfully</figcaption></figure><h3>Start Kafka</h3><p>Once Zookeeper is launched, now it is time to launch Kafka. The command below will do so:</p><pre>/opt/homebrew/opt/kafka/bin/kafka-server-start /opt/homebrew/etc/kafka/server.properties</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TKO-Qx4zYPCQpYHCwelS0w.png" /><figcaption>Kafka started successfully</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7_WBFN9DPk7S04PDo8ru9g.png" /><figcaption>Kafka commands</figcaption></figure><h3>References</h3><ol><li>Apache Kafka website: <a href="https://kafka.apache.org/intro">https://kafka.apache.org/intro</a></li><li>Homebrew: <a href="https://brew.sh/">https://brew.sh/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b096f682a576" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Terraform Hands-On: High available and Fault-Tolerant application on AWS Cloud]]></title>
            <link>https://medium.com/@joassouramou/terraform-hands-on-high-available-and-fault-tolerant-application-on-aws-cloud-8aa26b7eef68?source=rss-59bffc95623d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8aa26b7eef68</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[scaling]]></category>
            <category><![CDATA[ec2]]></category>
            <dc:creator><![CDATA[@joassouramou]]></dc:creator>
            <pubDate>Mon, 23 May 2022 13:50:52 GMT</pubDate>
            <atom:updated>2022-05-23T13:50:52.322Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>ALB + Target Group +Auto-Scaling group + Cloudwatch</strong></p><p>High availability and reliability are one of the common requirements when building applications today. High availability refers to the capability of an application to remain up and running. In cloud world, it is achieved by spreading the hosts across multiple availability zones or regions. Hence, if one of them is down, the application will continue being supported by the remaining ones. Fault tolerance refers more to the aptitude to recover in case of failures.</p><p>In this tutorial, we will demonstrate how to build a high available and scalable Apache application deployed on EC2 using Infrastructure as Code with Terraform.</p><h3>Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*ELijkqkKU26GjnYzObEyrg.png" /></figure><p>Let’s describe each component of our architecture.</p><h4>VPC</h4><p>The application is deployed in a VPC. We are using a Terraform module concept here to demonstrate how it can be used to create custom resources.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/573ac82633d1720e27cf060fcb584790/href">https://medium.com/media/573ac82633d1720e27cf060fcb584790/href</a></iframe><h4>Network</h4><p>For the network, we need:</p><ul><li>a public zone with 3 subnets in 3 availability zones were the ELB and the NAT Gateway will be attached</li><li>an Internet Gateway to connect VPC route tables for internet-routable traffic</li><li>a private zone with 3 subnets in 3 availability zones where the EC2 instances will be launched</li><li>a NAT Gateway in the public zone to allow private hosts to connect to the internet</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a66d989e79e763c1caaad532e5b50e79/href">https://medium.com/media/a66d989e79e763c1caaad532e5b50e79/href</a></iframe><h4>S3</h4><p>We will store the code of our application an S3 bucket. With Terraform, we will upload the code from our local directory to S3.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/16344a554735aac6ff386a0423da5ba4/href">https://medium.com/media/16344a554735aac6ff386a0423da5ba4/href</a></iframe><h4>Launch configuration</h4><p>Here, we defined the characteristics of the EC2 instances. A launch, the instances will get the code uploaded previously in S3. The security group is only allows the connections from ELB on port 80.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c5ff3601618fa4e6b1e49315ed59c0f2/href">https://medium.com/media/c5ff3601618fa4e6b1e49315ed59c0f2/href</a></iframe><h4>Target group</h4><p>We monitor the health check of the instance using the health.html file created during the launch of the instances (refer to <em>user-data.sh</em>). An instance is healthy if the health.html file can be reached through HTTP protocol on port 80.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5f64c63aa129a15c6feca234487aaed7/href">https://medium.com/media/5f64c63aa129a15c6feca234487aaed7/href</a></iframe><h4>Auto-scaling group</h4><p>Here we define how we want the specifications of the horizontal auto-scaling.</p><ul><li>The instances are created using the launch configuration defined previously.</li><li>The new instance will be declared unhealthy if the health check fails 300 seconds after the launch.</li><li>We also define the min, max and desired numbers of instances</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2ce21d0caa1797cfe0321e020656ab55/href">https://medium.com/media/2ce21d0caa1797cfe0321e020656ab55/href</a></iframe><h4>Load balancer</h4><ul><li>A listener is created to forward the HTTP request to the target group.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ba97e0b57f572d6c1e82e3659c0cd194/href">https://medium.com/media/ba97e0b57f572d6c1e82e3659c0cd194/href</a></iframe><h4>Security groups</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1331e6486c06002b202c2425b1012e41/href">https://medium.com/media/1331e6486c06002b202c2425b1012e41/href</a></iframe><h4>Scaling policies and Cloudwatch metrics</h4><p>Here we define the scaling up and scaling down behaviours using Cloudwatch metrics.</p><ul><li>Scaling down: an instance is terminated if the average CPU utilization is lower than the defined scaling down threshold.</li><li>Scaling up: an instance is added if the average CPU utilization is greater than the defined scaling up threshold.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f635021816972dad9251d879b2bf1e4b/href">https://medium.com/media/f635021816972dad9251d879b2bf1e4b/href</a></iframe><h4>Policies</h4><p><em>Bucket policy</em></p><p>The bucket policy allows</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6022c2f6a5baaa1f6b5492895637f0ed/href">https://medium.com/media/6022c2f6a5baaa1f6b5492895637f0ed/href</a></iframe><p><em>EC2 policy</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9ed230ea2c194c6f4d9aaac02f7be423/href">https://medium.com/media/9ed230ea2c194c6f4d9aaac02f7be423/href</a></iframe><h3>Deploy</h3><p>To deploy this infrastructure, we run the following commands in :</p><ol><li>initiate the terraform configuration</li><li>validate the syntax of our terraform code</li><li>deploy the code</li></ol><h3>Result and validation</h3><h4>Scale-up</h4><p>Our infrastructure will scale-up whenever the CPU usage is greater or equals to 50% as we defined earlier. To achieve that, we will use <em>stress</em> which is an utility that helps increase the CPU, Memory, I/O of systems.</p><p>To install stress, execute the following command on an EC2 instance:</p><pre>sudo amazon-linux-extras install epel -y<br>sudo yum install stress -y</pre><p>Then execute the following command to increase the CPU and memory:</p><pre>sudo stress --cpu 8 --vm-bytes $(awk &#39;/MemAvailable/{printf &quot;%d\n&quot;, $2 * 0.9;}&#39; &lt; /proc/meminfo)k --vm-keep -m 1</pre><p>The CPU utilization starts increasing as observed in the EC2 metrics tab in the auto scaling group.</p><p>When the CPU reaches 50% for 2 minutes, a new instance will be started as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jH8kx4YYeUEcx6qzxmXDmQ.png" /></figure><p>Additional instances will be added in the next two minutes if the CPU utilization does not go below 50%. Below, we have 2 additional instances that have been added.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vwPbC9SRfRgCozgC5OKbwQ.png" /><figcaption>Scaling up — new healthy instances launched</figcaption></figure><h4>Scale-down</h4><p>To scale down, we can cancel the stress command executed to scale up. Soon we will observe that the additional instances added previously will be removed.</p><h3>Conclusion</h3><p>In this article, we showed how to build a high available and fault tolerant application on AWS using Terraform. The solution was based on Auto Scaling group which is the managed AWS service to scale physical VMs. Another approach would be to use a serverless architecture which has many advantages including flexibility and less management effort. Our next article will be on exploring serverless.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8aa26b7eef68" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Certified Solution Architect Professional — What you MUST know to pass the exam]]></title>
            <link>https://medium.com/@joassouramou/aws-certified-solution-architect-professional-what-you-must-know-to-pass-the-exam-4c28bdb418ba?source=rss-59bffc95623d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c28bdb418ba</guid>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[aws-certification]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[certification]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[@joassouramou]]></dc:creator>
            <pubDate>Mon, 23 May 2022 04:17:50 GMT</pubDate>
            <atom:updated>2022-05-23T13:53:48.748Z</atom:updated>
            <content:encoded><![CDATA[<h3>AWS Certified Solution Architect Professional — What you MUST know to pass the exam</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*w8GpLB694OSHllci.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/0*WZH1dBdg6xQMIE9i" /></figure><p>Recently, I managed to pass the <a href="https://aws.amazon.com/certification/certified-solutions-architect-professional/">AWS Certified Solution Architect Professional</a> exam at the <strong>first try</strong>.</p><p>This exam is known as one of the toughest AWS certification exam. I would be lying if I said it is not the case. Indeed, as per AWS, this certification validates the ability to design, deploy, and evaluate applications on AWS within diverse, complex requirements. It validates that the candidate has advanced technical skills and experience in designing distributed applications and systems on the AWS platform.</p><p>In this article, I would like to share with you my experience and ALL you need to know in order to pass your exam.</p><h3>Background</h3><p>As highly recommended in the exam guide, you need to have some experience and some knowledge of the AWS services before applying to the SAP exam. Let’s be clear: this is a <strong>professional</strong> <strong>level exam</strong> so you are expected to know the services in depth and be able to advise the best one to meet specific requirements. Therefore, it is recommended to train and pass the associate level certifications(Solution Architect, Developer or System Admin) beforehand.</p><p>In my case, I trained and passed all the associate as well as the DevOps certifications before applying to the SAP exam. The <a href="https://aws.amazon.com/certification/certified-devops-engineer-professional/?trk=388d2989-92ff-4df0-b2ee-d3064582f09e&amp;sc_channel=ps&amp;sc_campaign=acquisition&amp;sc_medium=GC-TC-DIG-P|PS-GO|Brand|Desktop|AW|Training%20and%20Certification|Certification|CA|EN|Text|xx|SEM|PMO21-12347&amp;s_kwcid=AL!4422!3!467351730418!e!!g!!aws%20devops%20certification&amp;ef_id=Cj0KCQjwvqeUBhCBARIsAOdt45YgGlbrzGr97qipaXHET33Tqm3eEgVRSANVzMqeIwrDO0IOn9vicrkaArLREALw_wcB:G:s&amp;s_kwcid=AL!4422!3!467351730418!e!!g!!aws%20devops%20certification">DevOps certification</a> is not required but I recommend it as it will help you get a deep understanding and hands on experience of the AWS tools used to automated tasks which is also covered in the SAP exam.</p><h3>How to prepare for the exam</h3><p>As for all the certifications exam I passed, I did not prepare myself to pass the SAP exam. My main objective was to learn and master the AWS services to design best architectures. For that reason, I did not rush and spent 3 months learning (with a full-time job) and doing as much as possible hands-on labs.</p><p>One think to keep in mind:</p><blockquote>Repetition is a key learning aid because it helps transition a skill from the conscious to the subconscious. Through repetition, a skill is <a href="http://k12teacherstaffdevelopment.com/tlb/learning-by-repetition-does-it-work/">practiced and rehearsed</a> over time and gradually becomes easier.</blockquote><h4>Training courses</h4><p>For the training courses, I mainly took <em>Stephane Maarek</em> course on <a href="https://www.udemy.com/course/aws-solutions-architect-professional/"><em>Udemy</em></a>. Even though it was not a hands-on course, every service is very well described as well as how and when they can be integrated with other services.</p><p>I also took <a href="https://learn.acloud.guru/course/aws-certified-solutions-architect-professional/dashboard">A Cloud Guru SAP course</a> where you can find hands-on labs to practice on AWS.</p><p>My main advise here is to not hesitate to replay the courses as many times as needed to completely master the best designs and services integrations. Make sure you master the AWS Well-Architected and the Six Pillars.</p><h4>Practice exams</h4><p>I recommend the practice exams of <a href="https://portal.tutorialsdojo.com/"><em>Tutotials Dojo</em></a>.</p><ol><li>I started with the section based questions in review mode to validate my understanding and review the wrong answers.</li><li>After the section-based questions, I took the exams first in review mode and then without.</li><li>Repeat 1 and 2 multiple times until you master every topic.</li></ol><h4>Other materials</h4><ol><li>Make the <a href="https://aws.amazon.com/architecture/well-architected/?wa-lens-whitepapers.sort-by=item.additionalFields.sortDate&amp;wa-lens-whitepapers.sort-order=desc">AWS Well-Architected white paper</a>s your best friend</li><li>Read the <a href="https://aws.amazon.com/blogs/architecture/">AWS Architect Blog</a></li><li>Watch the <a href="https://www.youtube.com/c/amazonwebservices">AWS re:Invent</a> videos</li><li>Read <a href="https://docs.aws.amazon.com/">AWS Documentation</a></li><li>Build skills with <a href="https://explore.skillbuilder.aws/learn">AWS Skill Builder</a></li></ol><h4>Schedule the exam</h4><p>You can schedule the exam from the <a href="https://www.aws.training/Certification">AWS training site</a>. Few things you need to know:</p><ul><li>You can schedule your exam with PSI or Pearson Vue.</li><li>Exam can be on-site or remotely.</li><li>Vouchers can help reduce the price of the exam by 50%.</li><li>Non-native English speakers can request additional time as an accommodation.</li></ul><h4>Pass the exam</h4><p>The exam lasts 190 minutes and have 75 questions. The questions are long and answers can be either single or multiple choices. You must select the best answers that meet the requirements of the questions.</p><p>My recommendation is:</p><ul><li>Spend about 2 minutes (or less) per question.</li><li>Do not hesitate to flag a question to be reviewed later if you have some doubts.</li><li>Read the questions and the answers: a simple word can change the meaning of a sentence.</li></ul><h3>Conclusion</h3><p>The Solution Architect Professional certification is worth to be passed for many reasons. It validates you have the required skills to design complex systems and applications on AWS. Also, it is the top-paying certification as per <a href="https://www.globalknowledge.com/ca-en/resources/resource-library/articles/how-to-earn-a-top-paying-aws-certification-salary/">Global Knowledge</a>. Since it is one of the toughest exam, it is advised to not rush into it but take the time to master every service. The advise we provide in this article will help you earn it.</p><h3>References</h3><ol><li><a href="https://d1.awsstatic.com/training-and-certification/docs-sa-pro/AWS-Certified-Solutions-Architect-Professional_Exam-Guide.pdf">SAP Exam Guide</a></li><li><a href="https://aws.amazon.com/architecture/well-architected/?wa-lens-whitepapers.sort-by=item.additionalFields.sortDate&amp;wa-lens-whitepapers.sort-order=desc">AWS Well-Architected Framework</a></li><li><a href="https://aws.amazon.com/blogs/architecture/">AWS Architecture Blog</a></li><li><a href="https://aws.amazon.com/blogs/devops/">AWS DevOps Blog</a></li><li><a href="https://aplnexted.com/focus-and-repetition-in-learning/#:~:text=Repetition%20is%20a%20key%20learning,time%20and%20gradually%20becomes%20easier.">Focus &amp; Repetition in learning</a></li><li><a href="https://learn.acloud.guru/course/aws-certified-solutions-architect-professional/dashboard">A Cloud Guru SAP course</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c28bdb418ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Save your storage cost on AWS with Terraform]]></title>
            <link>https://medium.com/@joassouramou/save-your-storage-cost-on-aws-with-terraform-be803a24ac5f?source=rss-59bffc95623d------2</link>
            <guid isPermaLink="false">https://medium.com/p/be803a24ac5f</guid>
            <category><![CDATA[ebs-volume]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[terraform]]></category>
            <dc:creator><![CDATA[@joassouramou]]></dc:creator>
            <pubDate>Fri, 28 Jan 2022 05:43:17 GMT</pubDate>
            <atom:updated>2022-01-28T05:43:17.328Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ozDYZdrge_cuT0rfor-Pwg.png" /></figure><p>EBS volumes are recommended as storage for file systems as well as database-type applications. Therefore, they can be used to store a high amount of data.</p><p>Since with EBS, you pay for the amount of GB you provision per month until you release the storage, one should make sure that the volumes are released as soon as they are no longer used. As matter of fact, one of the best practices is to create snapshots of unused EBS volumes and delete them to save on costs.</p><p>One solution is to use AWS Config which has a rule and a remediation plan for unused EBS. Knowing that AWS Config has a cost, we will present in this article, a low-cost option using Infrastructure as Code via Terraform. This can be a hands-on lab for those preparing the AWS Certified Professional DevOps exam.</p><h3>The solution</h3><p>The solution is quite simple.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qolSpAHO6VPq3jpcbwGSiw.png" /><figcaption>Solution Architecture</figcaption></figure><p>We used a Lambda function that:</p><ol><li>Retrieves the list of the available EBS volumes</li><li>Creates a snapshot for each of them</li><li>Deletes the EBS volumes</li></ol><p>A scheduled EventBridge rule will run the function based on a defined schedule.</p><p>The structure of the Terraform project is as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*BcMz0Tb4P6XdURx-H5KZVQ.png" /></figure><p>The file <em>main.tf</em> defines the AWS resources required.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/db9541783cb462409466c42d3b4ef9c3/href">https://medium.com/media/db9541783cb462409466c42d3b4ef9c3/href</a></iframe><p>The main resources are:</p><ul><li>The <strong>role and policy</strong> in <em>policy</em> folder that define the permissions to list EBS volumes, list and update tags, and create snapshots.</li><li>The <strong>lambda function</strong> defined in <em>code/index.py </em>will assume the role to list the EBS available volumes, create the snapshots and delete the volumes.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ff0b42b85fe3666f88cc8b65c055ad7d/href">https://medium.com/media/ff0b42b85fe3666f88cc8b65c055ad7d/href</a></iframe><ul><li>The <strong>EventBridge rule</strong> has the lambda function as target and will run on a schedule defined in the variable <em>schedule.start</em> in <em>variable.tf</em> below:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/540e463d88794519988ffea72674058c/href">https://medium.com/media/540e463d88794519988ffea72674058c/href</a></iframe><p>Refer to the <a href="https://github.com/ilsaTi/automatic-ebs-snapshot">GitHub repository</a> for more details.</p><h3>Deploy</h3><p>To be able to deploy this solution, here are few prerequisites:</p><ol><li>Terraform must be installed</li><li>AWS CLI must be installed</li><li>IAM profile with permissions to create EventBridge rule and Lambda function is required.</li></ol><p>The executable <em>build-deploy.sh</em> contains commands to validate the Terraform code and deploy the resources in AWS cloud. Once Terraform is initiated, use the command below:</p><pre>./build-deploy.sh</pre><h3>Result</h3><p>Six resources will be created by Terraform in AWS as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E_6qoPLKs4h5fT819QiOsQ.png" /><figcaption>Resources created</figcaption></figure><p>In AWS Console, the Lambda function and its EvenBridge trigger are created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HYXo-rIBrtpCMXDf8X-x5w.png" /><figcaption>Resources created in AWS Console</figcaption></figure><h3>Conclusion</h3><p>We have shown how we can implement a light solution to reduce the cost of EBS volumes that does not involve AWS Config. This exercise is itself a good hands-on lab for DevOps/SysOps colleagues since it involves Infrastructure as Code with Terraform and automation in Cloud.</p><p>We could improve further this solution in many ways: automate the snapshots lifecycle, replace the EventBridge schedule rule by an event pattern (EBS status change), etc.</p><h3>References</h3><ol><li><a href="https://aws.amazon.com/ebs/pricing/">https://aws.amazon.com/ebs/pricing/</a></li><li><a href="https://aws.amazon.com/config/pricing/">https://aws.amazon.com/config/pricing/</a></li><li><a href="https://learn.hashicorp.com/collections/terraform/aws-get-started">https://learn.hashicorp.com/collections/terraform/aws-get-started</a></li><li><a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-rule-schedule.html">https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-rule-schedule.html</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be803a24ac5f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Manage on-premise instances using AWS System Manager and Terraform]]></title>
            <link>https://medium.com/@joassouramou/manage-on-premise-instances-using-aws-system-manager-and-terraform-81aa63dce8e2?source=rss-59bffc95623d------2</link>
            <guid isPermaLink="false">https://medium.com/p/81aa63dce8e2</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[hybrid]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[sms]]></category>
            <dc:creator><![CDATA[@joassouramou]]></dc:creator>
            <pubDate>Mon, 17 Jan 2022 02:47:22 GMT</pubDate>
            <atom:updated>2022-01-17T02:47:22.381Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e1vaB028J3boFMxqBqbHPQ.png" /></figure><p>Organizations have been using more and more hybrid cloud for many reasons. It allows them to manage their legacy infrastructure and critical applications in their private cloud.</p><p>AWS System Manager enables a centralized management of both cloud and on-premise servers. To do so, a SSM agent must be installed on every server. Some of the EC2 images, like Amazon Linux AMIs, have SSM agent already installed. In this article, we show how to use Infrastructure as Code with Terraform to install SSM agent on an on-premise server.</p><p>What are we going to cover in this article?</p><ul><li>Create a managed-instance activation for a hybrid environment</li><li>Create parameters with SSM Parameter Store</li><li>Install SSM agent</li><li>Deploy all</li></ul><h4>Prerequisites</h4><ol><li>Terraform must be installed on your local. Refer to the <a href="https://learn.hashicorp.com/collections/terraform/aws-get-started">first step documentation</a></li><li>Check out <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-prereqs.html">AWS System Manager prerequisites</a></li><li><a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users.html">AWS profile</a> with required permissions to read SSM Parameter Store and launch EC2 instances.</li></ol><h4>Create a managed-instance activation for a hybrid environment</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k419yXPf6HfYYXpOFkB9Iw.png" /></figure><p>Specify the <em>instance limit</em> and <em>Activation expiry date</em> required. For this demo, <em>Instance</em> is 1 and no<em> Activation expiry date</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H0GJ-db_HBswj-SLm2g5nQ.png" /></figure><p>Create activation.</p><p>Once the activation created, we will save the Activation Code and ID to be used in the next section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X8ylzfKLlUBkon3H_9879w.png" /></figure><h4>Create SSM Parameter Store</h4><p>Create two parameters as below. Here the parameters type is SecureString.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jSouKgr7zH2I44Uiju5tPw.png" /></figure><h4>Install SSM Agent with Terraform</h4><p>In this section, we install the SSM agent on a server using Terraform. For more convenience, the server will be an EC2 instance with the RHEL image <em>ami-0b0af3577fe5e3532 </em>below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hk145Q1h16W2PwxHrYc2eg.png" /><figcaption>RHEL 8</figcaption></figure><p>Hence, the EC2 instance has the following properties:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7112666ee13f7f5c35e68a5d6420a023/href">https://medium.com/media/7112666ee13f7f5c35e68a5d6420a023/href</a></iframe><p>Here is the Terraform <em>main.tf </em>that launches the managed instance and installs the SSM agent via the user data. The user data has the activation code and the activation ID previously stored in Parameter Store as inputs.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3e39fef8199062e743c86ed89495b0fe/href">https://medium.com/media/3e39fef8199062e743c86ed89495b0fe/href</a></iframe><h4>Deploy</h4><p>The GitHub repository can be found here: <a href="https://github.com/ilsaTi/ssm-managed-instance">https://github.com/ilsaTi/ssm-managed-instance</a>.</p><p>To deploy, run the following Terraform commands in the main.tf folder.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8c29302bff79ab27b42bc04b2aaa2cc5/href">https://medium.com/media/8c29302bff79ab27b42bc04b2aaa2cc5/href</a></iframe><p>As a result, our on-premise instance has been registered to SSM:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g1-9C4AsNiLcC5i_K86_qA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YPafwK91iuXy39_ANvsWRg.png" /></figure><h4>Conclusion</h4><p>In this article, we have shown how to install SSM agent on an on-premise server with Terraform. Next step would be to use SSM Automation to deploy automation scripts (patching, applications, etc.) onto the servers.</p><h4>References</h4><ol><li><a href="https://learn.hashicorp.com/collections/terraform/aws-get-started">https://learn.hashicorp.com/collections/terraform/aws-get-started</a></li><li><a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-managedinstances.html">https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-managedinstances.html</a></li><li><a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html">https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81aa63dce8e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>