<?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 Eric Stebbins on Medium]]></title>
        <description><![CDATA[Stories by Eric Stebbins on Medium]]></description>
        <link>https://medium.com/@stebbins.eric?source=rss-4e3a4ae87f7b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*JF-r1JLX0cxOtRz9McLK6Q.jpeg</url>
            <title>Stories by Eric Stebbins on Medium</title>
            <link>https://medium.com/@stebbins.eric?source=rss-4e3a4ae87f7b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 06:24:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@stebbins.eric/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[Creating an Executive Cost Presentation with AWS]]></title>
            <link>https://medium.com/@stebbins.eric/creating-an-executive-cost-presentation-with-aws-a98582b3e9fa?source=rss-4e3a4ae87f7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a98582b3e9fa</guid>
            <category><![CDATA[system-migration]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cost-estimation]]></category>
            <category><![CDATA[presentation-tips]]></category>
            <category><![CDATA[cloud-infrastructure]]></category>
            <dc:creator><![CDATA[Eric Stebbins]]></dc:creator>
            <pubDate>Thu, 31 Aug 2023 00:22:12 GMT</pubDate>
            <atom:updated>2023-08-31T00:22:12.914Z</atom:updated>
            <content:encoded><![CDATA[<p>Today’s task was to take the specifications of an existing, in-house SAP installation in our hypothetical company’s data center and create an estimate of what a similar system would cost if migrated to Amazon Web Services.</p><p>The following graphic indicates the specs of the existing system:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hu52t17KPe8LnKCHejaDIw.png" /><figcaption>Existing SAP System Specs</figcaption></figure><p>As shown above, there are two distinct tech layers involved in this installation — the application layer, and the data layer — and three separate environments to implement in the cloud — Production, Stage, and Development.</p><p>These three different environments have different computing power and storage needs, as noted in the individual specs. Executive management would like to know how much an equivalent system would cost in the cloud on a monthly and annual basis.</p><p>The question for us as cloud engineers and architects is: Given these differences, how do we come up with a somewhat accurate ballpark estimate of what these costs will be?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/345/1*MyHxK9LjP9uvYRxXjfX1uw.png" /></figure><p>Fortunately, the Amazon price calculator found at the URL above can do just that. It’s a simple but powerful tool that allows you to select and configure services that will suit the needs of the system you intend to build or migrate to AWS.</p><p>For this use case, we need to go through and add services for each of the individual groups in the two system layers in the first graphic. For instance, we know we need 5 virtual application servers that have 8 CPU cores and 16GB of RAM each. We also know that Amazon EC2 is their virtual computing solution, so we search for EC2 and click Configure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*ozLIUByYsrEuEJklMPxGAg.png" /></figure><p>Plugging the minimum specs of the server (8 CPUs, 16GB) into the configurator, we can see that the c6g.2xlarge instance type is the least expensive option that will suit the needs of the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Td4b8p6BVEdtEE1eP1Mg8Q.png" /></figure><p>So we select that, select our payment options, add the necessary storage, and then click “Save and Add Service” at the bottom of the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*ZMYYHYfA-upjKFq2FMLNJQ.png" /></figure><p>Going through and taking similar steps with the remaining services (load balancers, network file storage, and database services), we ended up with our base estimate. We also need to add support, and the only support that will be adequate due to requirements of phone support and a 15–minute response time for critical outages is the enterprise tier support, so we add that. here is the resulting estimate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1WlVMfFXlkAZdnj6c62frQ.png" /><figcaption>Estimate in the Pricing Calculator</figcaption></figure><p>Note that these names don’t differentiate between the different system environments — we’ll fix that later.</p><p>In the top right of this screen, there’s an “Export” button where we can save these figures as a .csv file, so we go ahead and do that and open the resulting file. In the screenshot below, I have already added descriptors to be able to differentiate between the different system environments in the final report.</p><p>Opening our PowerPoint presentation, we then paste this data into the pie charts that existed from our last report. After a little bit of formatting, we ended up with the polished report below that could be presented to the managers tasked with making a decision on moving forward with the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-gNf7nwPMK3YGMpNwJZq-A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Lg8PKi8SQSFZKEYnDyMtw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UIfnjXXSyxUtz16pcZHXGQ.png" /></figure><p>If you’re still with me, thank you for reading, and I hope you found this article informative on how to use the AWS Pricing Calculator to estimate the cost of a system of virtually any size.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a98582b3e9fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hands-On Exercise: Implementing a Serverless System to Process Order Files using AWS S3, Lambda…]]></title>
            <link>https://medium.com/@stebbins.eric/hands-on-exercise-implementing-a-serverless-system-to-process-order-files-using-aws-s3-lambda-17b378fca82a?source=rss-4e3a4ae87f7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/17b378fca82a</guid>
            <category><![CDATA[dynamodb]]></category>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[serverless-architecture]]></category>
            <dc:creator><![CDATA[Eric Stebbins]]></dc:creator>
            <pubDate>Tue, 29 Aug 2023 23:59:21 GMT</pubDate>
            <atom:updated>2023-08-30T00:05:03.587Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hands-On Exercise: Implementing a Serverless System to Process Order Files using AWS S3, Lambda, Python, and DynamoDB</h3><p>Today, I completed a hands-on challenge to implement what is known as a “serverless” system to take order files uploaded by customers of a hypothetical produce company to AWS S3 and process them into an orders table in DynamoDB. Here is the description of the project:</p><blockquote>Challenge Scenario</blockquote><blockquote>Imagine that FreshProduce Inc. is a leading agricultural company that supplies fresh produce to various regions. They receive daily orders in the form of CSV files from different retailers and distributors. These CSV files contain information about the types, quantities, and delivery details of the produce requested.</blockquote><blockquote><strong>Problem Statement:</strong> FreshProduce Inc. is looking to automate the order processing system. They want to upload the CSV files to Amazon S3 and then process the data to write the order details to a DynamoDB table. This system must be efficient, scalable, and serverless to handle the varying volume of orders.</blockquote><blockquote><strong>Your Mission:</strong> Create a solution to build a serverless system using AWS Lambda to load CSV files from S3, process the data, and write the output to a DynamoDB table.</blockquote><blockquote>This was a fairly quick and easy process, but first, a little background. Amazon S3 is Amazon’s cloud file storage solution. Files can be uploaded in several different ways, including via an external application using the AWS SDK, Amazon’s REST API, or via the AWS command line.</blockquote><blockquote>DynamoDB is Amazon’s NoSQL database implementation. It allows you to store data in a very ad-hoc manner, creating columns as you insert data into the table. The data can then be searched and processed in several different ways similar to those mentioned for S3 above.</blockquote><p>I use quotes around the term “serverless” because the servers still exist, they are just maintained by the cloud provider. Amazon’s definition of serverless literally states</p><blockquote>“A serverless architecture is a way to build and run applications and services without having to manage infrastructure. Your application still runs on servers, but all the server management is done by AWS.”</blockquote><p>Here is how we accomplished the mission using a very cool, new-to-me “serverless” feature of AWS called AWS Lambda.</p><p>In order to create this system, we first needed to create the S3 bucket and DynamoDB table to contain the order files and order data, respectively.</p><figure><img alt="Screenshot of AWS S3 Bucket Name" src="https://cdn-images-1.medium.com/max/695/1*Vai7I3jq3jtCczFrt5rvww.png" /><figcaption>S3 Bucket Created</figcaption></figure><figure><img alt="Screenshot of DynamoDB Table created" src="https://cdn-images-1.medium.com/max/974/1*WrNOc2g6cMyEJll1zI3JvA.png" /><figcaption>DynamoDB Table</figcaption></figure><p>The DynamoDB table was given a single column, order_id, as the index or primary key of the table.</p><p>The core of this system, as previously mentioned, was created using AWS Lambda. This service allows you to automatically execute code when a given action happens in your AWS environment. In this case, we want to automatically execute a Python script when an order file is uploaded to Amazon S3.</p><p>To do this, we created a virtual environment using AWS Cloud 9, which is Amazon’s online software development environment (SDE). I found this SDE to be fairly intuitive and very similar to others that I have used, including Visual Studio and its lighter-weight counterpart, VS Code. Here is what the interface looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*AcX6Wm7v5E0gpbQqKGJ_RQ.png" /><figcaption>Cloud9 Interface</figcaption></figure><p>This screen has four major components: The menu bar at the top, the file explorer on the left, the file editor window on the right, and the command line interface on the bottom. The code in the file being edited was written during the exercise by our instructor, but should be fairly easy to understand for a developer with some experience in Python or other similar languages. For others reading, the code does the following:</p><ol><li>Sets up the necessary dependencies</li><li>Defines a function called lambda_handler that:</li><li>Gets the file details from the S3 event</li><li>Downloads the file and reads the data stream into memory</li><li>Identifies the DynamoDB table to write to</li><li>Creates a CSV data object in memory from the contents of the file</li><li>Iterates through each row in the CSV data object and inserts it into the DynamoDB table</li><li>Once done, returns a 200 (success) code to Lambda</li></ol><p>Unfortunately, right after completing the exercise, my computer crashed so I lost all of the command line history that I would have used here for screenshots, but using the command line, we:</p><ol><li>Created the directory structure shown in the file explorer</li><li>Created a zip file containing the Python script, the requirements file, and other system files needed by the virtual environment</li></ol><p>After completing this, all that we needed to do was to actually create and configure the Lambda function, and a trigger to fire it off:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ghplKAUQUOl6iOK7DLW8sg.png" /><figcaption>Lambda Function in AWS Console</figcaption></figure><p>As you can see in the bottom of the screenshot, the function was created using the Python 3.7 runtime, to match the environment in which the code was designed to run. The code was uploaded to the trigger using the command line as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*HYDQx-ydcO0PgkdliqPfCw.png" /><figcaption>CLI Command to Update Lambda Function</figcaption></figure><p>In the permissions area (under Configuration) we needed to add access to read S3 and write to DynamoDB to the function:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*6ITYhgRZE4g0maJXsrXoZw.png" /><figcaption>IAM Role of the Function</figcaption></figure><p>Clicking on the role opens a new IAM tab, and we added the bottom two permissions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*bXm9r4I__mRLu08CbqeMUg.png" /><figcaption>Permissions for Lambda Function’s IAM Role</figcaption></figure><h3><strong>NOTE:</strong> In a production environment, we would NEVER give full permission to this function for either of these services.</h3><p>It is best practice to limit permissions for people and apps to the minimum necessary in order to accomplish their tasks.</p><p>With this completed, all that is needed to do is test.</p><p>I uploaded a simple .csv file containing the following data:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*Sd4VsKw_ep6Dsxxw2sfkcA.png" /></figure><p>The first line contains the field names. Note that these names align with what is in the code as the column identifiers for the .csv reader and the database.</p><p>And then we go and look in the DynamoDB table:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5sHmUFOMOH0rSb3P-zO5gQ.png" /></figure><p>Et voila! There are the orders. Keep in mind this is just a very basic test. This simple system is automated, scalable, and can handle very large order files from multiple customers, containing thousands of items.</p><p>I hope you enjoyed reading this article. I certainly enjoyed implementing this system along with my colleagues and Jean Rodrigues of TheCloudBootcamp.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17b378fca82a" 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://medium.com/@stebbins.eric/implementation-of-a-set-of-ec2-instances-using-terraform-and-aws-systems-manager-configuration-with-f3d6c0ed9167?source=rss-4e3a4ae87f7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f3d6c0ed9167</guid>
            <category><![CDATA[infrastructure-as-code]]></category>
            <category><![CDATA[aws-ec2]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[terraform]]></category>
            <dc:creator><![CDATA[Eric Stebbins]]></dc:creator>
            <pubDate>Fri, 23 Jun 2023 00:32:00 GMT</pubDate>
            <atom:updated>2023-06-23T00:32:00.427Z</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 agents</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n8BpukIewiIZSwDg227TZg.png" /><figcaption>Technologies involved in project</figcaption></figure><p>In this project based on a real-world scenario, I acted in the role of DevSecOps Engineer, and I 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>Once I provisioned the infrastructure, AWS System Manager and its component Command Run were used to install the security agents in an automated way. I used the Amazon Simple Notification Service — SNS to send an email informing the whole process status.</p><p>The described solution used the following architecture:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_lfls-gHWpTs4eqW2Duecg.png" /></figure><p>In preparation for the automatic deployment of this infrastructure, Terraform and its dependencies need to be installed in the AWS Cloud Shell environment. This was accomplished with the following commands:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*q9mxWklbTLc_B_z-RZNxHA.png" /></figure><p>YUM stands for Yellowdog Updater, Modified and is a command line utility that retrieves software packages and updates from remote locations. In this case we first installed yum-utils, which is a collection of tools for managing YUM repositories. Then, I used these utilities to install Terraform.</p><p>The Terraform code file that was used contained information describing the type and configuration of virtual machines (EC2 instances) and a security group to allow SSH access from external clients. Once run, I verified that these resources had been automatically created.</p><p>The next major step of the project was to install the security agent. After adding a new IAM role with full access to SNS and creating an email notification, the security agent was installed by running a shell script using the “Run Command” feature in the AWS dashboard.</p><p>The installation was verified, and this project was complete!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1C9fvFIe74JbDQjuHx0dMA.png" /><figcaption>Command Output</figcaption></figure><p>I find IaC technology, in this case, Terraform, to be fascinating and brilliant. I can only imagine what sort of cloud software environment builds will be possible, and even easy, with IaC combined with ChatGPT or some other future artificial intelligence. I’d really like to test this theory out, so stay tuned.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f3d6c0ed9167" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementing a Scalable Web Application using AWS Elastic Beanstalk, DynamoDB, and CloudFront with…]]></title>
            <link>https://medium.com/@stebbins.eric/implementing-a-scalable-web-application-using-aws-elastic-beanstalk-dynamodb-cloudfront-and-edge-5a3f0702657?source=rss-4e3a4ae87f7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a3f0702657</guid>
            <category><![CDATA[elastic-beanstalk]]></category>
            <category><![CDATA[multi-cloud]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws-ec2]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Eric Stebbins]]></dc:creator>
            <pubDate>Tue, 28 Mar 2023 15:57:44 GMT</pubDate>
            <atom:updated>2023-04-11T22:56:39.687Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>Implementing a Scalable Web Application using AWS Elastic Beanstalk, DynamoDB, and CloudFront with Edge Locations</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fomkaNkDk3i6z-kiBfh4TQ.png" /></figure><p>For the third project in the AWS series, I was responsible for implementing an application that would support the demand of a large number of users accessing it simultaneously. This application was originally 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>The raffle event was broadcast online and in person and 10 vouchers were drawn for 3 Cloud certifications. At that moment, more than 10,000 people in the audience registered their e-mails to guarantee their participation in the raffle.</p><p>We used AWS Elastic Beanstalk services to deploy the web application, DynamoDB to store users, and CloudFront to cache static and dynamic files in an Edge Location close to the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/1*Ph8L-lk2vh-ARqvQ7drymQ.png" /><figcaption>DynamoDB Table — users</figcaption></figure><p>DynamoDB is Amazon’s NoSQL database offering. While NoSQL databases lack many of the features of a standard relational database, they offer advantages in data flexibility and reduced setup and configuration overhead. The application in question requires a table named ‘users’ to store email address information, so as our first step, that table was created.</p><p>Elastic Beanstalk (EBS) allows you to set up a load-balanced, multiple-instance EC2 application in one place, automating a lot of the steps that you would take to implement the same application using individual services. The next step was to set up this environment.</p><p>The EBS setup wizard will prompt for several things, including the environment platform, the application code to be uploaded, disk storage volume, etc. For an application that is spread over multiple instances, EBS automatically sets up a load balancer that will send new clients to one of the instances in the group depending on the load being experienced by each server node.</p><p>One of the most important configurations of this exercise was the auto-scaling setup. Here are the settings that we used:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/233/1*GdAF1mke0kPQRi5MYJ2kng.png" /><figcaption>Auto-Scaling Configuration</figcaption></figure><p>As a short explanation of what these settings describe, this will set up an auto-scaling group with at least two but no more than four t2-micro EC2 instances. If there are under four instances in the group, the system will initialize another instance if the average CPU percentage rises above 50% for over one minute (determined by the Period). Similarly, if the average CPU usage falls below 40% for over one minute, an instance will be removed.</p><p>After performing a scaling action, the system will wait for one minute (as determined by the breach duration). This prevents instances from being added and removed too rapidly.</p><p>The application was deployed successfully and was tested out by inputting a test email address using the registration form:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*kVnEc7rlpfV7aEIcE5xflA.jpeg" /><figcaption>Registration Form</figcaption></figure><p>For the purposes of this exercise, the final layer to be added was CloudFront. CloudFront is a “Low Latency Content Delivery Network (CDN).” Basically, this means that when your application is accessed by a client in a new location that may be far away from the physical host of the application, CloudFront stores the data that was transmitted at the network edge location closest to the client. With many clients accessing the application from geographically diverse locations, this can drastically cut down on the time that it takes for data to be sent to the client (latency).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DcbahmoS-L06L-S7QYpV5g.png" /><figcaption>CloudFront Distribution</figcaption></figure><p>Here is the final architecture of the app:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9CyQP22KPfAUgpcqlqKdGw.png" /></figure><p>So in theory, registration requests would come in through Amazon’s DNS layer (Route 53). CloudFront would then send the request to Elastic Beanstalk’s load balancer (ELB) which would subsequently forward it to an EC2 node selected by the ELB for availability. The selected node would then store the email address in DynamoDB, send the response back through the ELB and CloudFront, and CloudFront would then cache the response at that edge location if it hadn’t already done so.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*5RQsUucf8DEczVUymzFMQQ.png" /><figcaption>EBS Environment Up and Running</figcaption></figure><p>With no load on the system, there should be a default of two instances running per our configuration. In order to make sure this was all working properly, we needed a way to apply a load to one of the instances in the scaling group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5sag6b6pa6qm2qMHukROag.png" /><figcaption>Default: Two Instances</figcaption></figure><p>I logged into one of the instances in SSH using its configured public IP address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*30Yv6zP_MmEdIc1Yj5Wy8w.jpeg" /></figure><p>There is a helpful Linux app called ‘stress’ that can be installed in Amazon Linux, but it also requires some prerequisites, so the following two commands were run:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*VE0skvD3lX3or-xyAo1rVA.png" /></figure><p>‘epel’ indicates “Extra Packages for Enterprise Linux,” which includes the stress installer, so that was installed first. Stress was then installed using yum.</p><p>I then ran stress using the command ‘stress -c 4’. The -c flag tells the program how many workers to spawn in order to max out the CPU.</p><p>After running this, I checked to make sure a load was being applied by using the Linux application ‘top’:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*H38W5fnXBC9kAWD3RkuU-w.jpeg" /></figure><p>This shows the four stress processes taking up 25% of the CPU cycles each, so we can state that the CPU was being maxed out at 100%. After that, I took a look at what was going on with the scaling group in the EBS Console:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZCK-A0RzBVndWaX73aC0Nw.jpeg" /><figcaption>EBS Environment in Warning State</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gcrnz73v-0SBSQyigaBLpA.jpeg" /><figcaption>List of EC2 instances</figcaption></figure><p>The screenshots above show us the health of the scaling group has degraded to a Warning state, and the recent events and the instance list show that an instance was added to the environment. This indicates that the auto-scaling is functioning as intended.</p><p>When the ‘stress’ process was halted and I waited for a few minutes to allow the system to react, I noted that one of the instances had been terminated, and the scaling group was back down to two t2.micro instances.</p><p>The final check was to make sure that the CloudFront system was properly forwarding requests and responses. I did this by accessing the CloudFront DNS name, and adding another email address to the registry:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qm4fPlkoAdZqjm43E2nhPQ.jpeg" /><figcaption>Raffle Registration Accessed via CloudFront</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0X8oofB2yf08_L4iM4CkUw.jpeg" /><figcaption>Success!</figcaption></figure><p>And I then verified that it had been added to the DynamoDB table:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H7lVK6KmfLlH9Ut5hXgEhw.jpeg" /></figure><p>In Conclusion, completing this project required learning a lot about several very cool AWS technologies including DynamoDB, Elastic Beanstalk, Elastic Load Balancing, EC2 servers and auto-scaling, CloudFront, and CloudWatch. It allowed us to deploy a simple web application to the cloud with minimal configuration and implementation time, and it resulted in a robust, scalable application that can handle high volume without a lot of monitoring and hands-on maintenance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a3f0702657" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migration of a Workload running in a Corporate Data Center to AWS using Amazon EC2 and RDS services]]></title>
            <link>https://medium.com/@stebbins.eric/migration-of-a-workload-running-in-a-corporate-data-center-to-aws-using-amazon-ec2-and-rds-services-95999d8e653f?source=rss-4e3a4ae87f7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/95999d8e653f</guid>
            <category><![CDATA[cloud-migration]]></category>
            <category><![CDATA[aws-rds]]></category>
            <category><![CDATA[aws-certification]]></category>
            <category><![CDATA[aws-ec2]]></category>
            <category><![CDATA[multi-cloud]]></category>
            <dc:creator><![CDATA[Eric Stebbins]]></dc:creator>
            <pubDate>Fri, 17 Mar 2023 20:34:13 GMT</pubDate>
            <atom:updated>2023-03-20T22:10:11.815Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ebChOP5b4PLnTjPUg8997Q.png" /><figcaption>Project Overview</figcaption></figure><p>In another project based on a real-world scenario, I acted as the Cloud Specialist responsible for migrating a small corporate wiki application running in an on-premises data center to AWS. The application and database were migrated to AWS using the Lift &amp; Shift (rehost) model, moving both application and database data.</p><p>The following spreadsheet was used to outline the resources being moved from the data center to the cloud:</p><p><a href="https://docs.google.com/spreadsheets/d/1E3ID6vW8wO8UjImKdkUd-mQO0XU8zVbeoWlr4icMi_M/edit?usp=sharing">https://docs.google.com/spreadsheets/d/1E3ID6vW8wO8UjImKdkUd-mQO0XU8zVbeoWlr4icMi_M/edit?usp=sharing</a></p><p>I followed some standard, best practice migration steps/phases that are analogous to the software development waterfall model: 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><p>As indicated in the spreadsheet, during the Planning phase, it was determined that we would need one EC2 instance to take over the duties of the current application server (appserver01), and one RDS instance to host the database currently residing on the database server (dbserver01).</p><p>For the purposes of this exercise, the t2.micro instance size was determined to be adequate for each of these services. They would both reside in the same region, availability zone, and Virtual Private Cloud (us-east-1, az1, and vpc-production-1, respectively). They were named awsuse1app01 (app server) and awsuse1db01 (database server), and hosted on separate subnets (vpc-production-1-pu-1 for the public subnet, and vpc-production-1-pv-1 for private). As also indicated, the database server was hosted on the private subnet to prevent public access, and the application server in the more accessible public subnet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lI7BI2j44WzrkMld9NlXXQ.png" /><figcaption>Architecture of existing, self-hosted application and the application after migration to AWS</figcaption></figure><p>A few other things needed to be configured before migrating services in order to allow the application to function correctly.</p><p>As previously mentioned, two subnets were set up for this project:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MjQgvsUDU7PhpEO7y_v48A.png" /><figcaption>Subnets for vpc-production-1</figcaption></figure><p>An internet gateway needed to be created to associate a public IP address with this VPC:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7AHXzr_cNtJ9ZJF6q-J0mA.png" /><figcaption>Internet Gateway</figcaption></figure><p>A routing table needed to be created to allow external access to the internet gateway, and to allow the local subnets to communicate with each other:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VBDg2egPT7Kwrdu3jJamIw.png" /></figure><p>The EC2 instance, which is a virtual server running on AWS, was provisioned as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wYJIg5JEFuMURpUAfn7WZw.png" /></figure><p>The RDS database server instance was provisioned as well:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8mLA4C9IfDlk2qT_nyiRXw.png" /></figure><p>After this was all set up, it was time to prep these servers and migrate resources. This was done through Git BASH console commands.</p><p>The EC2 instance needed several packages installed including Python3, the MySQL client, and quite a few others to support these two.</p><p>The database was created within the RDS instance, a MySQL export script created on the existing, self-hosted database was migrated and run to populate the tables, and a MySQL user was created to give the application database access.</p><p>The data migration was verified by querying the tables created by the script:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZUNiMvbRhNUi3vwj8g82vw.png" /></figure><p>And finally, the application’s ability to read from and write to the database was verified by navigating to the AWS app’s external IP and creating a wiki article:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UknLFmizqaq-p7Ad9Rvtkg.png" /><figcaption>Article ID #5 was created using the “Add Article” button, verifying full functionality of the app</figcaption></figure><p>In conclusion, this project was a good opportunity to get hands-on experience using a VPC (Virtual Private Cloud), AWS EC2 to host applications, and configuring Amazon RDS to host a database migrated from an on-prem server. It allowed me to explore configuring a cloud application for internet access, and to facilitate communications between separate subnets within the VPC.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95999d8e653f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Project: Automated user migration and management of AWS Identity and Access Management (IAM)…]]></title>
            <link>https://medium.com/@stebbins.eric/automated-user-migration-and-management-of-aws-identity-and-access-management-iam-resources-f85ee47f2b86?source=rss-4e3a4ae87f7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f85ee47f2b86</guid>
            <category><![CDATA[multi-cloud-management]]></category>
            <category><![CDATA[infrastructure]]></category>
            <category><![CDATA[multi-cloud]]></category>
            <dc:creator><![CDATA[Eric Stebbins]]></dc:creator>
            <pubDate>Thu, 23 Feb 2023 01:32:43 GMT</pubDate>
            <atom:updated>2023-03-03T20:28:50.852Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>Project: Automated user migration and management of AWS Identity and Access Management (IAM) resources</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xJSBB87Yz6VkiizgA_BMiw.png" /></figure><p>In this project based on a real-world scenario, I acted in the capacity of Cloud Specialist with the mission to migrate users in an automated way and manage AWS IAM (Identity and Access Management) resources.</p><p>There were 100 users that needed to be migrated and have MFA (Multi-factor authentication) enabled on their accounts, as this is a security best practice.</p><p>To avoid repetitive and manual tasks in the AWS console, I needed to think about automating the processes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LHfljx4Vp95tlBpUSP6vYg.png" /></figure><p>There was a .csv file provided that contained (among other columns) usernames and job groups. These users belonged to one of five functional groups: DBA, Network Admin, Cloud Admin, Linux Admin, and Trainee.</p><p>The first task was to create these user groups in AWS and apply the correct security policies, ensuring that the users would only be given access to the appropriate resources in order to complete their work. The following screenshot is an example of security policies correctly applied to the appropriate group:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wzzJ-oTOEFkYk8Lh5V8hFQ.png" /><figcaption>The LinuxAdmin group, with policies attached</figcaption></figure><p>Using GitBash with AWS CLI and Shell Script, the following script was run to import the users into the AWS account as IAM users. In order to perform this as a proof of concept, the .csv file was reduced to a list of five users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*K4HRT_jkBCVa5oXXXNMveA.jpeg" /></figure><p>The script created the users and added them to the appropriate groups:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*AcWsApNQoGNppjYZMDxrJA.jpeg" /></figure><p>And the users were verified to exist in AWS IAM, with the appropriate group membership:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O5qQnoof-QfRDy_LimbC3A.jpeg" /><figcaption>User list after the CLI script was run</figcaption></figure><p>As a last step for the project, enabling Multi-Factor-Authentication (MFA) is a recommended step for any users having direct login access to the console in order to prevent unauthorized access with a compromised password. Using JSON, a security policy was created that would require a user to enable MFA before accessing any resources. This policy was added to the AWS account. The following screenshot illustrates that one user had been able to log in and create a virtual MFA device.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ShEgxNNosrDIReoFeEcqyg.jpeg" /></figure><p>In conclusion, migrating an existing list of users to AWS IAM to reduce localized administrative overhead can be accomplished in a fairly straightforward manner.</p><p>In this exercise, we leveraged existing data, the AWS IAM console, security groups, security policies, the AWS CLI and Git Bash, Shell Scripting, and AWS MFA to accomplish the goal of automated user migration.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f85ee47f2b86" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>