<?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 Aisosa Aimufua  on Medium]]></title>
        <description><![CDATA[Stories by Aisosa Aimufua  on Medium]]></description>
        <link>https://medium.com/@DevOpsPortfolio?source=rss-637c94048350------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Y4X0rHtvSot_jWVq</url>
            <title>Stories by Aisosa Aimufua  on Medium</title>
            <link>https://medium.com/@DevOpsPortfolio?source=rss-637c94048350------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 06:03:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@DevOpsPortfolio/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[AWS Three-Tier Architecture]]></title>
            <link>https://medium.com/@DevOpsPortfolio/aws-three-tier-architecture-4a8924f4abaf?source=rss-637c94048350------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a8924f4abaf</guid>
            <dc:creator><![CDATA[Aisosa Aimufua ]]></dc:creator>
            <pubDate>Tue, 17 Oct 2023 12:12:39 GMT</pubDate>
            <atom:updated>2023-10-19T16:18:16.694Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*8Yal4E08j8Fg0gBXClebhw.png" /></figure><h4>What is a Three-Tier Architecture?</h4><p>A three-tier architecture is a software architecture pattern where the application is broken down into a Web layer,Application layer and Database layer. Each of these layers execute specific tasks and can be managed independently of each other. This strategy is a shift from the monolithic way of building an application where the frontend, the backend and the database are all in one place.</p><p>Benefits of a three-tier architecture are increased scalability, availability and security. This is accomplished by spreading the application into multiple availability zones and separating it into three layers. If an availability zone goes down, the application has the ability to automatically scale resources to another availability zone. Each layer has its own security group that only allows the inbound/outbound traffic needed to perform specific tasks.</p><p><strong>Web Tier:</strong> Manages the user-facing elements of the application, such as web servers and the interface/frontend.</p><p><strong>Application Tier: </strong>Manages the backend and application source code needed to process data and run functions.</p><p><strong>Database Tier: </strong>Manages the application data.</p><h4>Scenario</h4><p>An e-commerce company wants a scalable and reliable e-commerce platform so they decide to deploy a 3-tier architecture. They envision the web tier serving the static content to end-users and handling incoming requests. The application tier would handle the business logic of the platform and the database tier would store all of the platform’s data.</p><h4>Business Case</h4><ul><li>Create a three-tier architecture consisting of a Web tier, Application tier and Database tier.</li><li>Ensure you can access the Web tier web page from the internet.</li><li>From the Web tier verify that you can ping the Application tier from the web tier by running the ping command from an EC2 instance in the web tier.</li></ul><p><strong>Web Tier</strong></p><p>The first step is to create a VPC and two public subnets for that VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jR5voxtRQgY9dYLyMPnYOA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ml3e2_dPK7dyBZuJjd6CQ.png" /></figure><p>After the subnet creation, we can create an internet gateway for the VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KO9kPS0f-8JqVlNlpfRuYA.png" /></figure><p>Attach the internet gateway to the VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bg3OhOmK6VkSg9-WHw7eYg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fnFY6ORXbI8rbgpTVHRdQQ.png" /></figure><p>Create a route table and attach it to the VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oOd91xB_F3F5guwqaKAWxA.png" /></figure><p>Under subnet associations, add the public subnets to the route table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ep1gPKrAnDAb3wTDAynF1A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dm-5Sdgh1rZQSF4dvN4bIA.png" /></figure><p>The next step is to enable auto assign public ip address for your public subnets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n-S4eL-pucTd5uzPxGypvQ.png" /></figure><p>After editing the subnets settings, we will create a launch template. Within the launch template, we will input a script to enable and start apache in the user data field. This will enable and start apache upon launching our two instances.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*lAn-otSfp5jIemp1T4x3Aw.png" /></figure><p>After the creation of the launch template we can create the Auto Scaling group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0HOzowDoASdSpzUd34oPPQ.png" /></figure><p>Ensure you can access the web tier page from the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*EMB_UslnkA5ZKjq4gx0Dzg.png" /></figure><p><strong>Application Tier</strong></p><p>The first step for the Application tier is to create a NAT gateway and attach a private route table to NAT gateway. You can then update the private route table of your private subnet to point internet traffic to your NAT gateway.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cWAdsIDkvreMAxLK3mj5fA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vvJu4qKembJIQLnOQOc5oQ.png" /></figure><p>Next, we will create another launch template and attach it to the VPC. Following that is to create an Application server security group and allow ssh inbound traffic from Web server security group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*45xPJe0VcAx5exAMaeXAZA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lm7rHnCQtTZxV3tduneBnw.png" /></figure><p>On the Auto Scaling group dashboard, we can create another ASG. Attach the launch templates to the private subnets in your availability zone. For the group size of the ASG, select 2 for minimum. The ASG for our private instances will be created as seen below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d5UEWHsAjC6lYr-N9j-5Tg.png" /></figure><p>Now that both tiers have been created, we can run a ping command from our Web tier instance to the Application tier instance to validate connectivity.</p><p>To provide connectivity, we can connect the private EC2 instance to the bastion host (public instance) in our terminal.</p><p>The first step is to check if the the ssh agent is running using the command below.</p><pre>eval &#39;ssh-agent&#39;</pre><p>The output will produce a PID.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TgtKF9H-0d9dZcms_hFHBQ.png" /></figure><p>The PID response indicates that the agent is running. Next we need to add a key pair to the ssh agent using the command below.</p><pre>ssh-add ./W9PJKP.pem</pre><p>The identity will be added.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*R3yGh0AHVoLGx8MUwdA7Vw.png" /></figure><p>Once the identity is added, you can ssh into your public EC2 instance (bastion host) using the command below.</p><pre>ssh -A -i ./W9PJKP.pem ec2-user@3.236.193.255</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P_ZVF8zc3o8wWuuXLxpweg.png" /></figure><p>You can then connect to the instance in the private subnet via bastion host using the command below.</p><pre>ssh ec2-user@10.10.3.60</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5GM331EjcjGklU3vkPaE1A.png" /></figure><p>To ensure that our private instance has internet access, run the command below.</p><pre>curl www.google.com</pre><p>The output on the terminal should be similar to the output below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xuCQUaUq5ei_-DyrYLEhBg.png" /></figure><p>Now that we have ensured that our private instance has internet access, you can utilize the SSH client to connect into your instance, then you can ping the Private IPv4 address. The output verifies that we are able to ping the application tier from the web tier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*muVywfhCgoR6LEKm7Xlrlg.png" /></figure><h4>Database tier</h4><p>We can create private subnets for the database tier and attach it to our VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dblAwBJcGcvI6s1FTZDgNA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yuy51xj7vrhCkfkO7fc9EA.png" /></figure><p>Next, we will create a route table for the new subnets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z_x6s7beSC6Co8BuTDiGzQ.png" /></figure><p>We can associate the subnets to the route table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J4hsm7-k5PpJo32_BVaB1g.png" /></figure><p>We can then navigate to to the RDS dashboard and create the subnet group with the private subnets that were previously created.</p><p>Still on the RDS dashboard, we will create a database. For the database we can select “standard create” for the creation method and MySQL as the engine option. We will be using the free tier template as well. Under connectivity choose your subnet group that was recently created and create a new security group. When finished editing the settings, select “create database.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xFX0oQ6aDQc_g-Fo6jdReg.png" /></figure><p>Go to the Database security group and add an inbound rule to allow traffic for MySQL from the Application server security group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_j1_paOK3sKkUlA5Cvx_zg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hSRVG26AQ-RzrwQKXHmnVg.png" /></figure><p>Congratulations! You have been able to create the three-tier architecture. First we were able to confirm internet access from the Web layer. Then we were able to connect the public instance (bastion host) to the private instance through an SSH connection. Lastly, we were able to create a RDS MySQL database, associate it with its own private subnets, route table and allow inbound traffic from the Application layer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a8924f4abaf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy a Jenkins Server using Terraform]]></title>
            <link>https://medium.com/@DevOpsPortfolio/deploy-a-jenkins-server-using-terraform-e385c635f1a6?source=rss-637c94048350------2</link>
            <guid isPermaLink="false">https://medium.com/p/e385c635f1a6</guid>
            <dc:creator><![CDATA[Aisosa Aimufua ]]></dc:creator>
            <pubDate>Sun, 15 Oct 2023 17:35:33 GMT</pubDate>
            <atom:updated>2024-02-23T02:30:13.874Z</atom:updated>
            <content:encoded><![CDATA[<h3>Deploying a Jenkins Server using Terraform</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*8-Rihz67AqfxTCwXKwA0Rg.png" /></figure><h4>What is Terraform?</h4><p>Terraform is an infrastructure as code tool that enables users to build, change, and version cloud and on-premise resources. Providers enable Terraform to work with multiple services by utilizing application program interfaces. Benefits of Terraform include a high-level abstraction of infrastructure (IaC), support with parallel management of resources (graph, fast) and collaboration of workflows across various teams.</p><p>The three stages of the Terraform workflow are <strong>Write, Plan</strong> and <strong>Apply</strong>.</p><ul><li>The <strong>write</strong> stage enables users to define resources in a configuration file. This stage begins the process of developing your infrastructure as code.</li><li>The <strong>plan</strong> stage compares the state file to the current configuration and determines what changes need to be made.</li><li>The <strong>apply</strong> stage executes the proposed operations.</li></ul><h4>Scenario</h4><p>Your team of 20 Developers aspire to use Jenkins as their CI/CD tool to create pipelines for DevOps projects. You are assigned to create a Jenkins server using Terraform so that it can be used in other environments.</p><h4>Business Case</h4><ul><li>Bootstrap an EC2 instance with a script that will install and start Jenkins. Deploy the Instance in your Default VPC.</li><li>Create and assign a Security Group that allows traffic on port 22 and port 8080.</li><li>Create a S3 bucket for your Jenkins Artifacts that is not open to the public.</li><li>Verify that you can reach your Jenkins install via port 8080 in your browser.</li></ul><p><em>Note: I will be utilizing AWS Cloud9 as my integrated development environment to execute HashiCorp Configuration Language Terraform code.</em></p><p>The first step is to create a file where you can input your script to install, enable and start Jenkins when you deploy your EC2 instance. You can bootstrap your instance with the code below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h1v5EFlZYKGTI8yljCwg0w.png" /></figure><p>We should save our script as an .sh file.</p><p>The next step is to create a .tf file for our configuration. This configuration file will create our EC2 Instance, Security group, and S3 bucket. The file can be viewed below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*U1UpeiO261T8T4lWBm6UPQ.png" /></figure><p>Lets break down our code!</p><p>Our provider block lets Terraform know that we will be deploying our Infrastructure in the us-east-1 region of the AWS cloud.</p><pre># Configure the AWS Provider<br>provider &quot;aws&quot; {<br>  region = &quot;us-east-1&quot;<br>}</pre><p>Our first resource block declares our EC2 instance that will be deployed. The parameters of the resource block define the AMI associated with the instance, the instance type, key pair, security group assigned to the instance as well as the user data containing the Jenkins script.</p><pre># Launch EC2 Instance and Install Website<br>resource &quot;aws_instance&quot; &quot;jenkins_ec2_instance&quot; {<br>  ami             = &quot;ami-03a6eaae9938c858c&quot;<br>  instance_type   = &quot;t2.micro&quot;<br>  security_groups = [&quot;jenkins-sg&quot;]<br>  key_name        = &quot;tfkp&quot;<br>  user_data       = file(&quot;jenkins_install.sh&quot;)<br>}</pre><p>Our second resource block provides a security group that allows inbound traffic on port 22 and port 8080 and an outbound rule that allows traffic to any destination.</p><pre># Security Group for Jenkins EC2 Instance<br>resource &quot;aws_security_group&quot; &quot;jenkins_sg&quot; {<br>  name        = &quot;jenkins-sg&quot;<br>  description = &quot;Jenkins Security Group&quot;<br><br>  ingress {<br>    from_port   = 22<br>    to_port     = 22<br>    protocol    = &quot;tcp&quot;<br>    cidr_blocks = [&quot;0.0.0.0/0&quot;]<br>  }<br><br>  ingress {<br>    from_port   = 8080<br>    to_port     = 8080<br>    protocol    = &quot;tcp&quot;<br>    cidr_blocks = [&quot;0.0.0.0/0&quot;]<br>  }<br><br>  egress {<br>    from_port   = 0<br>    to_port     = 0<br>    protocol    = &quot;-1&quot;<br>    cidr_blocks = [&quot;0.0.0.0/0&quot;]<br>  }<br>}</pre><p>Our last resource block creates a private s3 bucket. We provided the bucket a globally unique name and a tag.</p><pre># Create private s3 bucket  <br>resource &quot;aws_s3_bucket&quot; &quot;jenkins_s3&quot; {<br>  bucket = &quot;jenkins-redteamsos-s3&quot;<br>  acl    = &quot;private&quot;<br><br>  tags = {<br>    Name = &quot;wk20tfs3&quot;<br>  }<br>}</pre><p>After saving our code as a .tf file, we can run the commands below to initialize, format, validate our configuration.</p><pre>terraform init<br>terraform fmt<br>terraform validate</pre><p>We can then then create an execution plan and deploy our infrastructure with the commands below. Once you run terraform apply you will be prompted to provide confirmation to apply the changes. Simply input “yes”.</p><pre>terraform plan<br>terraform apply </pre><p>The next step will be to can verify that Jenkins has been installed on the EC2 Instance.</p><p>Navigate to the EC2 dashboard and verify that our EC2 instance is running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pO73v1mfHwNxY828H3v_PA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OJ9HS_kTvWWxprThNpsSUw.png" /></figure><p>We can add :8080 to the end of the Public IPv4 address and copy it into an address bar. From there, we can see that Jenkins has been installed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sjTQh7kh06UMxma-CHdrXA.png" /></figure><p>Congratulations! You are now able to start using Jenkins as a CI/CD tool to create pipelines for your DevOps projects.</p><p>The link to my GitHub repository where the code is stored can be found below.</p><p><a href="https://github.com/aisosaj/terraform-repo2/blob/main/wk20pj.tf">https://github.com/aisosaj/terraform-repo2/blob/main/wk20pj.tf</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e385c635f1a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scaling your Nginx Service with Docker Swarm]]></title>
            <link>https://medium.com/@DevOpsPortfolio/scaling-your-nginx-service-with-docker-swarm-ca426eebe0f?source=rss-637c94048350------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca426eebe0f</guid>
            <dc:creator><![CDATA[Aisosa Aimufua ]]></dc:creator>
            <pubDate>Mon, 02 Oct 2023 17:52:05 GMT</pubDate>
            <atom:updated>2024-02-23T02:01:44.024Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*N6Uvd6FyezgigomVPH38xQ.png" /></figure><h4>What is Docker Swarm?</h4><p>Docker Swarm is an orchestration tool that helps end-users create and deploy Docker nodes in clusters. A swarm consists of multiple Docker hosts which run in swarm mode to act as managers and workers. A key feature of this tool is the ability to scale your desired service.</p><h4><strong>Scenario</strong></h4><p>A international company of 4,000 employees is unfamiliar with containerization and has experienced workload failure with their global shipping application. The company is worried about additional potential data loss and will need a step-by-step guide on setting up a Docker Swarm for their workloads to assist with container orchestration. The Swarm should also be able to launch containers using a global service.</p><h4><strong>Business Case</strong></h4><ul><li>Install Docker on all hosts</li><li>Change the hostname on each node to identify the master node and the two worker nodes</li><li>Create the Swarm using one master node and two worker nodes</li><li>SSH into the master node host and run a command to create your service using an Nginx image.</li><li>Initiate 1 replica.</li><li>Run the commands to verify that the service has been created and is running</li><li>Run the commands to scale the service to 3 replicas and verify that the service has scaled</li></ul><p><em>Note: I will briefly use the AWS management console for the first step and switch to Visual Studio Code to complete this task.</em></p><p>The first step is to navigate to your EC2 dashboard via the AWS management console and select “launch instances”. After naming your instance you can select the Ubuntu Sever 22.04 LTS for the AMI and t2.micro for the Instance type. Grant your instance a key pair and security group as well. For the inbound rules of your security group, ensure that you have a rule that forwards all TCP traffic to your VPC ID and that you can SSH into your IP. Scroll down to the advanced settings and input the command below in the user data text box to install docker for your instance.</p><pre>curl -fsSL https://get.docker.com -o get-docker.sh<br>sh get-docker.sh</pre><p>After you have entered the code in the user data text box, you can launch your instance. Repeat this process two more times so that you have 3 instances in total.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RbQ1EF84dgywaNfUDX50zw.png" /></figure><p>The next step is to set up the SSH configuration file so we can connect to our instances. This requires navigating to Visual Studio Code, selecting “Connect to Host” and then “Configure SSH Hosts”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*VSE32fND3MBR4AnsVQGnlQ.png" /></figure><p>For the configuration file, I referred to the instances previously created. For Host, I inputed “Docker”, “Node2” and “Node3” to identify each instance. The Hostname will be the Public IPv4 addresses of the instances. The User will be “ubuntu” since that is the AMI we selected and the IdentityFile will be the path to your key pair.</p><p>After saving the configuration file, you can now open a terminal in Visual Studio Code and connect to your instances (nodes). I opted to split my screen into 3 terminals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ftIsCbsdAJV2cgJTsghjAg.png" /></figure><p>Input the commands below to connect to your instances (each command is ran in their respective terminal for their respective instance).</p><pre>ssh Docker<br>ssh Node2<br>ssh Node3</pre><p>The terminal will prompt an output asking if you want to connect, type “yes” into the terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*0rgSs4j6AF16Nu7K5iWOFA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kGbZEFIVGG0_UDXCsLUKnA.png" /></figure><p>We would now like to change the hostnames to reflect our master node and worker nodes. The command to execute this request is below. Ensure to exit and SSH back into the nodes to see the expected result.</p><pre>sudo hostnamectl set-hostname (name)</pre><p>We have successfully changed the hostnames of our nodes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f53NzIKeLtkOs3QCuYkZOw.png" /></figure><p>The next step is to install Docker Swarm by initially using our master node and then continuing with our worker nodes. We can input the command below into the terminal of our master node.</p><pre>sudo docker swarm init</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*zwNd1GET9f__RwY34gncSg.png" /></figure><p>We have now officially created our master node. The output also gives us another command we can input into the other 2 terminals of the other nodes to make them worker nodes in our Swarm.</p><pre> sudo docker swarm join --token SWMTKN-1-487h9ooahac77pxcava8in8b1ttxuiyu4ll5jtut7lt6dyrqth-9cuu7vl3kq9b52rdf6630msjy 172.31.82.99:2377</pre><p>The expected outcome will be prompted on your terminal as seen below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*fzjzQIh-JrSO1CLxk9LK4Q.png" /></figure><p>We can verify the status of our master, worker nodes by running the command below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EGGNF7MvcTXlFwiYwAvf9A.png" /></figure><p>We see that the master node has the manager status of “leader”, verifying that the instance is the master node.</p><p>We are now ready to launch an Nginx service in our Swarm. To execute this task we can run the command below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zH6kGqMcDPHOinxheEv5Mw.png" /></figure><p>We can verify the service has been created by running the command below as well. Take note of the service ID, as we will need that information for the next step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*2NCm2-oULqOD5JSdCMJgHA.png" /></figure><p>As a global company, we would like to scale this service to three replicas. We can execute this additional task by running the command below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*3DEsfUCK8lrh_O7Py6oUyg.png" /></figure><p>The command below can be ran to verify that the service has been replicated three times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*iyHYV5vFyWMjO5oCZSkGtg.png" /></figure><p>It is best practice to remove idle services and leave the swarm once you are complete with your tasks.</p><p>You can remove the service by running the first command below. The following command verifies that the service has been removed from the swarm as no information is listed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*5doNwytouSDiIJ0wCC4jyQ.png" /></figure><p>Lastly, you can run the command below to leave the swarm</p><pre>sudo docker swarm leave --force</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uLd3DtQKqym-EVNulaSoQQ.png" /></figure><p>Congratulations! We now have the steps to create our Docker Swarm and scale our Nginx service! This orchestration tool will be essential for the global shipping application.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca426eebe0f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux Directories, Groups & Users]]></title>
            <link>https://medium.com/@DevOpsPortfolio/linux-directories-groups-users-ba66567e4f3b?source=rss-637c94048350------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba66567e4f3b</guid>
            <dc:creator><![CDATA[Aisosa Aimufua ]]></dc:creator>
            <pubDate>Mon, 02 Oct 2023 15:05:39 GMT</pubDate>
            <atom:updated>2023-10-02T15:11:43.717Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HSevZVmrUoC6NfvlIi3UCA.jpeg" /></figure><p>The Level Up Bank is in need of a secure and efficient user management system. This management system will segregate data and responsibilities across various roles within each department. Each user should only have access to their relevant data and systems. This will ensure a division of responsibilities, enhance data security, and minimize potential data breaches.</p><h3>Steps to Create User Management System via AWS</h3><h4>Step 1: Create an EC2 Instance</h4><p>Log into your AWS Console and launch an EC2 instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*uszcMwaQtQbTS2JfbFmikQ.png" /></figure><h4>Step 2: Connect to your EC2 Instance via ssh client</h4><p>Once your instance has been launched, start and connect to it via the SSH Client. This requires you to open the terminal on your computer and locate your key pair. Use that key pair to connect to your instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*83WldF2s2orb7BGk3ThhsQ.png" /></figure><p>Once you have connected to your instance, update your package server by using the command below.</p><pre>sudo apt update -y</pre><h4>Step 3: Create 3 Directories and add a File to Each Directory.</h4><pre>sudo mkdir Development Operations Analytics </pre><p>If you long list your current directory, the newly made directories should appear on your terminal, as seen below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*16qDGfI7CN45HRaR6ecTKw.png" /></figure><p>Enter the Analytics Directory and add a file with the commands below.</p><pre>cd Analytics</pre><pre>touch AnalyticsFile.txt</pre><p>Enter the Operations Directory and add a file with the commands below.</p><pre>cd Operations</pre><pre>touch OperationsFile.txt</pre><p>Enter the Development Directory and create a file with the commands below.</p><pre>cd Development</pre><pre>touch DevelopmentFile.txt</pre><h4>Step 4: Create 3 Groups in Linux and grant them Group Ownership of their respective Directories.</h4><p>Use the commands below to create the Developers group and to grant group ownership.</p><pre>sudo addgroup developers<br>sudo chown :developers Devlopment </pre><p>Use the commands below to create the Operations group to grant group ownership.</p><pre>sudo addgroup operations<br>sudo chown :operations Operations</pre><p>Use the commands below to create the Data Analysts group and to grant group ownership.</p><pre>sudo addgroup data_analysts<br>sudo chown :data_analysts Analytics</pre><p>Each group should only be able to view and access to their respective directory. Use the command below to alter the group permissions.</p><pre>sudo chmod 050 Development/ Operations/ Analytics/</pre><p>After the command, you can long list your directories to see the file attributes. it should look like this in your terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wGjtH8IVUVDA1l3E-Zdzew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/156/1*xmF0XN0yP2fWX4EdVhk82A.png" /></figure><h4>Step 5: Create Users &amp; add their associated information</h4><p>Below are the 3 users we will create along with their user information.</p><p>-Jess Waller, username= jwaller, <a href="/service/mailto:email=jwaller@xn--levelupbank-6d3f.com">email=jwaller@‌levelupbank.com</a>, group= Developers</p><p>-Blake Dorsey, username= bdorsey, <a href="/service/mailto:email=bdorsey@xn--levelupbank-6d3f.com">email=bdorsey@‌levelupbank.com</a>, group= Operations</p><p>-Joey Ewart, username= jewart, <a href="/service/mailto:email=jewart@levelupbank.com">email=jewart@levelupbank.com</a>, group= Data Analysts</p><p>Use the commands below to create the three users along with thier associated information.</p><pre>sudo useradd jwaller -c &quot;email = jwaller@levelupbank.com , Jess Waller&quot; -G developers<br>sudo useradd bdorsey -c &quot;email = bdorsey@levelupbank.com , Blake Dorsey&quot; -G operations<br>sudo useradd jewart -c &quot;email = jewart@levelupbank.com , Joey Ewart&quot; -G data_analysts</pre><p>Grant each user password credentials to log in using the commands below.</p><pre>sudo passwd jewart<br>sudo passwd jwaller<br>sudo passwd bdorsey</pre><p>Make the new users owners of their respective directories using the commands below.</p><pre>sudo chown jwaller Development<br>sudo chown bdorsey Operations<br>sudo chown jewart Analytics </pre><p>Modify the user permissions so that they can access their directory with the command below.</p><pre>sudo chmod 550 Development Operations Analytics</pre><p>Congratulation! We now have the steps to help Level Up Bank create a secure User Management System as each user has read and executional permissions within their respective directory.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba66567e4f3b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Continuous Development and Deployment with Docker and Jenkins]]></title>
            <link>https://medium.com/@DevOpsPortfolio/continuous-development-and-deployment-with-docker-and-jenkins-86746e8d223c?source=rss-637c94048350------2</link>
            <guid isPermaLink="false">https://medium.com/p/86746e8d223c</guid>
            <dc:creator><![CDATA[Aisosa Aimufua ]]></dc:creator>
            <pubDate>Mon, 11 Sep 2023 02:27:49 GMT</pubDate>
            <atom:updated>2023-09-11T15:02:43.153Z</atom:updated>
            <content:encoded><![CDATA[<h3>Docker-Jenkins : Optimizing Development &amp; Deployment</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*_BQx9mAWj62y8oLbzhLnEg.png" /></figure><h4>Background Information</h4><p>Jenkins is a open source automation tool that provides continuous build and integration to optimize software development. Paired with Docker, businesses can benefit from creating Jenkins containers, emphasizing the implementation of persistent volumes. Volumes are a configuration option within Docker that creates a separate location outside the union file system. You an attach a volume to across multiple containers and they are preserved after container removals.</p><h4>Business Case</h4><ul><li>Pull the Jenkins LTS image from Docker Hub.</li><li>Create a Docker volume for Jenkins to persist its data.</li><li>Run the container with the volume and correct port mapped to the container.</li><li>Retrieve the Admin password.</li><li>Login and create a new user.</li><li>Launch a new Jenkins container using the same volume and verify that the data has persisted by logging in as the newly created user.</li></ul><p>The first step in providing this solution will be to connect to your EC2 instance via Visual Studio Code and pull the Jenkins LTS image from Docker Hub.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C6iCzLLEx2RptVwV_j8ZaQ.png" /></figure><p>The next step would be to create a volume for Jenkins to persist its data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LW9Gh4xlLXuMAA1qc1hpmw.png" /></figure><p>We can now run a container with the volume and correct port mapped to the container.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7vSTnzDiLe0r03CirwDmNA.png" /></figure><p>The output presents our unique id as the container has been created. We can verify this by pasting the public ip address of our instance in a web browser. Ensure to add “:8080” at the end of the address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*57nRla7mnu_qDgrUd9FpQw.png" /></figure><p>The next step is to retrieve the admin password. This can be accomplished by running the command below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xSGyDKq9sz89aoKvPI3cJA.png" /></figure><p>The output presented will be the admin password needed to login and create a user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vsiwERuO5rDCXSM9eTY6mw.png" /></figure><p>After successfully creating a user, we can launch a new Jenkins container using the same volume and verify that the data has persisted by logging in as the newly created user.</p><p>In order to accomplish this, we must stop the current running container with the command below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*8S9hrFg6zCRAINGRu0jsvQ.png" /></figure><p>We can run the command below to verify that the container has been stopped.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*Ocg1whwh0e8ZG4aTZK8VZw.png" /></figure><p>The command below starts and runs a new container using the volume created earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gTGIb3T6bJtIpVNxBYXMBg.png" /></figure><p>Using the log in credentials from earlier, we should still be able to sign into Jenkins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mbTbRiavAsGI7DqF6JemgQ.png" /></figure><p>Congratulations! We have proved that our volume is persistent by running a new container and signing into Jenkins with our login credentials.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86746e8d223c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Utilizing Python to generate a list of dictionaries]]></title>
            <link>https://medium.com/@DevOpsPortfolio/utilizing-python-to-generate-a-list-of-dictionaries-d31ea14b1a04?source=rss-637c94048350------2</link>
            <guid isPermaLink="false">https://medium.com/p/d31ea14b1a04</guid>
            <dc:creator><![CDATA[Aisosa Aimufua ]]></dc:creator>
            <pubDate>Sun, 10 Sep 2023 18:12:56 GMT</pubDate>
            <atom:updated>2023-09-10T18:18:11.837Z</atom:updated>
            <content:encoded><![CDATA[<h3>Utilizing Python to Generate a List of Dictionaries</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*7kMSOXKuT5Xp7RZArgbjcQ.jpeg" /></figure><h4>What is Python?</h4><p>Python is a computer programming language used to build websites, software, automate tasks, and conduct data analysis. Python is a general-purpose language, meaning it can be used to create a variety of different programs and isn’t specialized for any specific problems. This versatility, along with its beginner-friendliness, has made it one of the most-used programming languages today.</p><h4>What is Cloud9?</h4><p>AWS Cloud9 is a cloud-based integrated development environment (IDE) that lets you write, run, and debug your code with just a browser. Cloud9 comes prepackaged with essential tools for popular programming languages, including JavaScript, Python, PHP, and more, so you don’t need to install files or configure your development machine to start new projects. Since the Cloud9 IDE is cloud-based, you can work on your projects from your office, home, or anywhere using an internet-connected machine.</p><h4>What is Github?</h4><p>Github is a web-based interface that uses Git, the open source version control software that lets users make separate changes to web pages at the same time. Allowing for real-time collaboration, GitHub enables multiple developers to work on a single project simultaneously, which improves efficiency by reducing the risk of duplicate work. With GitHub, developers can build code, track changes, and innovate solutions for development processes.</p><h4>Business Case</h4><p>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.</p><p>The first step in providing the solution is to sign into AWS &amp; navigate to Cloud9. From our main branch we can create a new branch and open a python file to start scripting. Our script that will generate and print a list of dictionaries of our files from our working directory can be seen below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*RAe_KeQLSdqeIFxWYFbARw.png" /></figure><h4>Breaking down the Script</h4><p>We will now break down each part of our code!</p><pre>import os</pre><p>We start off by importing our operating system module. This allows us to interact with our underlying operating system.</p><pre>cwd = os.getcwd()</pre><p>We then create a variable for our working directory.</p><pre>files = os.listdir(cwd)<br>dict_list = []</pre><p>Next, we create a variable that brings back a list of files in the working directory and then we will create an empty list.</p><pre>for file_name in files:<br>    file_path = os.path.join(cwd, file_name)<br>    file_size = os.path.getsize(file_path)</pre><p>The next step will be to iterate over each file in the directory utilizing a for loop.</p><pre>file_info = {<br>    &#39;file_name&#39;: file_name,<br>    &#39;file_path&#39;: file_path,<br>    &#39;file_size&#39;: file_size,<br>}<br><br><br>dict_list.append(file_info)</pre><p>From there, we can create a dictionary with information from the file and add the information to the list.</p><pre>for file_info in dict_list:<br>    print(file_info)<br>    print ()</pre><p>The last step in the script will be to print the file information.</p><p>The screenshot below illustrates the output when I ran the script in Cloud9</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HCK14bURTMlYd3t7c5oNnQ.png" /></figure><p>Congratulation! We have now successfully ran our python script to generate a list of dictionaries detailing the name and size of our files from our working directory.</p><p>The last step is to save, push and commit our Python file to Github. The link to view my code, Github repository is below.</p><p><a href="https://github.com/aisosaj/redteamsos-repo/blob/main/wk13pj.py">redteamsos-repo/wk13pj.py at main · aisosaj/redteamsos-repo</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ra-X1E1SkruhNjeCj3deZQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d31ea14b1a04" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker-Containerized Web Application Deployment]]></title>
            <link>https://medium.com/@DevOpsPortfolio/docker-containerized-web-application-deployment-bd9930a076c2?source=rss-637c94048350------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd9930a076c2</guid>
            <dc:creator><![CDATA[Aisosa Aimufua ]]></dc:creator>
            <pubDate>Thu, 07 Sep 2023 13:58:34 GMT</pubDate>
            <atom:updated>2023-11-14T00:26:18.085Z</atom:updated>
            <content:encoded><![CDATA[<h3>Containerized Web Application Deployment with Docker</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bZP17SmwRZihfAYDr5KBFg.png" /></figure><h4>What is Docker?</h4><p>Docker is an open source software platform to create, deploy and manage containers while ensuring consistency and portability. Containers are units of software that package code along with its dependencies to run applications on various environments. Furthermore, docker containers provide an efficient way to distribute applications by enabling version control, isolation and improved collaboration. These advantages contribute to reliable web application deployments and enhanced development for businesses.</p><h4>Business Case</h4><ul><li>Run a Docker Ubuntu container running detached and on port 80</li><li>Using BASH shell update all packages within the container</li><li>Using BASH install Apache2 on the Ubuntu container</li><li>Add a custom webpage</li><li>Verify you can reach the webserver from your browser</li></ul><h4>Prerequisites</h4><ul><li>AWS Management Console (EC2 dashboard)</li><li>Visual Studio Code</li></ul><h4>Step 1: Run a Docker Ubuntu Container</h4><p>After you have launched your Ubuntu EC2 instance on AWS, you can SSH into your environment by updating your configuration file in Visual Studio Code. This is done by connecting to the host via Remote-SSH.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iy4ULJ6Wf2tCPTwR8t2rIg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jq2gHDysBTGVrhW2QpLdoA.png" /></figure><p>Select the file path with your user name to configure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fnQgnXIDV7y8ZO7xULbD7Q.png" /></figure><p>Enter the information pertaining to the Host, HostName, User and IdentityFile. Copy and paste the Public IPv4 address of the instance next to “Hostname” in the configuration file. Save the file when complete and then connect to the host again to connect to your instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*bWcrPzhwqs0tgV8OEhXfDQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*4UemPUAgj0J8WrzXa5dh-g.png" /></figure><p>Now that you have connected to your instance via Visual Studio Code, we can now run a Docker Ubuntu container running detached and on port 80 with the command below.</p><pre>sudo docker container run --publish 80:80 --detach --name rtsosws -<br>it ubuntu</pre><p>Once the command is ran, the terminal outputs a unique id.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W9FlzhqGH2eggQr-Pr9rBQ.png" /></figure><h4>Step 2: Update all packages in the container using BASH shell update</h4><p>Before executing the update, we can run the command below to gain access within the shell.</p><pre>sudo docker container exec -it 8bd69652e5c4 bash</pre><p>Note that after you run this command, the terminal will prompt you as the root user. This means that you are now operating in the shell, as opposed to operating on your local machine or EC2 instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TgnlKurTq8n60it00Nl6ZQ.png" /></figure><p>To update packages in the container, run the command below.</p><pre>apt-get update</pre><p>The terminal prints the output below upon updating packages in the shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WTPZHyJyTR7d2sX8pWXL5A.png" /></figure><h4>Step 3: Using BASH install Apache2 on the Ubuntu container</h4><p>Using BASH, still within the shell, we can install Apache2 on the Ubuntu container with the command below.</p><pre>apt-get install apache2 -y</pre><p>Once installed, you can copy and paste the IPv4 address of the instance to your browser to access the web server interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9uJV0XDuq92lWUxOBJzgUw.png" /></figure><p>Type “exit” into the terminal to leave the bash environment.</p><h4>Step 4: Add a custom webpage</h4><p>To create a custom webpage, we should create and cd into a directory with the commands below.</p><pre>mkdir rtsosdir<br>cd rtsosdir</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*1MU1GRwUU7Lo9NS-ddib9g.png" /></figure><p>Once inside the directory, we can create a new volume.</p><pre>sudo docker volume create --name rtsosvolume</pre><p>We can now create a Dockerfile, which provides instructions to create our docker image.</p><pre>touch Dockerfile<br>vi Dockerfile</pre><p>The next step is to edit the Dockerfile.</p><pre>FROM nginx:latest<br>RUN echo &quot;&lt;h1&gt;RedTeamSos Week16 LUIT Proj&lt;/h1&gt;&quot; &gt; /usr/share/nginx/html/index.html<br>VOLUME /usr/share/nginx/html</pre><p>We can now execute the docker build command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J8qkSn7SBlu-2nBecO4G7g.png" /></figure><p>The last step is to run a container and check to see if the custom website works. The command to run a container with the volume created earlier is below.</p><pre>sudo docker run -d -p 83:80 rtsosvolume</pre><p>Now lets verify that we can reach the webserver from our browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*3fvoRxVeF67B4cCNLTlT1A.png" /></figure><p>Congratulations! We now have the steps to create a custom web page utilizing containerized web application deployment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd9930a076c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Managing EC2 Instances with Boto3 in Python]]></title>
            <link>https://medium.com/@DevOpsPortfolio/managing-ec2-instances-with-boto3-in-python-e0d5d8e60fd7?source=rss-637c94048350------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0d5d8e60fd7</guid>
            <dc:creator><![CDATA[Aisosa Aimufua ]]></dc:creator>
            <pubDate>Mon, 14 Aug 2023 21:13:41 GMT</pubDate>
            <atom:updated>2024-02-23T02:21:10.180Z</atom:updated>
            <content:encoded><![CDATA[<h3>Automating EC2 Instances with Boto3 in Python</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*w8mGBPRd55RCw1LGnRoO5w.png" /></figure><h4>What is Boto3?</h4><p>Boto3 is a tool that allows developers to utilize Python code that interacts with AWS services. With boto3, developers can build applications, manage services and automate tasks, which makes it an essential tool for anyone working with AWS.</p><p>The primary function of boto3 is to execute API calls through the client and resource service interfaces. The client object provides a lower-level, more direct interface to the AWS API. The resource object enables a higher-level abstraction than the raw, low-level calls made by the service clients.</p><h4>Business Case:</h4><p>A Development team of 20 Engineers have clocked out of work but accidentally left 3 instances running in the lab. This scenario leads to unnecessary expenses incurred by the lab. Managers are brainstorming an efficient plan to rectify this issue and cut costs.</p><h4>Task:</h4><p>Create a Python script that will stop the instances.</p><h4>Prerequisites:</h4><ul><li>AWS EC2 Dashboard</li><li>AWS Cloud9</li></ul><p>Before we can create a script to stop the instances, we must create and start the instances.</p><p>First, we will navigate to AWS Cloud9 and import the boto3 module. This step will grant access to the functions and classes provided by boto3, enabling interaction with the AWS services.</p><pre>import boto3</pre><p>The next step is to create an EC2 resource object named “EC2” using Boto3. This object allows us to interact with the EC2 instances.</p><pre>ec2 = boto3.resource(&#39;ec2&#39;)</pre><p>The script we can use to create and start the instances can be seen below. This script also details the Image ID, Instance Type, and amount of instances that will be created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cVeTH1O7WGnEg2siM5nvKQ.png" /></figure><p>We can verify that the instances have been created and are running by navigating to the AWS EC2 dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*va0mwanESSerAGj2-8rsPA.png" /></figure><p>The next step is to stop the instances using the “stop_instances” method. This method will incorporate a list of Instance Id’s from the running instances.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8z2l5AgJpOuPub9B5ppU8A.png" /></figure><p>After the command is executed, the instances will stop running, as seen below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aUVHG3sIANaJm7NkglKhKA.png" /></figure><p>Congratulations! We have successfully used Boto3 to stop the running instances via Python code.</p><p>The script for this task can be seen below in my Github repository as well.</p><p><a href="https://github.com/aisosaj/boto3-repo/blob/main/wk14pj3.py">https://github.com/aisosaj/boto3-repo/blob/main/wk14pj3.py</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0d5d8e60fd7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Managing access to your DynamoDB Table u]]></title>
            <link>https://medium.com/@DevOpsPortfolio/managing-access-to-your-dynamodb-table-u-8def585b856?source=rss-637c94048350------2</link>
            <guid isPermaLink="false">https://medium.com/p/8def585b856</guid>
            <dc:creator><![CDATA[Aisosa Aimufua ]]></dc:creator>
            <pubDate>Sat, 01 Jul 2023 21:55:33 GMT</pubDate>
            <atom:updated>2023-07-03T14:27:18.838Z</atom:updated>
            <content:encoded><![CDATA[<h3>Managing Access to your DynamoDB Table</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*MeLwtqK7-Jm6fFsff0JF-g.png" /></figure><h4>DynamoDB</h4><p>AWS DynamoDB is a NoSQL, serverless, key-value database that delivers millisecond executions. Within DynamoDB you can create tables &amp; populate those tables with data. The data is stored in partitions which are replicated in multiple availability zones within a region.</p><h4>Partition Key</h4><p>A partition is allocated storage for a table which is replicated across multiple availability zones within an AWS region. Partition keys are known as unique attributes because they are the primary entry point for querying your data. If a partition key is paired with a sort key, both keys are then identified as the composite key.</p><h4>IAM Role</h4><p>AWS Identity and Access Management (IAM) roles are entities that are assigned specific permissions that allow trusted identities to perform actions in AWS. When your trusted identities attach an IAM role, they are granted only the permissions within scope of the IAM role.</p><h4>Business Case</h4><ul><li>Create a DynamoDB table for the 10 most recent Movie releases. The table should include the movie titles, genres, release dates, and ratings.</li><li>Create a t2.micro EC2 instance and grant the instance read-only access to DynamoDB table using an IAM role. Keep in mind the principle of least privilege.</li><li>Use the AWS CLI to connect to the EC2 instance. Scan the DynamoDB table and ensure you cannot write items into the table.</li></ul><h4>Step 1: Create DynamoDB Table</h4><p>On the AWS DynamoDB dashboard, navigate to table and select “Create table”. Give the table a name along with a Partition Key. You can leave the remaining settings as their default option and click “Create table”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IzmQ9-KQAR1DLlmla9l25g.png" /></figure><p>Once your table is active, select “explore items” under the actions drop down list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hhRQ1tgW6Y8GOQVlLO528A.png" /></figure><p>Create 10 table items detailing the latest movie releases. You can add attributes such as the movie name, genre, rating, and release date. Once you have populated your table, it should appear similar to the table below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CldlmsLJpFsIeQ0BdpsGIA.png" /></figure><h4>Strep 2: Create a t2. micro EC2 Instance</h4><p>Head over to the EC2 dashboard and select launch instance. You can give your instance a name and select t2.micro for the instance type. Leave the remaining configurations as their default setting and finalize the creation of your instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hz37_R1crDzB3ZhQ6hM9XA.png" /></figure><h4>Step 3: Create Policy</h4><p>On the Identity and Access Management dashboard, navigate to Policies and select “Create policy”. Specify permissions of the policy by selecting a service and the actions allowed. In our case, we want read-only access for the DynamoDB service. After you click “Next”, you are able to provide a policy name and finalize the creation of your policy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sRI-LDf0AKXX7ql-xQr9Qg.png" /></figure><h4>Step 4: Create an IAM role and add policy</h4><p>Navigate to the IAM dashboard and in the Roles section select “Create role”. Select AWS service for the trusted entity type and EC2 for the use case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LKNL5VNPerxsgMv7A21iDA.png" /></figure><p>After you select the trusted entity type and common use case, you can add the policy recently created to the role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YRGUqXnaA9zyTYcqupAyiA.png" /></figure><p>You can provide a name and description for the role and the select “Create role”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IKweCjavq1uIwBSDpmRfag.png" /></figure><h4>Step 5: Attach IAM role to EC2 Instance</h4><p>On the EC2 dashboard, navigate to your instance and select the actions drop down list. From this point you can click “Modify IAM role” under the security options. As seen below, you can then choose the IAM role and click “Update IAM role”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kYHpX2VcIa-U7y-qqUvu0g.png" /></figure><h4>Step 6: Scan the DynamoDB table</h4><p>Now that we have attached the role to our instance, we will scan our DynamoDB table via AWS CLI. We can connect to our instance via the ssh client.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gxf-sphKG7V2dDJz1-M5ZA.png" /></figure><p>Once you are in your terminal and connected to your instance, you can run the command below to scan the DynamoDB table.</p><pre>aws dynamodb scan --table-name MediaCatalog --region us-east-1</pre><p>The terminal will display the table information, including the attributes that you added into the table.</p><pre>{<br>    &quot;Count&quot;: 10, <br>    &quot;Items&quot;: [<br>        {<br>            &quot;Genre&quot;: {<br>                &quot;S&quot;: &quot;Documentary &quot;<br>            }, <br>            &quot;Rating &quot;: {<br>                &quot;S&quot;: &quot;7.2/10&quot;<br>            }, <br>            &quot;Movie_Name&quot;: {<br>                &quot;S&quot;: &quot;Zoo Lock Down&quot;<br>            }, <br>            &quot;Release_Date&quot;: {<br>                &quot;S&quot;: &quot;06/13/2023&quot;<br>            }<br>        }, <br>        {<br>            &quot;Genre&quot;: {<br>                &quot;S&quot;: &quot;Action/Adventure/Animated &quot;<br>            }, <br>            &quot;Rating &quot;: {<br>                &quot;S&quot;: &quot;9.6/10&quot;<br>            }, <br>            &quot;Movie_Name&quot;: {<br>                &quot;S&quot;: &quot;Spider-Man: Across the Spider-Verse &quot;<br>            }, <br>            &quot;Release_Date&quot;: {<br>                &quot;S&quot;: &quot;06/14/2023&quot;<br>            }<br>        }, <br>        {<br>            &quot;Genre&quot;: {<br>                &quot;S&quot;: &quot;Comedy/Drama&quot;<br>            }, <br>            &quot;Rating &quot;: {<br>                &quot;S&quot;: &quot;7/10&quot;<br>            }, <br>            &quot;Movie_Name&quot;: {<br>                &quot;S&quot;: &quot;Asteroid City&quot;<br>            }, <br>            &quot;Release_Date&quot;: {<br>                &quot;S&quot;: &quot;06/15/2023&quot;<br>            }<br>        }, <br>        {<br>            &quot;Genre&quot;: {<br>                &quot;S&quot;: &quot;Action/Adventure &quot;<br>            }, <br>            &quot;Rating &quot;: {<br>                &quot;S&quot;: &quot;6.6/10&quot;<br>            }, <br>            &quot;Movie_Name&quot;: {<br>                &quot;S&quot;: &quot;Indiana Jones and the dial of destiny &quot;<br>            }, <br>            &quot;Release_Date&quot;: {<br>                &quot;S&quot;: &quot;06/16/2023&quot;<br>            }<br>        }, <br>        {<br>            &quot;Genre&quot;: {<br>                &quot;S&quot;: &quot;Drama/Comedy/Romance&quot;<br>            }, <br>            &quot;Rating &quot;: {<br>                &quot;S&quot;: &quot;5/10&quot;<br>            }, <br>            &quot;Movie_Name&quot;: {<br>                &quot;S&quot;: &quot;Through My Window: Across the Sea&quot;<br>            }, <br>            &quot;Release_Date&quot;: {<br>                &quot;S&quot;: &quot;06/17/2023&quot;<br>            }<br>        }, <br>        {<br>            &quot;Genre&quot;: {<br>                &quot;S&quot;: &quot;Drama/Comedy&quot;<br>            }, <br>            &quot;Rating &quot;: {<br>                &quot;S&quot;: &quot;7.5/10&quot;<br>            }, <br>            &quot;Movie_Name&quot;: {<br>                &quot;S&quot;: &quot;Are You There God? It&#39;s Me, Margaret&quot;<br>            }, <br>            &quot;Release_Date&quot;: {<br>                &quot;S&quot;: &quot;06/17/2023&quot;<br>            }<br>        }, <br>        {<br>            &quot;Genre&quot;: {<br>                &quot;S&quot;: &quot;Documentary&quot;<br>            }, <br>            &quot;Rating &quot;: {<br>                &quot;S&quot;: &quot;4/10&quot;<br>            }, <br>            &quot;Movie_Name&quot;: {<br>                &quot;S&quot;: &quot;Anthem&quot;<br>            }, <br>            &quot;Release_Date&quot;: {<br>                &quot;S&quot;: &quot;06/18/2023&quot;<br>            }<br>        }, <br>        {<br>            &quot;Genre&quot;: {<br>                &quot;S&quot;: &quot;Mystery&quot;<br>            }, <br>            &quot;Rating &quot;: {<br>                &quot;S&quot;: &quot;4/10&quot;<br>            }, <br>            &quot;Movie_Name&quot;: {<br>                &quot;S&quot;: &quot;Confidential Informant &quot;<br>            }, <br>            &quot;Release_Date&quot;: {<br>                &quot;S&quot;: &quot;06/19/2023&quot;<br>            }<br>        }, <br>        {<br>            &quot;Genre&quot;: {<br>                &quot;S&quot;: &quot;Action/Adventrue&quot;<br>            }, <br>            &quot;Rating &quot;: {<br>                &quot;S&quot;: &quot;6.5/10&quot;<br>            }, <br>            &quot;Movie_Name&quot;: {<br>                &quot;S&quot;: &quot;Ruby Gillman, Teenage Kraken&quot;<br>            }, <br>            &quot;Release_Date&quot;: {<br>                &quot;S&quot;: &quot;06/20/2023&quot;<br>            }<br>        }, <br>        {<br>            &quot;Genre&quot;: {<br>                &quot;S&quot;: &quot;Documentary&quot;<br>            }, <br>            &quot;Rating &quot;: {<br>                &quot;S&quot;: &quot;7/10&quot;<br>            }, <br>            &quot;Movie_Name&quot;: {<br>                &quot;S&quot;: &quot;Casa Susanna &quot;<br>            }, <br>            &quot;Release_Date&quot;: {<br>                &quot;S&quot;: &quot;06/22/2023&quot;<br>            }<br>        }<br>    ], <br>    &quot;ScannedCount&quot;: 10, <br>    &quot;ConsumedCapacity&quot;: null<br>}</pre><h4>Step 7: Validate you cannot write an item</h4><p>Now that we have validated that we are able to scan the table, we need to ensure that we cannot input an item to the table. This will validate that our role is operating under the least priviledge principle. Ideally, we should not be able to perform this because we do not have the permissions to do so.</p><p>Enter the command below into your terminal to add an item to the DynamoDB table.</p><pre>aws dynamodb put-item --table-name MediaCatalog --item &#39;{&quot;Movie_Name&quot;: {&quot;S&quot;: &quot;The Little Mermaid&quot;}}&#39; --region us-east-1a</pre><p>After you input the command, you should recieve an error as seen below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rr4OD7JKcSUsG6V1sAjMWA.png" /></figure><p>Congratulations! You have now created a table in DynamoDB and ensured that your instance has read-only access to the table.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8def585b856" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configuring Auto Scaling Groups and Load Balancers in your AWS VPC]]></title>
            <link>https://medium.com/@DevOpsPortfolio/configuring-auto-scaling-groups-and-load-balancers-in-your-aws-vpc-95b7aa45c6a2?source=rss-637c94048350------2</link>
            <guid isPermaLink="false">https://medium.com/p/95b7aa45c6a2</guid>
            <dc:creator><![CDATA[Aisosa Aimufua ]]></dc:creator>
            <pubDate>Fri, 23 Jun 2023 18:12:56 GMT</pubDate>
            <atom:updated>2023-08-09T01:49:25.460Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LZWz9_75PilGBObAl8f4gw.png" /></figure><h4>AWS VPC</h4><p>The Amazon Virtual Private Cloud is a service that provides the ability to launch your AWS resources in an isolated virtual network. Within your environment you can can manage your IP address range, route table and also create public, private subnets.</p><h4>AWS Auto Scaling Group</h4><p>AWS Auto Scaling observes your applications and automatically adjusts capacity to maintain business standard performance levels. You can create scaling plans for your resources within minutes as well. AWS ASG is cost efficient as you only pay for the resource you use and enables high availability as you can scale your applications in different availability zones.</p><h4>AWS Elastic Load Balancer</h4><p>AWS Elastic Load Balancing automates traffic distribution to various applications, resources in one or multiple availability zones. Today we will be utlizing the Application Load Balancer, which operates at layer 7, routing HTTP and HTTPS traffic.</p><h4>Advantages of migrating to a VPC</h4><p>Migrating your on-prem resources to a private cloud provides advantages such as an increased level of scalability, reliability, and security. You can also save on costs by taking advantage of pay-as-you-go pricing while maintaining the ability to host your own web applications.</p><h4>Business Case Requirements</h4><ul><li>Create a VPC with 3 public subnets.</li><li>Configure an auto scaling group with a maximum of 5 instances and a minimum of 2 instances. The ASG will utitlize the 3 public subnets created earlier to ensure that instances are launched in different availability.</li><li>To distribute traffic to the autoscaling group, create an Application Load Balancer.</li><li>Configure a web server security group that allows inbound HTTP traffic from the Application Load Balancer. Edit the security settings to ensure that the website is not acessible with the public ip. End users must use the Application Load Balancer to reach the site.</li><li>Create a load balancer security group that allows inbound HTTP traffic from 0.0.0.0/0.</li></ul><h4>Step 1: Create a VPC with CIDR 10.10.0.0/16</h4><p>On your VPC dashboard, select “Create VPC” and input your VPC settings. Once you are finished, selected “Create VPC” at the bottom of the page to complete the task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bZ2NYgAUsvyft2WekdsuYw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ODeqoReXc58O9RA5tXeARA.png" /></figure><p>Enable DNS hostnames under VPC settings to get DNS hostnames for the EC2 instances created in your VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OOGdnSY1YitnyWQOabu2Ow.png" /></figure><h4>Step 2: Create 3 Public Subnets</h4><p>In the VPC dashboard, click “Create Subnet’. Select the VPC you previously created on step 1 on VPC ID drop down list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*83QZ7YKMKfIuSKVSnjQmNQ.png" /></figure><p>Create 3 subnets within your VPC CIDR range. These subnets should also be in different availability zones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tvKCtKiq4nn0nIdvOePzOg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*syHiuNAW2dTXeiCUneeFGg.png" /></figure><p>After your subnets have been successfully created, enable auto assign public IPv4 address to grant the subnets an public ip address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KBjc24CUnUmXxlkfvE5pQg.png" /></figure><h4><strong>Step 3: Create Auto Scaling Group</strong></h4><p>Prior to creating your Auto Scaling group, you should create a launch template which provides the instance configuration. Launch templates detail the Amazon Machine Image, instance type, key pair, security groups, and other parameters used to launch EC2 instances.</p><p>In regards to this template, we will configure instances with a custom Apache web server installed upon launching. This can be accomplished by inputing a script in the user data field under the advanced details of the template creation page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yzEeMn9jss4ASrGc6X0Wgw.png" /></figure><p>Click “Create launch template” when you are finished.</p><p>Back on the EC2 dashboard, click “Auto Scaling Group” and then select “Create Auto Scaling Group. Give your ASG a name and select the launch template previously created. For the network configuration, select the VPC you created earlier along with the subnets within that VPC. Remember that the business case requires a min and max of 2 and 5 instances for the ASG.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jYaoOAl0G8JS7mA3TuVm7Q.png" /></figure><p>If you select the public IPv4 address of any of the instances just created, you should see the custom page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*skzioVOD_xDaErryOXR07A.png" /></figure><h4>Step 4: Create Internet Gateway for Public Subnets</h4><p>In the VPC dashboard, select “create internet gateway”. Grant your IGW a name and complete the task by selecting “create internet gateway” again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DmqrDINrWyXbZGN_7ty5Iw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dIhuuZf-KO9aceCQlL7fLw.png" /></figure><p>The next step is to attach your IGW to your VPC. This will grant your public subnets internet access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UgnuHAE17Q_rbCnvcvjHPg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*eq_SH0swTa6mXJwapWIBKg.png" /></figure><p>Although you have attached your IGW to your VPC, you still need a route table. The route table determines how and where traffic is directed in your VPC. In your VPC dashboard, you can create a route table with the IGW as the target. Next, you can edit the route table associated with your VPC to allows traffic to your IGW.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pewjsKdKly4Rgg6xJYs_PA.png" /></figure><h4>Step 5: Create an Application Load Balancer</h4><p>Prior to creating an Application Load Balancer, we must create a target group. On the EC2 dashboard, select “create target group.” Under the basic configuration you can choose “instances” as the target type. Give your target group a name &amp; ensure to select the “HTTP” protocol along with your VPC. The next step will be to register your target group to ensure that your load balancer routes traffic to the group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kkcHsFZB5Bw2DH0t31SPWQ.png" /></figure><p>Next, you can select “Associate with new load balancer” under the Acitons drop down. You can specify which type of load balancer you want to configure (we will choose the Application Load Balancer). Give your prospective load balancer a name and leave the default settings of an internet facing scheme and a IPv4 address type.</p><p>Next you will select your vpc and the subnets associated with it. Make sure each subnet selected is in a different availability zone. For security groups, choose the security group you have been using in the previous steps.</p><p>For listeners and routing section, you can enable HTTP routing from port 80 which forwards traffic to your target group</p><p>Once you have finished altering your settings, select “Create load balancer”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ZkeoRGBGSBFFA_RFNnSAQ.png" /></figure><p>Back in your your target group, you can check if your instances are healthy, which means your instances are registered with the application load balancer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BmSScIgOLqhLFyIOpsVGOQ.png" /></figure><h4>Step 6: Create Web Server Security Group</h4><p>Remember that the business case requires our security group to allow inbound traffic from HTTP from your Application Load Balancer. End users will only be able to access your website through the ALB.</p><p>Navigate to the EC2 dashboard and click the “Create security group” button. Select the VPC that you created, and add an Inbound rule. Choose “HTTP” form the Type drop down list. In the Source field, select “Custom” and then enter the security group ID of your ALB. This ensures that only traffic originating from the ALB is allowed. Once finished, select “Create security group” to complete the task.</p><p>Once the security group has been created, you can associate it with your instances to allow inbound traffic from the ALB on port 80, while denying other types of traffic by default.</p><p>Ensure that any other security group associated with your instances have disabled inbound HTTP traffic. As seen below, you can no longer access the web page with just the public IP link.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D_yTo-hGscmOf-82pY9IVw.png" /></figure><h4>Step 7: Create a Load Balancer Security Group</h4><p>Since we can not access the web page with the public IP address, we can create a load balancer security group that allows inbound traffic from HTTP from 0.0.0.0/0 (anywhere).</p><p>On the EC2 dashboard, click “Create Security Group” and provide a name for your security group. In the inbound rules section, add a rule. Select “HTTP” from the Type dropdown menu and enter 0.0.0.0/0 in the source field to allow traffic from any source ip address. Leave the Port Range as 80 to allow HTTP traffic as well. Once finished, hit the “create” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ps1P5UFHWf1HbaB9zhbEPw.png" /></figure><p>Next you will attach your security group to your load balancer.</p><p>You can accomplish this by navigating to your EC2 dashboard and selecting load balancers. Click “Edit” under the Security Groups section to add your security group from the drop down list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R_e5uBAoyZTFzKTYmaU6-g.png" /></figure><p>To test if your load balancer grants access to your web page, copy and paste the DNS url of your load balancer into a web browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2O4tzw-j1wjLxztS838uWw.png" /></figure><p>Congratulations! You have now verified that you can access your web page with the DNS url of the ALB.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95b7aa45c6a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>