<?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 Richard Forman Jr on Medium]]></title>
        <description><![CDATA[Stories by Richard Forman Jr on Medium]]></description>
        <link>https://medium.com/@richard_forman?source=rss-1971c0ef2938------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yXqSOk6aPHtuNIduyeuZcA@2x.jpeg</url>
            <title>Stories by Richard Forman Jr on Medium</title>
            <link>https://medium.com/@richard_forman?source=rss-1971c0ef2938------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 02:17:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@richard_forman/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[Continuous Development and Deployment with Docker and Jenkins]]></title>
            <link>https://medium.com/@richard_forman/continuous-development-and-deployment-with-docker-and-jenkins-abf2e2483047?source=rss-1971c0ef2938------2</link>
            <guid isPermaLink="false">https://medium.com/p/abf2e2483047</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[continuous-deployment]]></category>
            <category><![CDATA[jenkins]]></category>
            <dc:creator><![CDATA[Richard Forman Jr]]></dc:creator>
            <pubDate>Sun, 13 Jul 2025 22:44:00 GMT</pubDate>
            <atom:updated>2025-07-13T22:44:00.150Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*--Yr-kG84Q6bQDN0eesnTg.png" /></figure><p><strong><em>Scenario</em></strong><em>:</em></p><p><em>Level Up Solutions is a leader in providing technology solutions constantly exploring ways to optimize its software development and deployment procedures. The company is devoted to adopt tools and methodologies that can streamline their operations, improve productivity, and enhance the quality of their applications. The proposed solution to address these needs involves leveraging Docker and Jenkins.</em></p><p><strong><em>Objective:</em></strong></p><p><em>The main objective of this project at Level Up Solutions is to use Docker for creating and managing Jenkins containers, emphasizing the implementation of persistent volumes. This strategy aims to build a robust, scalable Continuous Integration and Continuous Deployment (CI/CD) pipeline, facilitating frequent and reliable deployment of software updates.</em></p><p><strong><em>What is it?</em></strong></p><p><em>Jenkins is a self-contained, open source automation server which can be used to automate all sorts of tasks related to building, testing, and delivering or deploying software.</em></p><p><strong><em>Tasks List:</em></strong></p><p><strong><em>Using the CLI</em></strong></p><ol><li><em>Pull the Jenkins LTS image from Docker Hub.</em></li><li><em>Create a Docker volume for Jenkins to persist its data.</em></li><li><em>Run the container with the volume and correct port mapped to the container.</em></li><li><em>Retrieve the Admin password.</em></li><li><em>Login and create a new user.</em></li><li><em>Launch a new Jenkins container using the same volume and verify that the data has persisted by logging in as the newly created user.</em></li></ol><p><strong><em>Solution:</em></strong></p><p><em>Step 1. Pull the Jenkins LTS image from Docker Hub</em></p><p><em>Login to Docker Hub ( you will need a Docker login for this), search for the official version of Jenkins via the search bar, and once located copy and paste this into your terminal.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hyJ88abG0kHbRge4oO7qiA.png" /></figure><pre>docker pull jenkins/jenkins:lts-jdk17</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W4p80fP9MGb7Jz_Jj3IwnA.png" /></figure><p><em>Step 2. Create a Docker Volume for Jenkins to persist its data.</em></p><pre>docker volume create myjenkins-data</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xOQ5YdmSI8VVlG5UcSxT3A.png" /></figure><p><em>Step 3. Run the container with the volume and correct port mapped to the container.</em></p><pre> docker run -d -p 8080:8080 -p 50000:50000 <br>-v myjenkins-data:/var/jenkins_home --name jenkinsjar jenkins/jenkins:lts</pre><p><em>Next, go to the EC2 instance in the AWS console, get the ivp4 address, and paste it into the browser followed :8080 to open the Jenkins homepage.</em></p><p><em>Step 4. Retrieve the Admin password.</em></p><p><em>Navigate back to VS code (or your IDE) and use the command below to get admin password for Jenkins.</em></p><pre>docker exec jenkinsjar cat /var/jenkins_home/secrets/initialAdminPassword</pre><p><em>Next copy the password from VS Code and paste into the text box on the Jenkins homepage. (jenkinsjar is the name of my container you would put the name of your container there. )</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YgMA4tAlXR7weAz6mTY94g.png" /></figure><p><em>It’s time to set up Jenkins, click on the box that say Install suggested plugins. Jenkins is being configured.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QCxnQxHiBy-todixRCHghg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZYozDYMSjt35IRRKBX6MgA.png" /></figure><p><em>Step 5. Login and create a new user.</em></p><p><em>It’s time to create a user name, password, and type in your other necessary credentials. Remember your user name and password, you will need them to sign in.</em></p><p><em>Save your Jenkins url, this will get you the login page.</em></p><p><em>Click on Starting Jenkins to take you to the Jenkins Dashboard</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zf4A-S0es15srmgXFDZD7w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*egvkjiZP1vUDhwPlyJO6xw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*li0WkNAF6cRsBemC7inybA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qazIBixE8nrHRtF1YxDUfg.png" /></figure><p><em>Step 6. Launch a new Jenkins container using the same volume and verify that the data has persisted by logging in as the newly created user.</em></p><p><em>Run following commands to stop and then remove the container jenkinsjar.</em></p><pre>docker stop jenkinsjar<br>docker rm jenkinsjar </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*DmHL6ZY-zOyabRaCbRnDCw.png" /></figure><p><em>Then run docker run command to run the container with the volume and correct port mapped .</em></p><pre>docker run -d -p 8080:8080 -p 50000:50000 -v myjenkins-data:/var/jenkins_home<br> --name jenkinsjam jenkins/jenkins:lts</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6nBpzLbrinZM1pguop8ZSA.png" /></figure><p><em>Retrieve the url that you just saved during the Jenkins setup, enter the username and password that was just created, and VOILA!</em></p><p><em>We logged in as the newly created user verifying that the data has persisted.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abf2e2483047" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Website Deployment with CI/CD Using AWS CodePipeline]]></title>
            <link>https://medium.com/@richard_forman/automating-website-deployment-with-ci-cd-using-aws-codepipeline-f272e2cb70c6?source=rss-1971c0ef2938------2</link>
            <guid isPermaLink="false">https://medium.com/p/f272e2cb70c6</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[aws-codepipeline]]></category>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Richard Forman Jr]]></dc:creator>
            <pubDate>Tue, 27 May 2025 03:26:38 GMT</pubDate>
            <atom:updated>2025-05-27T03:26:38.480Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GVWe3UOz2Cb5_OVecWc-bA.png" /></figure><h3>Scenario:</h3><p><em>Your team has asked you to create a way to automate the deployment of a website. Currently your developers have to go through the process manually to test each new update to their code. You’ll need to provide the static site URL to the developers and also make a modification to the code in the Git repo to verify the pipeline is working.</em></p><h3><strong>What is it?</strong></h3><p><em>CI/CD (Continuous Integration/Continuous Deployment): The practice where code changes are automatically tested and deployed to production after all checks are passed.</em></p><p><em>Codepipeline: An AWS managed continuous delivery service that helps automate your software release processes.</em></p><p><em>Automation: The use of technology to streamline and perform tasks with reduced human intervention</em></p><h3>Steps:</h3><ol><li>Create<em> a new repository in GitHub or CodeCommit and load the attached HTML.</em></li><li><em>Create and configure a S3 bucket to host your static website.</em></li><li><em>Create a CI/CD pipeline using the </em><strong><em>AWS CodePipeline service</em></strong><em>.</em></li><li><em>Set your repo as the Source Stage of the Codepipeline that is triggered when an update is made to the repo.</em></li><li><em>For the deploy stage select your S3 bucket.</em></li><li><em>Deploy the pipeline and verify that you can reach the static website.</em></li><li><em>Make an update to the code in your code in the repo to verify that the codepipeline is triggered. This can be as simple as changing the wording in the file because any change to the files should trigger the workflow.</em></li></ol><h3>Solution:</h3><p><em>Step 1: Create a new repository in GitHub or CodeCommit and load the attached HTML.</em></p><p><em>Create a Github account if you do not already have one. </em><a href="https://youtu.be/Gn3w1UvTx0A"><em>How to Create a GitHub Account (2025) — Full Tutorial</em></a><em>)</em></p><p><em>Log into GitHub and create a new repository by clicking on New under the Dashboard heading.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aCKLVFyECPO-xBsGWhix3w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PQgEzMwGA2YLWvg7kDI8fA.png" /></figure><p><em>Then configure the repository, click Create repository, add the HTML file, and Commit changes. Always be sure the file that is being uploaded is the same each time it is uploaded.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*whmEtHCjMeZVSi2wPW84rQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5dV_LP4idnwclkTKYfSbrA.png" /></figure><p><em>Step 2: Create and configure S3 bucket to host your static website.</em></p><p><em>Log into the </em><a href="https://aws.amazon.com/free/?trk=507633a7-cfcb-46e3-9390-c0305caab1f8&amp;sc_channel=ps&amp;ef_id=CjwKCAjw87XBBhBIEiwAxP3_AxDGtRv2a-WFzmkUlp7pRtoD9DDIhZrAnKkHIricxHXBLVbIJ0mhqBoCQ1MQAvD_BwE:G:s&amp;s_kwcid=AL!4422!3!733753180489!e!!g!!aws%20console!22264826617!183710503348&amp;gad_campaignid=22264826617&amp;gbraid=0AAAAADjHtp-9G1KZBP0CWYrCwfgkjB61o&amp;gclid=CjwKCAjw87XBBhBIEiwAxP3_AxDGtRv2a-WFzmkUlp7pRtoD9DDIhZrAnKkHIricxHXBLVbIJ0mhqBoCQ1MQAvD_BwE&amp;all-free-tier.sort-by=item.additionalFields.SortRank&amp;all-free-tier.sort-order=asc&amp;awsf.Free%20Tier%20Types=*all&amp;awsf.Free%20Tier%20Categories=*all"><em>AWS Console</em></a><em> or create an account. Once you are logged in type S3 in the search bar or click on recently visited.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DYhWlUhm4vp4M76sL9Z43g.png" /></figure><p><em>Click on create bucket.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fxwJP8rXZNhPfzBTDpMsEw.png" /></figure><p><em>Now lets configure the bucket. Create a bucket with a globally unique name.(No other bucket can have the same name as yours.)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-tjWIKyQzcd0_UiGCNFxSg.png" /></figure><p><em>Block public access will be turned off to ensure that the hosted website will function correctly.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3JnFyPavfaxMbZvBWXho_A.png" /></figure><p><em>The rest of the bucket configuration will maintain the default settings. Click create bucket.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UvZn1vRAe8HoWRGKJRIGog.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QZzSzQxWg_yiZxAR_evqhA.png" /></figure><p><em>Once the bucket is created navigate to the bucket and click on properties. From there scroll down to Static website hosting and click on edit. S3 static website hosting has to be enabled or we will receive an error.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*A4uImkPJVGFs-y7BQieZJA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*T9FR9w2SNDBydSgMTG5rZg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*sRZF8LJqkVPcDgO-gWbHcA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*l6i8Klmlqlf5UtoqRvON1g.png" /><figcaption>Enable static website hosting and save the changes.</figcaption></figure><p><em>Static website hosting is now enabled.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*rlAargc7EBmTC9QfJKRutQ.png" /></figure><p><em>Navigate to the new created S3 bucket go into properties scroll down to Static website hosting and click on Bucket website endpoint to test that the site is functioning properly.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*wXTEpUDzlZ5dlrEfxGDzQw.png" /></figure><p><em>Step 3: Create a CI/CD pipeline using the </em><strong><em>AWS CodePipeline service</em></strong><em>.</em></p><p><em>Type codepipeline in the search bar and click it. Now let’s click create pipeline.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*4K4OckQVVfWYhp1acr6m5A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*8IEgMTtPFn2CZEhZaYhKfg.png" /></figure><p><em>Select Build custom pipeline under Choose creation option and click next. Now under pipeline settings name the pipeline, make it something easy to remember, click next.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*7a-ZXqw0QszL0NDMMY8Tgw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vuvX2rPnpYd_IG5Xmf0ayQ.png" /></figure><p><em>Step 4: Set your repo as the Source Stage of the CodePipeline that is triggered when an update is made to the repo.</em></p><p><em>Choose Github (via github app) as Source provider, choose an existing connection or connect to Github, choose a Repo name from the connected Github account, and type in the default branch. Before clicking next under Webhook events Event type — Push, Filter type — Branch, branches or patterns — main and click next.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8sF1f1niJNuTo-4I91Z2Cg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fcb0AiuEZfhgRqocRAvThA.png" /></figure><p><em>Step 5: For the deploy stage select your S3 bucket.</em></p><p><em>Type in the name of the S3 bucket that was just created and select extract file before deploy. Click Next.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3qfok1INcVA0Wl7eycWRMQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*bgsMI82XOgZTvoSg0Ca-4A.png" /></figure><p><em>Review the configuration and click create pipeline.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*ywO8plIsG2612YHXnUUufA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*CAGI6zdLJYGGfgUZMrj56w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*U7NqBgdoLOJ0baPclqJBuQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*DVkA9SkTM5hNCMXPX2I_iw.png" /></figure><p><em>Step 6: Deploy the pipeline and verify that you can reach the static website.</em></p><p><em>The pipeline is deployed</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*FBzjMIPNLT_pxM7GdbufdQ.png" /></figure><p><em>Navigate to the new created S3 bucket go into properties scroll down to Static website hosting and click on Bucket website endpoint to verify that the site static site can be reached. YES! It worked.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*wXTEpUDzlZ5dlrEfxGDzQw.png" /></figure><p><em>Step 7: Update the code in your repo to verify that the codepipeline is triggered.</em></p><p>Go to Github navigate to the repo that contains the HTML file, click on the pencil on the right side of the screen to update the code. Commit the changes and navigate refresh the browser and the static site is updated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2kMS95AMftdbAibGnDOc3A.png" /></figure><p><em>The update worked the header now reads “Hello Level Up In Tech, This is The Grey Team!”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FG2CmEH5meDd4LoXqnaE7Q.png" /></figure><p><em>That’s a wrap, we have just automated the deployment of a static website using CI/CD with AWS Codepipeline. Thank you for reading and I hope this helps.</em></p><p><em>Issues:</em></p><p><em>The pipeline is not updating after the edit was performed in Github.</em></p><p><em>Source ran but the deploy did not successfully complete.</em></p><p><em>Resolutions:</em></p><p><em>Read AWS documentation on code pipeline</em></p><p><em>I went back through the pipeline to make sure my connection to Github was authorized. I had to disconnect and reconnect to my Github account and run the deployment again.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f272e2cb70c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying Containerized Web Application]]></title>
            <link>https://medium.com/@richard_forman/deploying-containerized-web-application-7e7a67678a8c?source=rss-1971c0ef2938------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e7a67678a8c</guid>
            <category><![CDATA[containerization]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[apache]]></category>
            <category><![CDATA[ec2-instance]]></category>
            <dc:creator><![CDATA[Richard Forman Jr]]></dc:creator>
            <pubDate>Wed, 19 Mar 2025 14:09:21 GMT</pubDate>
            <atom:updated>2025-03-19T16:45:44.449Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GzTKKk3aZvagvKM3P0Owpg.png" /></figure><h4>Scenario:</h4><p><em>Level Up Solutions is a dynamic technology company that offers innovative web solutions to its clients. As part of their software development process, they have decided to adopt containerization using Docker to streamline their web application deployment. Docker provides Level Up Solutions with a flexible and efficient way to package, distribute, and run their applications in isolated containers, ensuring consistency and portability across different environments.</em></p><p><em>Level Up Solutions can harness the benefits of Docker containers, including consistency, portability, isolation, reproducibility, version control, scalability, streamlined deployment, and improved collaboration. These advantages contribute to more efficient and reliable web application deployments, enhancing the overall development and deployment processes for the company.</em></p><h4>Benefits:</h4><ol><li><strong>Consistency and Portability</strong>:<em> By utilizing Docker containers, the company ensures consistency in the deployment process and the containers can run anywhere. This consistency makes it easier to move the application between development, testing, and production environments, enhancing portability and reducing potential deployment issues.</em></li><li><strong>Isolation and Resource Management</strong>: <em>Docker containers provide isolation, allowing the web application to run independently without interfering with the host system or other containers. This isolation ensures that the application’s resources, such as CPU, memory, and disk space, are effectively managed and also increases the security of the applications. Because of the isolation of the web application within a container, Level Up Solutions can avoid conflicts with other applications or services running on the same host.</em></li><li><strong>Reproducibility</strong>: <em>Docker allows Level Up Solutions to create a reproducible deployment environment. By specifying the exact packages and configurations needed for the webapplication within the Dockerfile, the company can ensure that the deployment environment is consistent and reproducible across different stages of the software development lifecycle. This reproducibility simplifies troubleshooting and debugging processes by eliminating environmental discrepancies.</em></li><li><strong>Version Control</strong>: <em>Docker enables Level Up Solutions to version control their application deployments. By building Docker images from specific versions of the web application, the company can easily track and manage different versions of the software. This version control facilitates rollback to previous versions if needed and provides a clear history of changes made to the application.</em></li><li><strong>Scalability</strong>: <em>Docker containers offer scalability advantages. Level Up Solutions can scale their web application horizontally by running multiple instances of the containerized application, either on a single host or across multiple hosts. This ability to scale as needed allows the company to handle increased user traffic and distribute the workload effectively.</em></li><li><strong>Streamlined Deploymen</strong>t: <em>Docker simplifies the deployment process for Level Up Solutions. With Docker containers, the company can package the web application along with its dependencies, libraries, and configurations into a single deployable unit. This packaged unit can be easily deployed on different servers or cloud platforms, reducing the time and effort required for manual installation and configuration.</em></li><li><strong>Collaboration and DevOps Practices</strong>: <em>Docker facilitates collaboration among development and operations teams. With Docker, Level Up Solutions can define the application’s infrastructure as code, making it easier to share and collaborate on deployment configurations. This aligns with DevOps practices, enabling faster and more efficient collaboration between teams, streamlining the development and deployment workflows.</em></li></ol><p><em>Level Up Solutions can leverage Docker Hub for scalability, image sharing, and version control.. These advantages enable the company to streamline their development processes, foster collaboration, ensure reliable software releases, and adapt quickly to changing requirements.</em></p><ol><li><strong>Scalability:</strong> <em>By pushing the Docker image of the web application to Docker Hub, Level Up Solutions gains the ability to scale their deployments efficiently. Docker Hub serves as a centralized repository for Docker images, allowing the company to easily distribute the web application image to multiple servers or cloud platforms. This scalability enables them to handle increased user demand and deploy the application across a cluster of servers.</em></li><li><strong>Image Sharing and Collaboration:</strong> D<em>ocker Hub facilitates image sharing and collaboration within the company and with external stakeholders. By pushing the Docker image to Docker Hub, Level Up Solutions can provide access to the image for their development, testing, and operations teams. This simplifies the sharing of the web application image across different environments and enables seamless collaboration among team members. Additionally, external partners or clients can access the image from Docker Hub, fostering collaboration and streamlined deployment processes.</em></li><li><strong>Version Control and Rollbacks:</strong> <em>By leveraging Docker Hub, Level Up Solutions gains version control capabilities for their web application deployments. Each pushed image to Docker Hub represents a specific version of the application. This allows the company to track and manage different versions of the application, making it easier to roll back to previous versions if necessary. Version control ensures that the application deployment history is well-documented and facilitates reliable and controlled software releases.</em></li></ol><p><strong><em>What is it?</em></strong></p><p><strong><em>Container:</em></strong><em> a lightweight, standalone, executable package of software that includes everything needed to run an application: code, runtime, system tools, system libraries and settings.</em></p><p><strong><em>Docker: </em></strong><em>an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. With Docker, you can manage your infrastructure in the same ways you manage your applications. By taking advantage of Docker’s methodologies for shipping, testing, and deploying code, you can significantly reduce the delay between writing code and running it in production.</em></p><p><strong><em>Image:</em></strong><em> is a standardized package that includes all of the files, binaries, libraries, and configurations to run a container.</em></p><h4>Prerequisites:</h4><p><em>Create an EC2 Instance to be able to SSH: </em><a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EC2_GetStarted.html"><strong><em>Launch an AWS EC2 Instance</em></strong></a><strong><em>.</em></strong></p><p><em>The instance will have an:</em></p><p><em>Ubuntu server</em></p><p><em>type t2.micro</em></p><p><em>create a keypair</em></p><p><em>Security group should allow SSH and HTTP traffic</em></p><p><em>1. Run a Docker Ubuntu container running detached and on port 80</em></p><p><em>2. Using BASH shell update all packages within the container .</em></p><p><em>3. Using BASH install Apache2 on the Ubuntu container.</em></p><p><em>4. Add a custom webpage.</em></p><p><em>5. Verify you can reach the webserver from your browser.</em></p><h4>Solution:</h4><p><strong>Step1.</strong> <strong>Run a Docker Ubuntu container running detached and on port 80</strong></p><p><em>I went to VS Code and SSH into my instance.</em></p><p><em>Click on the Open Remote Window in the bottom left corner.</em></p><p><em>Select Connect to Host from the drop down menu.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AZ2fYy-K4pk1AUqzeyR5tA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iZ2tGmL25ig-XqaJJ9ucoA.png" /></figure><p><em>Select Configure SSH Hosts</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ofaJZjqkswmJRkypQTrlzg.png" /></figure><p><em>Select the configuration file that you want to use/update.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OjX3M3DeXmuy7SoxYbpCsg.png" /></figure><p><em>Now in the config file the HostName: will be the IVP 4 address from the EC2 instance that will be used to SSH into.</em></p><p><em>User: will be ubuntu</em></p><p><em>IdentityFile: will be the path to the created keypair.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aaIY7GVqZzq0761YVvyhLA.png" /></figure><p><em>If Docker is not already installed on in VS Code you will have to install it. (Click the link for assistance: </em><a href="https://youtu.be/2OZHjDV0S4Q?si=1HG4X6nbckUu9uNx"><em>Install Docker on VS Code</em></a><em>)</em></p><p><em>Click on the Open Remote Window in the bottom left corner.</em></p><p><em>Select Connect to Host from the drop down menu.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AZ2fYy-K4pk1AUqzeyR5tA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iZ2tGmL25ig-XqaJJ9ucoA.png" /></figure><p><em>Select Docker as the SSH host.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A5E-GGXh_jbp9HPnlgM8VQ.png" /></figure><p><em>Confirm that you want to continue the SSH process.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5orwh6CzTomEhcBVAdDX7w.png" /><figcaption>After selecting Docker as the SSH host you must confirm you want to continue.</figcaption></figure><p><em>Open a new terminal.</em></p><p><em>Run docker version, this verifies that the current version of ubuntu is running.</em></p><pre>docker version</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l6DvhpPd99o-_Uaq_Av2xw.png" /></figure><p><em>Run curl -s ifconfig.me, this command will save time when it comes to needing the public ip to test the webpage in the browser a bit later.</em></p><pre>curl -s ifconfig.me </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*az457-SHWLp8l78JSCGU_g.png" /></figure><p><em>Go to Docker hub to get the latest image of Ubuntu to run.</em></p><p><em>Copy and paste the command into the terminal to pull the image.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*loItliV1GnZsBjCaSdUCOQ.png" /></figure><pre>docker pull ubuntu</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FzxCFV2G4bTQ4IxAVB813A.png" /></figure><p><em>Run the docker Ubuntu container running detached on port 80.</em></p><pre>docker container run -it - name barry_sanders -d -p 80:80 ubuntu</pre><p><strong>Step 2. Using BASH shell update all packages within the container .</strong></p><p><em>Then using the Bash shell the next objective was to update all packages within the container.</em></p><p><em>Use the following command to get into the Root directory of the container.</em></p><pre>docker exec -it barry_sanders bin/bash</pre><p><em>Now update all the packages.</em></p><pre>apt-get update</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*crr8LBjRpeiDddmFqygw2g.png" /></figure><p><strong>Step 3. Using BASH install Apache2 on the Ubuntu container.</strong></p><p><em>The next step in the process is to install Apache2, this will be done by using</em></p><pre>Apt install apache2</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hiXh5VHHIyAdmDojHZhfxg.png" /></figure><p><em>Verify that Apache is running before proceeding.</em></p><pre>service apache2 status</pre><p><em>Start Apache2 if it is not running using the following command.</em></p><pre>service apache2 start</pre><p><em>Verify the version of Apache that is being ran.</em></p><pre>apache2 -v</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*6IAUCkDJ3oCIKefqiFrgpg.png" /></figure><p><em>The Apache server is up and running now let’s test the webpage before moving forward. This can be done by pasting the Public IP into a browser.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A87-9SLhci21G3sEYSXL7A.png" /><figcaption>It works!</figcaption></figure><p><strong>Step 4.</strong> <strong>Add a custom webpage.</strong></p><p><em>Now let’s add a custom webpage.</em></p><p><em>Install nano.</em></p><pre>Apt-get install nano </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X-W-R44taOzxOmjhxl_UQQ.png" /></figure><p><em>Use nano to get into the html file.</em></p><pre> nano var/www/html/</pre><p><em>Insert your html script into nano.</em></p><p><em>Save it: ^X, Y, to confirm.</em></p><p><strong>Step 5. Verify you can reach the web server from your browser</strong></p><p><em>Paste the Public IP address into a browser to verify it works. BOOM! There it is.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5jDlmli5RBJVmG4OKmdMSw.png" /></figure><h4><strong>Final steps</strong></h4><p><em>Be sure to tear down anything that was created. We don’t need any unnecessary charges.</em></p><p><em>Stop the container that was running.</em></p><p><em>Remove the container</em></p><p><em>Remove anything that is not in use or associated with containers.</em></p><pre>docker stop {#container name or id}<br>sudo docker rm -f {#container name or id}<br>docker system prune -a </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9MLBzBBsGlfh7hhwyEHMAA.png" /></figure><p><em>Go to the AWS console and terminate the EC2 instance.</em></p><p><strong>Issues:</strong></p><ol><li>The co<em>ntainer was created but when I went to check the container using “docker ps -a” port 80 was being displayed under port.</em></li><li><em>Apache2 is not running, trying to verify webserver would not work!</em></li></ol><p><strong>Resolutions:</strong></p><ol><li><em>I had to modify the command by adding in -it to make my container interactive.</em></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e7a67678a8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Improving Customer Experience with AI-Powered Image Recognition and Sentiment Analysis]]></title>
            <link>https://medium.com/@richard_forman/azure-ai-7e1cf4c1b8fd?source=rss-1971c0ef2938------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e1cf4c1b8fd</guid>
            <category><![CDATA[azure-ai-services]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[text-analytics]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Richard Forman Jr]]></dc:creator>
            <pubDate>Wed, 05 Mar 2025 17:34:12 GMT</pubDate>
            <atom:updated>2025-03-05T18:25:52.876Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-bwDxpyT9JVskmoOjBvkQQ.png" /></figure><h3>Scenario</h3><p><em>Level Up Llama Tech, a company specializing in tech accessories, is facing challenges in managing customer feedback and product reviews. In order to address these issues, they seek a solution that can automatically analyze customer reviews, identify product images, and provide actionable insights to enhance customer satisfaction and product quality.</em></p><h3>Proposed Solution</h3><p><em>Implement an AI-powered system that leverages Azure AI services to analyze customer reviews and identify product images. The system will use image recognition to classify product images and sentiment analysis to gauge customer satisfaction levels. By integrating these insights into the company’s customer relationship management (CRM) system, Level Up Llama Tech can quickly respond to customer needs and enhance product offerings.</em></p><h4>Benefits of the Solution</h4><ul><li><em>Improved Customer Satisfaction: Quickly identifying and addressing customer issues enhances the overall customer experience.</em></li><li><em>Efficient Review Management: Automating the review analysis process saves time and resources.</em></li><li><em>Enhanced Product Quality: Insights from sentiment analysis can guide product improvements and innovations.</em></li><li><em>Competitive Advantage: Leveraging AI technologies positions Level Up Llama Tech as a forward-thinking and customer-centric company.</em></li></ul><h4>Prerequisites:</h4><ul><li><em>Azure Services: Azure AI Services (Computer Vision, Text Analytics)</em></li><li><em>Description: Use Azure AI Services to process a set of pre-collected customer reviews and images.</em></li></ul><ol><li><strong>Set up A<em>I</em> Services in Azure Portal:</strong></li></ol><p><em>Create a Resource Group.</em></p><p><em>Create a Computer Vision resource.</em></p><p><em>Create a Text Analytics resource.</em></p><p>2.<strong> Store a Dataset of Customer Images and Reviews:</strong></p><p><em>Create a Storage Account.</em></p><p><em>Create a Blob Container.</em></p><p><em>Upload sample images and reviews.</em></p><p><strong>3. Analyze Images with Computer Vision:</strong></p><p><em>Use the Analyze Image API in the Azure Portal.</em></p><p><strong><em>4.</em> Analyze Reviews with Text Analytics:</strong></p><p><em>Use the Sentiment Analysis API in the Azure Portal.</em></p><p><strong><em>5. </em>Summarize the Findings:</strong></p><p><em>Review and document the analysis results.</em></p><p><strong>Step 1. Set up AI Services in Azure Portal</strong></p><ol><li><em>Log into the Azure portal ( you need an Azure account access — </em><a href="https://youtu.be/ZYps6TmBkWk?si=oh63ge_nP_QUjekN"><strong><em>Click here: Azure account setup</em></strong></a><em>) . Navigate to the search bar type in AI Service, select AI service, and Create a Resource Group.</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fu1FzgpXp4Npgm-rEOJwgg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sn0pk8hi01J9dkcsVO8x2g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cp8lkfAFRbMjeoC0v85Yfw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MfIMrqKdKY-ZEQuA4XHZlw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CHqIsVdpRO6H10b2VfR1xg.png" /><figcaption>Create a Resource Group in AI Service</figcaption></figure><p>2. <em>Create a “</em><strong><em>Computer Vision”</em></strong><em> resource.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8nxRQuetls2GW4mb0Ohpsw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V_24RgUErvBDO8NTRbe12Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y2GIr24SJXxEoQb26Xoplw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-4_eH-Adp4s5OCjnk_phtg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z6QrC01TFB8HffbvRa6GAA.png" /><figcaption>Create a Vision Resource</figcaption></figure><p>3. <em>Navigate to the search bar, type in text analytics, select Language, and Create a</em><strong><em> “Text Analytics”</em></strong><em> resource.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_ba_6qGQEh6DmaTE5jzSfw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qOwhJ0BiJg9EefX9b6u2LA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZpxY8gq3eFyCIDNeqUucjA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bDj4oTpmVadnqJAW5QEfog.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CIJN835YfwFJx0TaVz5EeA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EO4P_ElIryTCe2UjiuuG0w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zPqUVYdsL0tXrSZGCB49jA.png" /><figcaption>Create a Text Analytics resource</figcaption></figure><p><strong><em>Step 2.</em></strong><em> </em><strong>Store a Dataset of Customer Images and Reviews:</strong></p><ol><li><a href="https://learn.microsoft.com/en-us/azure/storage/common/storage-account-create?toc=%2Fazure%2Fstorage%2Fblobs%2Ftoc.json&amp;tabs=azure-portal"><em>Create Azure Storage Account</em></a><em> (click link guidance)</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*WYMa-Qgsd2Eqt3B0LyLPRA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m2HBaQJERy21cdrIfEX4CQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q0XFOMPowmhw8qgaYEhS7A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bf0EfLwBSoqkgS7imIXoYg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*utNbyhGbC9cGCAs30CMrfw.png" /><figcaption>Create Storage Account</figcaption></figure><p>2.<em> Create a “</em><strong><em>Blob Container”</em></strong></p><p><em>Navigate to the Storage container that was just created and click on container, name the container, and create.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZRefYFosptqthxy7zlL9dQ.png" /></figure><p>3.<em> Upload Sample images and reviews.</em></p><p><em>Navigate to the Blob container, upload the images, and click created. Then replicate the process for the customer reviews.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DPiM9DEyn4-H85A2rUmthQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jPdDb3yTFFsCA1tDXRgxzA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GL91IDgFn66U8U-MHq3ypQ.png" /><figcaption>upload customer images and reviews.</figcaption></figure><p><strong>Step 3.</strong><em> </em><strong>Analyze Images with Computer Vision:</strong></p><ol><li><em>Use the Analyze Image API in the Azure Portal.</em></li></ol><p><em>Navigate to the “</em><strong><em>Computer Vision”</em></strong><em> resource that was created earlier, then go to “</em><strong><em>Vision Studio</em></strong><em>.”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8hcXiIfDLpVWDpZrhDmXCQ.png" /></figure><p><em>Sign into “</em><strong><em>Vision Studio”</em></strong><em>, and select </em><strong><em>Please Select a Resource</em></strong><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pg1EWYPwkwr0-WMtrQt4KQ.png" /></figure><p><em>Click on </em><strong><em>Please Select an Azure resource</em></strong><em>, select </em><strong><em>Subscription</em></strong><em> , </em><strong><em>Azure Resources</em></strong><em>, and </em><strong><em>Confirm </em></strong><em>the selections.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PNRoUakXBhk438K8P7wbew.png" /></figure><p><em>Next, navigate to </em><strong><em>Detect common objects in images</em></strong><em> and select </em><strong><em>Try it out</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NWitSktR6SJD9uwvRtsEPw.png" /></figure><p><em>Select </em><strong><em>Browse for a file</em></strong><em> and let’s see what </em><strong><em>Detected attributes</em></strong><em> discovers.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tmwrBC0YWRc4-UiYZugKHQ.png" /></figure><p><em>The </em><strong><em>JSON</em></strong><em> format for the image is also available.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ppS8Q-yNCulN8JsZEunsUA.png" /></figure><p><strong>Step 4.</strong><em> </em><strong>Analyze Reviews with Text Analytics:</strong></p><ol><li><em>Use the Sentiment Analysis API in the Azure Portal.</em></li></ol><p><em>Navigate to the </em><strong><em>Text Analytics </em></strong><em>resource that was created earlier. Go to </em><strong><em>Language Studio</em></strong><em> and select </em><strong><em>Get started with Language Studio</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1rsOG04lmBU4bEk1ZI6M5A.png" /></figure><p><em>Sign into </em><strong><em>Language Studio.</em></strong></p><p><em>Go to Select an Azure resource, select/fill in appropriate information: </em><strong><em>Azure Directory</em></strong><em>, </em><strong><em>Azure Subscription</em></strong><em>, </em><strong><em>Resource Type-Language</em></strong><em>, </em><strong><em>Resource Name </em></strong><em>and </em><strong><em>Done</em></strong><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ifi1x5PKEeo3BcUyw5wjJw.png" /></figure><p><em>Navigate to</em><strong><em> Classify text</em></strong><em>, then to </em><strong><em>Analyze sentiment and mine opinions,</em></strong><em> and select </em><strong><em>Try it out.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7CpjRzLp75Bbp8_KPs_s1A.png" /></figure><p><em>Upload customer reviews and select </em><strong><em>Run.</em></strong></p><p><strong><em>Step 5.</em></strong><em> </em><strong>Summarize the Findings:</strong></p><ol><li><em>Review and document the analysis results.</em></li></ol><p>Now under <strong>Examine the results</strong> there are two tabs: Results and JSON</p><p>The<strong> Analyzed sentiment</strong> displays the results of <strong>Positive</strong>, <strong>Neutral</strong>, and <strong>Negative</strong>.</p><p>The results can be viewed in standard text or JSON format.</p><p><em>In this project, I demonstrated how I assisted Level Up Llama Tech with taking advantage of Azure AI Services by implementing an AI-powered system that automatically analyzed customer reviews, identified product images, and provided actionable insights to improve customer satisfaction and product quality.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e1cf4c1b8fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Secure Remote Administration and Troubleshooting of Azure VMs with Auto Scaling]]></title>
            <link>https://medium.com/@richard_forman/scenario-dd406f9b7f44?source=rss-1971c0ef2938------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd406f9b7f44</guid>
            <category><![CDATA[azure-virtual-machines]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[microsoft]]></category>
            <dc:creator><![CDATA[Richard Forman Jr]]></dc:creator>
            <pubDate>Fri, 21 Feb 2025 16:31:40 GMT</pubDate>
            <atom:updated>2025-02-21T16:38:35.383Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yDRojlg-OTBse7PZcylL7Q.png" /></figure><p><strong>Scenario:</strong></p><p><em>Level Up Corporation hosts its Linux and Windows applications on over 100 Azure Virtual Machines (VMs). The IT team is dispersed globally so its tools are of the utmost importance. The tools need to be efficient, secure, and reliable for remote administration and troubleshooting to minimize downtime and security risks. Level Up Corporation also wants to make sure that its applications are readily available and able to meet the changing demands of its clientele.</em></p><p><strong>Proposed Solution:</strong></p><p><em>The proposed solution involves setting up Auto Scaling Groups which would automatically adjust the number of VMs based on demand. This would ensure scalability and high availability. Secure remote administration would be implemented for Linux VMs, and RDP for Windows VMs via SSH. Both would enhance security by providing encrypted channels for secure access.</em></p><p><strong>Objective:</strong></p><p><em>I was tasked with helping Level Up Corporation with the implementation of tools and measures to ensure that is applications are readily available and able to meet the changing demands of its clientele and provide the necessary security while allowing the IT team to work remotely and to trouble shoot any issues and minimize downtime.</em></p><p><strong><em>Prerequisites:</em></strong></p><ol><li><strong><em>Deploy a Linux Azure VM</em></strong><em> and configure it with a key pair.</em></li><li><strong><em>Create a Network Security Group (NSG)</em></strong><em> to allow SSH access.</em></li><li><strong><em>SSH into the deployed Linux Azure VM</em></strong><em> and run the “whoami” command to verify access.</em></li><li><strong><em>Set up an Auto Scaling Group</em></strong><em> for the VMs to automatically adjust the number of instances based on demand.</em></li></ol><p><strong>Solution:</strong></p><p><em>Step 1. Deploy a Linux Azure VM and configure it with a key pair.</em></p><ol><li><em>Log into the Azure portal ( you need an Azure account access — </em><a href="https://youtu.be/ZYps6TmBkWk?si=oh63ge_nP_QUjekN"><strong><em>Click here: Azure account setup</em></strong></a><em>) . Click the menu bar in the top left corner and navigate to Virtual machines.</em></li><li><em>Click create, select Azure Virtual Machine.</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fR6PLNe3di_eK9L738YLuQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*APV5DfbTgUvGakOOcnPxXQ.png" /></figure><p><em>3. Now in the creation of the virtual machine:</em></p><p><strong>Product details-</strong><em>Select subscription, Name the Resource Group: lvluprg-rf. (I prefer to label things in a way that makes them easy to locate in the event I create a lot of resources.)</em></p><p><strong><em>Instance details-</em></strong><em> Name the Virtual machine: lvlup1, select a Region. Availability options: Availability zone, Zone options: Self-selected zone (default in this case), Availability zone: Zone 1, Security type: Trusted Launch virtual machine, Image: Ubuntu Pro 24.04 LTS x64 Gen2, VM Architecture x64, Size: Standard_D4s_v3–4vcpus, 16 GiB Memory</em></p><p><strong><em>Administrator Account-</em></strong><em> Authentication type: SSH public key (Create an username or use the default) SSH public key source: Generate a new key pair, Key pair name: name your key pair (never share this)</em></p><p><strong><em>Inbound port rules</em></strong><em> — Public inbound ports: Allow selected ports, Select inbound ports: SSH(22)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xTTxtD19gBjhtmClG5rBjg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vhTbU5IaCIIdbaTqy_6Cdw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qG5aPESul7833tgNx_e7hQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yd78vtXKSnbVUy8bWwcwEA.png" /><figcaption>Creation of the virtual machine.</figcaption></figure><p><strong><em>Review + create:</em></strong><em> once satisfied with the configuration.</em></p><p><em>4. Click create, when prompted click Download Private key and create resource. (Save your private key in a folder you will can find. You will need it again)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AzRbe-zSvRQ8_ML3bgzbRQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0q4GAmGMimkrUaGqwkFuyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*riBroqEBht6-bMQMZjCCGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*D321FWpRw5kyoNTKkkT4Yw.png" /></figure><p><em>Step 3. SSH into the deployed Linux Azure VM and run the “whoami” command to verify access.</em></p><ol><li><em>Go to resource once the Virtual Machine creation is complete.</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XvUi_VpwFQkXsoIatwvRCg.png" /></figure><p><em>2. Now on the overview of the VM click on Connect.</em></p><p><em>3. Select Native SSH.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hYxGRaHY3DkiG0VoWNfEuw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dRoUph5eddUvNr_hLjsT7Q.png" /></figure><p><em>4. Once the prerequisites are configured for Native SSH I opened Terminal, provided the path to my SSH private key that I saved on my machine.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aRrU9H6C2N0qwuCAiEzbsg.png" /><figcaption><strong>If using a different machine be sure to switch to your local machine.*</strong></figcaption></figure><p><em>5. Then I was able to successfully SSH into the VM. I also verified my access by running the “whoami” coommand.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uGzadG8Wwk_6nMWhUVsKkw.png" /></figure><p><em>Step 4. Set up an Auto Scaling Group for the VMs to automatically adjust the number of instances based on demand.</em></p><ol><li><em>Navigate to the search bar, type in Virtual Machine scale sets, select it.</em></li><li><em>Click Create Virtual Machine scale sets</em></li><li><em>Configure the Virtual Machine scale sets as done previously with the vm. (Scroll up for example)</em></li><li><em>In the scaling section select Auto Scaling.</em></li><li><em>Complete the configuration and click Review + create.</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6D_dYxEogyEW85hZADzYTg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wqXC7BXpxVpfAKNZvt3zzA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2wWPgydN5bo28OMT0O2mtQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UsiQTGejkV-3O0jS1bygfw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8CMFXOGn6GTo89--P-LEUg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zQTt3Sj0BPNH9FXS1ERBVg.png" /></figure><p><em>6. Review the summary of the Virtual Machine Scale set and once satisfied click create.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7QIPWP-LtQPlH7bIEjxRLg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*OQbKhZCJBR0ZcOkYrcArtg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*rxQNn0J4lAuIWmahiaGYbA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VoApsI0P1Mzwvjhug3KSNw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*4V8nT3lOTBbgBTeGYEBK8g.png" /></figure><p><em>You have now deployed a Linux VM with Auto Scaling.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fqWCtl4FCAbNI1F4r2RxKA.png" /></figure><p><strong>Issues:</strong></p><p><em>In the process of configuring my Virtual Machine Scale Set I was unable to select the Auto scaling group. The option was grayed out and could not be selected.</em></p><p><strong>Resolution:</strong></p><p><em>After reading more on the configuration page for the Virtual Machine Scale Set I did realize that under Scaling mode options there was information stating that my “subscription needed Microsoft.insight registration to use autoscaling.” After that I followed the documentation from azure, (click here for guidance </em><a href="https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-providers-and-types#register-resource-provider-1"><em>Azure resource providers</em></a><em>.) I followed the documentation and was able to correct the autoscaling issue.</em></p><ol><li>Navig<em>ate to subscriptions</em></li><li><em>Click into the subscription you have been working in.</em></li><li><em>Navigate to settings and Resource provider.</em></li><li><em>Type Microsoft. insights into the search bar.</em></li><li><em>Microsoft.insights and click register.</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Att22JBi10OeEv26_djJzg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rgVgA6np6Albz5hOvOUFLw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*OPfPq8hrOfWJ2cV3C5PAFA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*txqknMyWYde66J-VPwwYpg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bzT4jJHakA4xpxc90ccVTQ.png" /></figure><p><em>Thanks for reading, I hope this is helpful.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd406f9b7f44" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Azure Storage to Host a Static Website]]></title>
            <link>https://medium.com/@richard_forman/using-azure-storage-to-host-a-static-website-468b59901167?source=rss-1971c0ef2938------2</link>
            <guid isPermaLink="false">https://medium.com/p/468b59901167</guid>
            <category><![CDATA[storage]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[azure-blob]]></category>
            <category><![CDATA[static-web-hosting]]></category>
            <dc:creator><![CDATA[Richard Forman Jr]]></dc:creator>
            <pubDate>Mon, 10 Feb 2025 18:40:46 GMT</pubDate>
            <atom:updated>2025-02-10T18:40:46.792Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rFnc69UmEVJeOu03XKjnVw.png" /></figure><p>Scenario:</p><p><em>For this project I worked with Level Up Bank, a fictitious fintech startup that offers digital banking services to customers. The website is an extremely important tool for new customer acquisition and providing information about the services offered by the bank. Level Up Bank is experiencing additional costs due to the website being hosted on an on-premises server.</em></p><p><strong>Objective:</strong></p><p><em>I was tasked with migrating Level Up Bank from hosting an on-premises server to Azure Blob storage. Using this approach to Azure Blob storage could allow Level Up Bank to benefit in the following areas:</em></p><ol><li><strong><em>Cost Reduction</em></strong><em>: You only pay only for the storage used and the operations performed.</em></li><li><strong><em>Improved Scalability</em></strong><em>: Demand is met by scaling automatically to meet it and ensuring the website can handle increased traffic without manual intervention or downtime.</em></li><li><strong><em>High Availability</em></strong><em>: Ensuring that the website is accessible to users at all times.</em></li><li><strong><em>Reduced Management Overhead</em></strong><em>: Reducing the burden on the IT team and allowing them to focus on more strategic tasks.</em></li></ol><p><strong>Prerequisites:</strong></p><ol><li><em>Create an Azure Storage account and a Blob container.</em></li><li><em>Upload the provided index.html file to the Blob container.</em></li><li><em>Configure the Azure Blob container to host a static website. This involves setting the appropriate public access level and specifying the default document.</em></li><li><em>Verify internet access by navigating to the provided Azure Blob Storage endpoint in a private or incognito browser.</em></li></ol><p><strong>Solution:</strong></p><p>Step 1: <em>Created an Azure Storage account and a Blob container</em></p><p><em>I logged into my Azure account via the Azure portal ( you need an Azure account access — </em><a href="https://youtu.be/ZYps6TmBkWk?si=oh63ge_nP_QUjekN"><strong><em>Click here: Azure account setup</em></strong></a><em>) I used the search box, typed in storage and used that to navigate to the create storage account resource. Then it was time to configure the storage account. This included naming the Resource Group, Created a new Resource Group, there are naming conventions that have to be followed (</em><a href="https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules"><strong><em>Click for Azure resource name rules</em></strong></a><strong><em>). </em></strong><em>Next the storage account was named, this must be unique across all of Azure, I used lvlupbankstorage, the region had to be selected: East US, Primary Service: Azure Blob Storage, Performance: Standard, and Redundancy: Locally Redundant storage. I clicked on review + create, once I was satisfied I created the storage account.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QgTh_bW-4efTraST3H0SUw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gq064icIpWI0B5Ge0oO6Pw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d3vmjx1Q00ICZk8bHWwn5w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9V6dtGfIEpT7Am-AOSsg1g.png" /></figure><p><em>Step 2. Upload the provided index.html file to the Blob container.</em></p><p><em>After the storage account was created I navigated to the account and uploaded the index.html file by clicking on upload. Then I uploaded the file, selected $web as the existing container and clicked upload.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ksrhg4vLwRoO3F0SoDT-Sg.png" /></figure><p><em>Step 3. Configure the Azure Blob container to host a static website. This involves setting the appropriate public access level and specifying the default document.</em></p><p><em>I used the search bar to type in Static website to get to desired destination. I then clicked on Static website to begin configuration. Then I enabled the Static website and typed index.html in the box for index document name.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gNPzRb9M4WhO8KYNBzm_aw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tBIgukb5ybm4GSub7PQeig.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PcKHkN3_Dt5_40uQ-nITVg.png" /><figcaption>If the static website is disabled the link from primary endpoint will not work once posted into your browser.</figcaption></figure><p><em>Step 4. Verify internet access by navigating to the provided Azure Blob Storage endpoint in a private or incognito browser.</em></p><p><em>The final step was to verify access, to do this I copied the link from the Primary endpoint into my chrome incognito browser and… Voila! The Level Up Bank site is up and running.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R3uNqd8FORRPaKaWnk4tLw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DJZwu9VqxcH7OvqnPokjow.png" /></figure><p><em>Issues:</em></p><p><em>My main issue was that I received the error “The requested content does not exist”.</em></p><p><em>Resolutions:</em></p><p><em>I addressed the issue by doing some research and I found that the issue came from the setting for the blob service being set to Disabled. I Enabled this setting, saved the change, and navigated back to the to the static website which worked.</em></p><p><em>Thank you for reading, I hope you enjoyed and continue to follow me on my journey into the Cloud.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=468b59901167" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating the Stoppage of EC2 Instances Using Lambda]]></title>
            <link>https://medium.com/@richard_forman/automating-the-stoppage-of-ec2-instances-using-lambda-8230efc555c9?source=rss-1971c0ef2938------2</link>
            <guid isPermaLink="false">https://medium.com/p/8230efc555c9</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[lambda]]></category>
            <category><![CDATA[lambda-function]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[python3]]></category>
            <dc:creator><![CDATA[Richard Forman Jr]]></dc:creator>
            <pubDate>Thu, 09 Jan 2025 04:41:12 GMT</pubDate>
            <atom:updated>2025-01-09T17:11:39.501Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O_Hk3EMvtIrpzKnyJrUb-g.png" /></figure><p><strong>Scenario</strong>:</p><p><em>The DevOps engineering team often uses a development lab to test releases of applications. Due to rising cost of the development lab managers are complaining and money needs to be saved by stopping EC2 instances after all the engineers have clocked out for the day.</em></p><p><strong>Objective:</strong></p><p><em>My task:</em></p><ol><li><em>Create a python script that stops all running EC2 instances.</em></li><li><em>Create a Lambda function using Python 3.8 or higher runtime to run your script.</em></li><li><em>Add a trigger to the Lambda to ensure it runs on a set schedule daily. No one should be working past 7pm.</em></li></ol><p><strong>Solution:</strong></p><ol><li><strong>Created a python script that stops all running EC2 Instances</strong></li></ol><p><strong>Github link containing the code:</strong></p><p><a href="https://github.com/RForman005/Luit-grey-2024/blob/main/Stop_instance.py"><strong>Stop_instance.py</strong></a></p><pre>import boto3<br><br>ec2 = boto3.client(&#39;ec2&#39;)<br><br>def lambda_handler(event, context):<br>  instanceids= event.get(&#39;InstanceIds&#39;, [])<br><br>response = ec2.stop_instances(<br>  InstanceIds=[&#39;i-034e9f7acd86d5dbf&#39;, &#39;i-0d62f72f11e87e90d&#39;, &#39;i-0fe9e02e240aefc46&#39;<br>  ],<br>)<br>print(response)</pre><p><strong>2. Created a Lambda function using Python using Python 3.13 to run the script</strong></p><p><em>a. In the AWS console use the search bar or recents and type in lambda to get to the lambda page. Then navigate to </em><strong><em>Create function</em></strong><em>. Next, configure the function to the desired specifications. Once satisfied click on </em><strong><em>Create function</em></strong><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fze4cY-PgzbpWTZU" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*B2ScOSe2alWbz0n1" /><figcaption>Use the Python version that is closest to the version that you are currently running.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CvVqTzeZdbJV3RCf" /></figure><p><strong>3. Add a trigger to the Lambda Function to ensure it runs on a set schedule daily.</strong></p><p><em>In the search bar or recents type CloudWatch. Next click events, then rules.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0VX3F1DJeW5eNrXq8UHCVg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hDI36c71EW3o_3oQHv75nQ.png" /></figure><p><em>Now let’s move to the rules.</em></p><p><strong>Step 1:</strong> <em>Define the rule. Choose a name that will identifiable and that makes sense. The description is also useful to help identify the rule and tell what the rule’s function is.</em></p><p><strong>Step 2:</strong> <em>Define schedule, here it is determined how the function will operate, by the minute, hour, day, etc.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*grH7Rd26eggmaElAyamFJQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ysxXX2byQJrIUX5wSzNFDg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*De9nHCPTg_p2IvDpyg0a_w.png" /></figure><p><strong>Step 3:</strong><em> Select the target that will be triggered by the Lambda function and select the function that you’ve previously created.</em></p><p><strong><em>Step 4:</em></strong><em> Configure tags is optional but can be helpful. Once satisfied click next to move to review.</em></p><p><strong>Step 5:</strong><em> Review and create, look over the configuration one last time before creating the new rule.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KTdNU8hHn5FXazfNsR7yWg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BUIHxMhktoEB18VZKSdDeg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NkcWCzdySO6dxnMps2Kh3A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nyVS7dzxqbJYq2AxCIl_PQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*za7H4DhoFZgKQhUziy7wGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sFoeZaAYGQtCtjOkgYyTXg.png" /></figure><p>You have just created a function and a trigger set to stop your running instances.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SiWKbhRkQ6PUG5zbsBujWA.png" /></figure><p>Last thing to do is run a test to make sure the function is operating properly. Scroll down under function overview, click test, give the event a name, and run test.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YkKID_6CC8lNmD7VJWV03A.png" /></figure><p><em>You now have an automated Lambda function!</em></p><p><strong>Issues:</strong></p><p><em>I had a hang up with using the proper parameters in my code to gain the desired outcome when defining lambda_handler. While testing the function I received an error message stating that I wasn’t an authorized user.</em></p><p><strong>Resolutions:</strong></p><p><em>In both instances I researched and used documentation as well as other online resources to point me in the right direction.</em></p><p><a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-intro-execution-role.html#permissions-executionrole-console"><strong><em>Defining Lambda function permissions</em></strong></a></p><p><strong>Thanks for reading, I hope this helps!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8230efc555c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Extraction Using a Python Script]]></title>
            <link>https://medium.com/@richard_forman/data-extraction-using-a-python-script-bbd24d704848?source=rss-1971c0ef2938------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbd24d704848</guid>
            <category><![CDATA[data-extraction]]></category>
            <category><![CDATA[script]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Richard Forman Jr]]></dc:creator>
            <pubDate>Mon, 30 Dec 2024 04:44:26 GMT</pubDate>
            <atom:updated>2024-12-30T04:44:26.635Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y26AL8muZ2058qay5zaUlA.png" /></figure><p><strong>Scenario:</strong> <em>Your company needs to learn about the files located on various machines. You have been asked to build a script that extracts information such as the name and size about the files in the current working directory and stores it in a list of dictionaries.</em></p><p><strong>Objective:</strong></p><p><em>I was tasked with creating a script that extracts the necessary data from the current working directory and storing it in a list of dictionaries.</em></p><p><strong>Import:</strong> <em>Allows access to code from other files or modules in your script. This allows existing code to be reused.</em></p><p><strong>Os</strong>: <em>Module in python that allows interaction with the ‘operating system’.</em></p><p><strong>Append:</strong><em> A method that allows the addition of an element to the end of a list.</em></p><p><strong>Solution:</strong></p><ol><li><strong>Open Visual Studio Code:</strong></li></ol><p><em>Create a new file, name the file: data-extract-3.py.</em></p><p><em>Import the os module, this allows interaction with the file system.</em></p><pre>import os </pre><p><em>The imported os provides functions for creating and removing a directory, retrieving its contents, changing, and identifying the current directory.</em></p><p><strong>A. Create empty lists to store file details and file size.</strong></p><p><em>File details is the empty list that will store the dictionaries. Each one will contain the name and size of a file.</em></p><pre>file_details = []</pre><p><strong>2. Get the list of files in the current directory.</strong></p><ul><li><em>I used a </em><strong><em>for</em></strong><em> loop to gather the information that was required, here it was the files and directories in the current directory.</em></li></ul><pre>for file_name in os.listdir(&#39;.&#39;):</pre><ul><li><em>The next command is used to ensure that files only are being pulled and not directories.</em></li></ul><pre>if os.path.isfile(file_name):</pre><ul><li><em>Retrieving the file size was a requirement and that is the function of the following command is.</em></li></ul><pre>file_size = os.path.getsize(file_name)</pre><ul><li><em>Next, the data will be stored in a dictionary. Each file’s name and size was stored as key value pairs, added to a dictionary, then added to the file details list.</em></li></ul><pre>file_details.append({&#39;name&#39;: file_name, &#39;size&#39;: file_size})</pre><p><strong>4. Print the list of directories</strong></p><p>Lastly, add the print command to show the output of what was generated.</p><pre>print(file_details)</pre><p><strong>Full script</strong></p><p>Here is the full script with inline comments.</p><pre>import os  # Import the os module to interact with the file system<br><br># Create an empty list to store file details<br>file_details = []<br><br># Get the list of files in the current directory <br>for file_name in os.listdir(): <br><br># Check if the item is a file (not a directory)<br>    if os.path.isfile(file_name):  <br>        <br># Get the size of the file in bytes <br>        file_size = os.path.getsize(file_name)<br>        <br># Append the file details as a dictionary to the list<br>        file_details.append({&#39;name&#39;: file_name, &#39;size&#39;: file_size})<br><br># Print the list of dictionaries to verify the output<br>print(file_details)</pre><h3><strong>Voila!</strong></h3><p>You have a script that extracts the data that your company needs and the best part it reusable.</p><p>Issues:</p><p>I am still fairly new to Python and my challenges were mainly with indentation and other syntax.</p><p>Resolutions:</p><p>My first step to addressing my errors was to read the error messages and any issues I had after that I researched online and used available tools to assist me in completing my task.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbd24d704848" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DynamoDB: How to Grant Least Access in a Table]]></title>
            <link>https://medium.com/@richard_forman/dynamodb-how-to-grant-least-access-in-a-table-e05f45545289?source=rss-1971c0ef2938------2</link>
            <guid isPermaLink="false">https://medium.com/p/e05f45545289</guid>
            <category><![CDATA[ec2-instance]]></category>
            <category><![CDATA[iam-roles]]></category>
            <category><![CDATA[least-privilege]]></category>
            <category><![CDATA[dynamodb]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Richard Forman Jr]]></dc:creator>
            <pubDate>Fri, 06 Dec 2024 17:30:16 GMT</pubDate>
            <atom:updated>2024-12-06T17:30:16.742Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lrJY-3SeUD0Bq9qQmggTsA.jpeg" /></figure><p><em>Create DynamoDB table</em></p><p><em>Populate table with 10 of the latest movie releases. Include title, genre, release date, and rating.</em></p><p><em>Create t2.micro EC2 instance</em></p><p><em>Use an IAM Role to grant read access to DynamoDB</em></p><p><em>Use AWS CLI in the EC2 instance to scan the DynamoDB Table</em></p><p><em>Use AWS CLI in the EC2 instance to validate an item cannot be written into the table.</em></p><p><strong>Scenario:</strong></p><p><em>Let’s Go! Media Inc. is a media production and distribution company that needs to manage and track information about their media content such as metadata, ratings, and other important details. The company chose to use AWS DynamoDB to store and manage their media content.</em></p><p><strong>Objective:</strong></p><p><em>I was tasked by Let’s Go! Media Inc. to use DynamoBD to securely store, manage, and track their media content. The company want to use IAM permissions to eliminate the risk of unauthorized users modifying the table’s data.</em></p><p>Solution:</p><ol><li><strong>Created table using DynamoDB:</strong></li></ol><p><em>I logged into the AWS console I typed DynamoDB into the search bar. After I found DynamoDB I clicked on Create Table. I configured it with mainly default settings, Partition Key? for now it’s helpful if something breaks.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bg8w0BzBPBBvl5Mp7Am38A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MJPSjxz0gOm8juqgZFpMeA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hMKhLnCmIjU3ZdoFv9_e4w.png" /></figure><p><strong>2. Populate the table:</strong></p><p><em>After I created the table I began creating the items. I clicked on Create Item then added the necessary attributes; genre, release date, and rating. The title is the Partition key because it is unique among the required attributes.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gAhGGLqA8zi7YyRl5MRRyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mEPUnPwrdHKyFVdBQXAsFw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FMVgtBx4UtaSdrIReB24qw.png" /></figure><p><strong>3. Created a t2.micro EC2 Instance:</strong></p><p><a href="http://Create an EC2 Instance">Create an EC2 Instance</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1WXDHaFGAnIxMOc1b2mvXQ.png" /></figure><p><strong>4. Use IAM role to grant EC2 instance read and write access to the DynamoDB table:</strong>I created an IAM role by going into permissions inside of my table.</p><p><a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-service.html#roles-creatingrole-service-console">Create an IAM role</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nt854__4MnLUIjuaf9siig.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*boX3T-PFIyD8lpXcgNDfkQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mKXI9fYgB6p2Y0Xhr7Wr_A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*peAi9dmpPmKtIJ9Ve_5nMQ.png" /></figure><p><em>Name, review, and create:</em></p><p><em>I then named the role and also added a description to so the new role has an explanation, I reviewed the steps to create the role , and lastly created the new role.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lu8O3uvODKY6xtKu6UPuCA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BcMhyjZponsYqB0GH9PtcA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l3C1s0_60ChlglPGsL9CJg.png" /></figure><p>Then I added the new role to my EC2 instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Qz59-uBFKkY_MRNrNZXRA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7bNCAmLS427KMvdr4oxmzg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lAQK79ZsBTLQtzoZ8wO6nA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dLO7eeQ7qFDbXK7LQWNmjQ.png" /></figure><p><strong>5. Launch AWS CLI inside of my instance: </strong><em>Now the IAM permissions are added to my instance I SSH into the instance and performed a scan of the table.</em></p><pre>aws dynamodb scan --table-name MediaCatalog</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1WXDHaFGAnIxMOc1b2mvXQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l7D8aGlhGG_i8DVbPFqhuQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g_mMskYwCg1fhVB7hBFwEA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2HxK8NQewT9eS0iasf2ETQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*JBxJQKMVAP6LjZKn_iGdVQ.png" /></figure><p>It’s time to verify that the instance is secure and that items cannot be written into the table.</p><pre><br>aws dynamodb put-item --table-name MediaCatalog --item &#39;{&quot;Title&quot;: {&quot;S&quot;: &quot;Y2K&quot;}, &quot;Genre&quot;: {&quot;S&quot;: &quot;Horror&quot;}, &quot;Rating&quot;: { &quot;S&quot;: &quot;R&quot;}, &quot;ReleaseDate&quot;: {&quot;S&quot;: &quot;2024-12-06&quot;}}&#39;</pre><p>Instance returned an <strong>AccessDeniedExeption. </strong>I have achieved my task, not items can be written into the table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dHzsRsr_uMGtR93WHoj5cA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e05f45545289" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using AWS Two Tier Architecture for Web and Database servers]]></title>
            <link>https://medium.com/@richard_forman/using-aws-two-tier-architecture-for-web-and-database-servers-038e02b7742f?source=rss-1971c0ef2938------2</link>
            <guid isPermaLink="false">https://medium.com/p/038e02b7742f</guid>
            <category><![CDATA[aws-rds]]></category>
            <category><![CDATA[aws-vpc]]></category>
            <category><![CDATA[aws-subnet]]></category>
            <category><![CDATA[two-tier-architecture]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Richard Forman Jr]]></dc:creator>
            <pubDate>Mon, 02 Dec 2024 06:41:56 GMT</pubDate>
            <atom:updated>2024-12-02T06:41:56.708Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3EyhcJtrx0cA9sj_1M2jYg.jpeg" /></figure><p><strong>Scenario:</strong></p><p><em>Adventure Works is an innovative global travel agency that has a niche in organizing adventure tours and travel packages. The strategy is to enhance customer engagement and streamline operations by launching a new website using Joomla as their content management system.</em></p><p><strong>Objective:</strong></p><p><em>I was tasked with helping Adventure Works deploy a website that will serve as its hub for all their travel services. The website needs to be scalable, secure, and highly available to meet the demands of increased traffic, growing clientele, and expanding offerings as the company grows.</em></p><p><strong>The Benefits of Two-Tier Architecture:</strong></p><p><strong>Scalability:</strong> <em>By having to separate tiers web server and database server each can be scaled independently. This allows for more effective handling of increased web traffic and data load.</em></p><p><strong>Security:</strong> <em>Keeping the database separate increases security and this reduces data beaches and unauthorized access.</em></p><p><strong>Manageability:</strong> <em>Managing the servers separately makes maintenance and upgrades easier. Each component can be managed with no effect on the other.</em></p><p><strong>Reliability:</strong> <em>The RDS ensures high availability and automated backups, this is key in data protection and disaster recovery.</em></p><p><strong>Why Joomla?</strong></p><p><em>Joomla was selected because of its features, ease of use, and flexibility which allows Adventure Works to engage with its users, efficiently manage content, and include functions such as booking and e-commerce.</em></p><p><strong>The Process:</strong></p><ol><li><strong>Created a VPC with an Internet Gateway: </strong><em>I used CIDR block 10.10.0.0/16 for the VPC. I then created 4 subnets, 2 public and 2 private; Public subnet1 10.10.1.0/24, Private subnet1 10.10.2.0/24, Public subnet2 10.10.3.0/24, Private subnet2 10.10.4.0/24</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hIkZiPD0Kkp_kyX2gQxb2w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*npyaIojOHSNapNBUo7J5_g.png" /><figcaption>After creating the Internet Gateway I attached it the public subnet.</figcaption></figure><p>I went into the public route table and configured it to connect to the internet gateway so there would be a connection to the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fzRubavKUGqQpUtIxtHz2g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_5tB7HaOIOXyEKubxG4l6A.png" /><figcaption>Photo 1 is public subnet association, Photo 2 is private subnet association</figcaption></figure><p><strong>2. Set up the Web Tier</strong>: Launch an Ubuntu EC2 Instance</p><p><a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/LaunchingAndUsingInstances.html">Launch an Amazon EC2 instance</a></p><p><strong>3. Set up the Database Tier: </strong>Launch a MySQL RDS I chose standard create so I would have more control over the configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uvXoqX2Y_xB5000DHs6arw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vKALx6RqA6yDphav_XaDEA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZJdzGR1p5WYP1dL9ouse0A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HwQgjZvzIhqden4a-R4S4g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hfFcgcgS4M9RAqysocW6Lg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QoBYnvfkCwAaMwDAfpts8A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YRdHTUFQCNLp52bcFhvugQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R5V0t3_nacGDQbli1kNJdw.png" /></figure><p>4. <strong>Installed and Configured Joomla</strong></p><p>Followed the instructions for the Joomla installation. I SSH into my instance and input the script line by line.</p><pre>sudo apt update<br><br>sudo apt install -y apache2 php libapache2-mod-php php-mysql php-xml php-gd unzip<br><br>sudo systemctl start apache2<br><br>sudo systemctl enable apache2<br><br>cd /var/www/html<br><br>sudo curl -L -o joomla.zip https://github.com/joomla/joomla-cms/releases/download/3.9.28/Joomla_3.9.28-Stable-Full_Package.zip<br> <br>sudo unzip joomla.zip<br><br>sudo chown -R www-data:www-data /var/www/html<br><br>sudo chmod -R 755 /var/www/html<br><br>sudo rm /var/www/html/index.html<br><br>sudo nano /etc/apache2/mods-enabled/dir.conf<br>DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6IkAyJ0p7Qh5-3wU0xIabQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QXsUf28emGcKBOLJzfyexw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ozMQPWufA6C_EQTR4oEqyw.png" /></figure><p>6. Test the website and post a sample blog to verify functionality.</p><p>Copy and paste the Public IP into a browser and it works! Here is a sample post from the blog.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e0WYB2VCP4PcrwXokLqAYw.png" /></figure><p><strong>Issues:</strong></p><p>Attempted to ssh into instance to verify configuration but there was no response. Public IP address gave an error that my address was not valid. I was having an issue when first performing the Joomla install, I was getting back multiple errors in my CLI.</p><p><strong>Resolutions</strong>:</p><p>I connected the route table containing my public subnet to the internet gateway and was able to SSH into my instance. Once inside the instance I performed some package updates and after performing the updates my public ip address was functioning properly. This error was actually a simply one, I wasn’t inputting the entire command that was needed. It was long and split into two lines and I assumed it was 2 separate commands.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=038e02b7742f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>