<?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 Candace Hollinger on Medium]]></title>
        <description><![CDATA[Stories by Candace Hollinger on Medium]]></description>
        <link>https://medium.com/@csholl85?source=rss-14b5f99f464a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*LBDY0FynLBw0CDzE5hFBoA.jpeg</url>
            <title>Stories by Candace Hollinger on Medium</title>
            <link>https://medium.com/@csholl85?source=rss-14b5f99f464a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 07:27:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@csholl85/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[Virtual Desktop Infrastructure (VDI) Implementation and Management]]></title>
            <link>https://medium.com/@csholl85/virtual-desktop-infrastructure-vdi-implementation-and-management-4c0197aff6b6?source=rss-14b5f99f464a------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c0197aff6b6</guid>
            <dc:creator><![CDATA[Candace Hollinger]]></dc:creator>
            <pubDate>Thu, 18 May 2023 14:54:18 GMT</pubDate>
            <atom:updated>2023-05-18T14:54:18.003Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wFFVUXfYsMVo2Qf-.png" /></figure><p><strong>Project Overview:</strong><br>Hey there! So, I successfully implemented something called a Virtual Desktop Infrastructure (VDI) solution. Basically, it’s a system that helps manage desktops in a centralized way. This made things better for everyone because it improved how productive people were, made our systems more secure, and made sure we used our resources wisely.</p><p>My job was to help take charge of the whole project, from the beginning to the end. I used a technology called Citrix Virtual Apps and Desktops to create the VDI solution. I worked closely with the people who needed this system to understand what they wanted and turn it into a plan for the VDI setup. I also looked at the systems we already had and figured out how to make them even better. Working with the development team, we decided on the most important features that would meet the needs of the business and users.</p><p>To make everything work together smoothly, I collaborated with system administrators, network engineers, and security teams. We made sure the VDI system was secure by using things like multi-factor authentication, data encryption, and access controls. I made sure everyone could switch over to the new system without any problems by providing training and support during the migration.</p><p>Monitoring and optimizing the VDI system were also part of my job. I used special tools to keep an eye on how well it was performing and made improvements to make it work even better. I even tested out new ideas from different companies to see if they could make the VDI system even more awesome.</p><p>I always focused on making sure people had a great experience using the VDI system. I asked them for feedback through surveys and used their suggestions to make it even better. And guess what? It worked! The VDI system we implemented was super scalable, which means it could handle more and more virtual desktops and applications as needed. We made sure it didn’t crash by using load balancing and failover mechanisms. By putting extra security measures in place like access controls and encryption, we made sure everything was safe and followed the rules.</p><p>People loved using the VDI system because it gave them a consistent and reliable experience no matter what device they used or where they were. Everyone was happy with the improvements we made, like how applications were managed and how people could collaborate better.</p><p>All in all, my involvement in this project showed that I’m really good at designing and implementing systems like VDI. It made our organization more efficient, productive, and everyone was really happy with the results.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c0197aff6b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a Lambda function for SQS]]></title>
            <link>https://medium.com/@csholl85/creating-a-lambda-function-for-sqs-d1cf8dc348b?source=rss-14b5f99f464a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1cf8dc348b</guid>
            <dc:creator><![CDATA[Candace Hollinger]]></dc:creator>
            <pubDate>Sat, 11 Mar 2023 02:10:24 GMT</pubDate>
            <atom:updated>2023-03-11T02:10:24.052Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/601/0*UzrYxNcv7PyWYp7B.png" /></figure><p>Good evening, on today’s project we’ll be modifying the Lambda function to send a message to the SQS queue with Python and testing the trigger to verify that the message was sent.</p><p>Let’s create an SQS Queue with Python. I’ll be working in Cloud9.</p><p>Let’s go on and run the pip install boto3<strong> </strong>command<strong> </strong>to install the Boto3 package.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*8KuY9UwUmHrKydwcgsDlJw.png" /></figure><p>Create a Python file and save ([name].py).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*I5V4d5N8QH_tV80wboCY8g.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*3Dv9RVAgf0tgrMcvirBw2g.png" /></figure><p>Create an IAM role to grant the user SQS read and write access as well as API permissions to trigger the Lambda function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/210/1*XbU_rHO6FHjtFO9N3SiZ_Q.png" /></figure><p>Create role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*Ju3XN0tM20KaqqE6VeXzNg.png" /></figure><p>Select the options below and click Next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*h20gGbAiOGvH-tKsVxNvHw.png" /></figure><p>Type in ‘AmazonSQSFullAccess’ and select and click Next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rTKxNIqrswyJFVmpx-DqzA.png" /></figure><p>Choose a Role name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*aj55yfmWZmxFA3jsKgfcWQ.png" /></figure><p>Create role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*OVJJwYsTCUthaNj6HS6MiQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/252/1*0x6yilw9VTxkWXUMNPb2Wg.png" /></figure><p>Now create a Simple StandardQueue Service, which enables you to buffer and then process messages.</p><p>#Import<br>import boto3</p><p>#Service resource<br>sqs = boto3.resource(‘sqs’)</p><p>#Creating Que<br>queue = sqs.create_queue(QueueName=’PythonLambda_boto3_queue’)</p><p>#Access<br>print(queue.url)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/1*l4SfJyQ2gRPp4m-LCnHs1A.png" /></figure><p>Now SAVE &amp; RUN. You should see this….</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*QdD2KI8n0-GjV7sxCJ_9Bw.png" /></figure><p>Now to confirm go to the Simple Que Service tool in your AWS Console.</p><p>Check it Out!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*0bQDQ2TWX4TgUeP2rsEt0g.png" /></figure><p>Create a Lambda function. Toggle back over to the search bar and type in Lambda. Create a function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*zDAXAe8ZpIyiQ2ps6qm6Fg.png" /></figure><p>Select Author from scratch and name your function. Select options in pic below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*fsPQy3yqwrQdtOVUWC-SlA.png" /></figure><p>Under permissions, select ‘Use an existing role’ and choose the one we created earlier. Create function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gXE8FTCyGAtEm4GjQtgeXQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*A8VWi39bg8cu8RTIuqujpA.png" /></figure><p>Now modify the Lambda so that it can send a message to the SQS queue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*vfPfq3_8079MFA15b-UivQ.png" /></figure><p>Go to the Test tab and hit test to see if it succeeded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iIpCFUBAkGbtrtg-e0W61w.png" /></figure><p>Details</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*BBvTZ5DvKXwVte6DUrWu2w.png" /></figure><p>Now let’s create an API gateway HTTP API.</p><p>In this step, we’ll configure the Lambda function to be invoked by Amazon API Gateway.</p><p>Where your Lambda function is, click Add trigger.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*4G9eunmkCUyyYfgyKwIvZg.png" /></figure><p>In the drop-down menu, select API Gateway for the source&gt;Create a new API&gt;HTTP API&gt;Open. Now click Add.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*-TTsp92ZFKiXjW4ZWbpiiQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*BoEEPjhxr6lUhiolVEoWNQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*xSIVX_EPsvgpmbm9xweMGg.png" /></figure><p>Now to test it to see if the message was sent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*f9bZHflY39RWXPy4xP3k7Q.png" /></figure><p>Under receive messages, I did a test message and it went through!!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5DilnwJlR9FyuE9EaUmIQg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*FydSwdb6xkp3GSBXreRFoA.png" /></figure><p>That’s all folks!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1cf8dc348b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Testing Apache Web Server on Ubuntu 18.04]]></title>
            <link>https://medium.com/@csholl85/testing-apache-web-server-on-ubuntu-18-04-db724ec94ac2?source=rss-14b5f99f464a------2</link>
            <guid isPermaLink="false">https://medium.com/p/db724ec94ac2</guid>
            <dc:creator><![CDATA[Candace Hollinger]]></dc:creator>
            <pubDate>Fri, 10 Mar 2023 22:57:47 GMT</pubDate>
            <atom:updated>2023-03-10T22:57:47.268Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/883/0*H_JqtVHmrUl810ju.jpg" /></figure><p>This is a project that piggybacks from one of the first projects I’ve done. Instead of testing the Nginx web server, I’ll be testing the Apache web server using Cloud9.</p><p>First, I’ll make sure the packages are updated by using the sudo apt update command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*McZahGEVxRptMkqBSS5cQw.png" /></figure><p>Now install the Apache HTTP Web Server using the sudo apt install apache2 command, which everything checks out on my end.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/339/1*iXysMv3mP7tbvnS73b0TUA.png" /></figure><p>Here’s a view of the list of profiles that are available for Apache. Use the sudo ufw app list command. Then we’ll enable access to Apache.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/232/1*ckairI6djwzJXs2xWBuz5A.png" /></figure><p>Now to update the rules by running the sudo ufw allow ‘Apache’<strong> </strong>command to allow traffic to that port.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/267/1*EUHT21ZbQ-4J--9O5LxUlw.png" /></figure><p>Next, activate ufw by running the sudo ufw enable command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/268/1*jM3VCtxnwBzYuapEYoXoVA.png" /></figure><p>Confirm the change.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/1*GuKZgec9qdBqlySfUrXI1Q.png" /></figure><p>Now let’s run the sudo systemctl status apache2 command to make sure the Apache service is running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bdrpN63S5XT-wSuoEC6Xiw.png" /></figure><p>Perfect!!</p><p>Let’s Test the Apache Web Server using the public IP address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*TsYU8NHHlXxMSxxvk7EjGA.png" /></figure><p>That’s all folks!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db724ec94ac2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a Custom Terraform EC2 Module]]></title>
            <link>https://medium.com/@csholl85/creating-a-custom-terraform-ec2-module-ae75ac1dfd78?source=rss-14b5f99f464a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae75ac1dfd78</guid>
            <dc:creator><![CDATA[Candace Hollinger]]></dc:creator>
            <pubDate>Fri, 10 Mar 2023 20:07:52 GMT</pubDate>
            <atom:updated>2023-03-10T20:07:52.601Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rQRzB6k4Ob-KCLAt.png" /></figure><p>So what is a Terraform module? A Terraform module is <strong>a set of Terraform configuration files in a single directory</strong>. Even a simple configuration consisting of a single directory with one or more .tf files is a module. When you run Terraform commands directly from a directory, it is considered the root module. They’re a great way to make infrastructure reusable, avoid human error, and save time which in turn saves money. We will use our resources to create an EC2 instance, and then transform it into a custom Terraform module.</p><p>Here’s what we need to do….</p><p><strong>NOTE: Use the Terraform documentation to build out your code. You should not be copying and paste a past or current guest’s code.</strong></p><p>Your team needs you to create a custom module for the EC2 instance with an Amazon Linux 2 AMI ID</p><p>☁️Fork and clone this repo locally with the <a href="http://ec2.tf/">ec2.tf</a> template as a starting point to create the EC2: <a href="https://github.com/LevelUpInTech/terraformec2.git">https://github.com/LevelUpInTech/terraformec2.git</a></p><p>☁️Create a custom module for ec2 out of the resource block that you can use as repeatable infrastructure. DO NOT USE THE TERRAFORM REGISTRY. YOU SHOULD BE CREATING YOUR OWN MODULES.</p><p>☁️Be sure to create a variable.tf file for your ec2 module.</p><p>☁️Push the newly created module and the ec2.tf file to your repo!</p><p>☁️ Let&#39;s<strong> Fork and clone the repo.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TjUzBHAoR2RQv4BXVn1-Wg.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*uRjFlzWFzPEetOzuCe-_1Q.png" /></figure><p>Now I’ll create a new directory. And cd into the newly created directory making these files:</p><p><strong>Step 2: $cd into your new directory and create the following files using the </strong><strong>touch command:</strong></p><p>☁️main.tf</p><p>☁️variables.tf</p><p>☁️providers.tf</p><p>We’ll start with Parent providers.tf and insert this script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/287/1*tUm70N4L6dSz28B1E4IHjQ.png" /></figure><p>Parent main file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/1*qhqa9ZSM4cwM3gHaGhTpeQ.png" /></figure><p>Now insert the script into Child main.tf.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*wyIH_nVHQite1pEqYiiI8Q.png" /></figure><p>Parent variable script below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*yJh7D_O-Tyxb2anxHwEoFQ.png" /></figure><p>Child variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/1*LUY27uzjzJPBHiW39boP2g.png" /></figure><p>Now with the variables.tf file grab your ami from your instance and paste it in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/513/1*Lhb1dOvaE19qEh-zGbfveQ.png" /></figure><p>And the outputs.tf file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*pKQXEOl6LYnDCUYPAeq5iA.png" /></figure><p>Now run terraform init in the CLI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*quLWsyySbwnGQcJL2_hBMg.png" /></figure><p>Now terraform validate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/339/1*nW6l8oqpKDS0LSrBzK3mug.png" /></figure><p>To review, type terraform plan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*H7rnRwzzvXkNSVrBmukQJg.png" /></figure><p>And there you have it!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae75ac1dfd78" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using AWS EKS tool to deploy by utilizing Kubernetes to run an Nginx image]]></title>
            <link>https://medium.com/@csholl85/using-aws-eks-tool-to-deploy-by-utilizing-kubernetes-to-run-an-nginx-image-281449b25ac3?source=rss-14b5f99f464a------2</link>
            <guid isPermaLink="false">https://medium.com/p/281449b25ac3</guid>
            <dc:creator><![CDATA[Candace Hollinger]]></dc:creator>
            <pubDate>Thu, 09 Mar 2023 19:49:54 GMT</pubDate>
            <atom:updated>2023-03-09T19:49:54.138Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/938/0*y3h9chbWfJVryqwA.png" /></figure><p>Say that title five times ……</p><p>Well, we’re here again with yet another Kubernetes project. This project is based on taking requirements used in my week 17 project. This consisted of Using the command line, creating a deployment that runs the Nginx image, displaying the details of this deployment, and checking the event logs from the deployment followed by deleting the deployment. Now I’ll be using the EKS tool in my Amazon console. Which is a managed service and certified Kubernetes conformant that’s used to run Kubernetes on AWS and on-premises.</p><p>With this project, I’ll be doing the same steps I listed above but I’ll be using the EKS tool in my Amazon console, so no CLI will be used for this. The steps are as followed…</p><p>☁️Create a deployment that runs the Nginx image.<br>☁️Display the details of this deployment<br>☁️Check the event logs from the deployment<br>☁️Delete the deployment</p><p>Let’s get DANGEROUS!! (In a good way of course)</p><p>So first things first we’ll have to start by creating an EC2 Instance.</p><p>Here, I opened up my AWS console and selected the EC2 tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*WGVJBT0bQG66TT9eFxqfMw.png" /></figure><p>*Please note, once the project is over, DELETE this instance or you will be charged. We just need it for a few for this project demo.</p><p>Click <strong>Launch instance.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*L2PXQ9zPyxwwojZ4GNrPcw.png" /></figure><p>Create a name for the instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*nFGZviWmQuPbSvj4sZznjg.png" /></figure><p>Select <strong>Amazon Linux</strong> and the <strong><em>free tier</em> Amazon LINUX 2 AMI</strong>. Architecture should be <strong>64-bit.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*akuGprsvI8obLwQGpNfJ5Q.png" /></figure><p>The instance type will be<strong> t2.micro</strong> <strong><em>Free tier.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*P1sn2IkUkTcPyYZUDCMwvw.png" /></figure><p>Create a key pair for security.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*wBS9PFmHI5fBKgd4TLVXJw.gif" /></figure><p>Name your key pair and select these options, then hit <strong>Create key pair</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*jopCUQxpA1X6vhm74VkMkQ.png" /></figure><p>Your key pair will download to your laptop or PC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/1*_WLi0aIN8iuTHKlcbpMzGg.png" /></figure><p>Under <strong>Network Settings</strong>, select <strong>Create security group</strong>. Check the box that says ✅<strong>Allow SSH traffic from</strong> {<strong><em>Anywhere</em></strong> should be selected in the box} and ✅<strong>Allow HTTP traffic from the internet</strong> should also be checked off.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*1UBQYTcX3m_2Lsitu7CY9Q.png" /></figure><p>Now let’s<strong> Launch instance</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*vKFKOgsJcKpFneSQsmJkAw.png" /></figure><p>Success!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pNowJv07ZfXiP2pyBW3uKw.png" /></figure><p>Now let’s Connect to the instance. (This option is under the successful instance that was made.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*QPkVfkBI4igw-V4Gxs3Btw.png" /></figure><p>Another page will come up. Remember when I said we’d work in the AWS Console instead of the CLI?? Click on <strong>Connect</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*agoHZArEbPB6fEPM4cN_wQ.gif" /></figure><p>Now another tab pops up which should look like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*bIy5vHgVNIXO9FIcIBSoHg.png" /></figure><p>This is where we’ll be working from.</p><p>Now let’s update the AWS CLI. <a href="https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html">https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html</a> This document has the command you will use for this step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*aDIYNdDAhx753iatelIZbw.png" /></figure><p>Copy the command and run it on the AWS CLI.</p><p>☁️curl “<a href="https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip">https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip</a>&quot; -o “awscliv2.zip”<br>☁️unzip awscliv2.zip<br>☁️sudo ./aws/install</p><p>It’ll take a few moments. So be patient and watch as it updates.</p><p>Once completed. it’ll look something like this…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*JDHK4PxUxbD-WNKcOxdcng.png" /></figure><p>Confirm the installation with the following command <strong>aws --version</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*NRtqEF8v5T7eFN4Ic_-mcg.png" /></figure><p>Now install eksctl. But before we do that we need to give permission of course.</p><p>So in the previous window on the AWS console, select the IAM tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*mv_Rv1W7dL4LiURnpOWMDQ.png" /></figure><p>Under <strong>Access management</strong>, click on <strong>Users</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/176/1*ALrwmKBrcXBTFnOvQK5NdQ.png" /></figure><p>Click <strong>Add users</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*_5RWxD-8FW5yFI_XXKjsmw.png" /></figure><p>Create a user name, and click next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*tGd77I3wBYHgEEtBUjIlsA.png" /></figure><p>Under Permissions options, select Attach policies directly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*GAWH-ASZoghg2dU5jSYjfw.png" /></figure><p>Check off <strong>AdministratorAccess</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*nHsc9c4QosVt8NXJIIv2gA.png" /></figure><p>Click <strong>Next</strong>, then <strong>Create user</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*L-8p5dQctItIbT9AcZbaVA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*F-ZJ-bPPqWXO7Mv8Z1017A.png" /></figure><p>You should see the user you’ve created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*nXNMFh7k-sVsBwG9AAjH0Q.gif" /></figure><p>Click on user. Select <strong>Security credentials</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*gwUXpHQlfGsVzeXkGNI70w.png" /></figure><p>Scroll down to <strong>Access keys</strong> and click <strong>Create access key</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*M6UiMX9gnfAPuEL-IJB3YQ.png" /></figure><p>When the page comes up select the first option which is <strong>Command Line Interface (CLI).</strong></p><p>Scroll down and select the box to conform and click next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*KW-_IUzRpO56LlpJAetHLw.png" /></figure><p>Click Create access key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/393/1*egSQnTW_a4PlKkkHkzrTfQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*nUR-g3MmrA9HHs1yk54n-w.png" /></figure><p>Open your notepad app and copy and paste your access key and secret access key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*-vXnvOmtlAJdvfk53qAsMQ.png" /></figure><p>Alright now go back to the page where we have an EC2 up with the AWS CLI. Type the aws configure command<strong>. </strong>Enter the information it’s asking of you. Remember this info is what we copied and pasted on the notepad.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*SbMmudZuiPN_mnq-yIXHow.png" /></figure><p>Paste your Access Key &amp; Secret Access Key. For region type us-east-1. And for the Default output format put json.</p><p>To get details used to authenticate the request, type in the aws sts get-caller-identity command which is in this article <a href="https://docs.aws.amazon.com/cli/latest/reference/sts/get-caller-identity.html">https://docs.aws.amazon.com/cli/latest/reference/sts/get-caller-identity.html</a></p><p>This will be the output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*wg0-2CaKy4cWApoAFwy18g.png" /></figure><p>Now to install eksctl.</p><p>Determine whether you already have eksctl installed on your device by running this command eksctl version.</p><p>As you can see, it’s not installed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/1*HlFTQ82wkEYPUh8lpZlR6g.png" /></figure><p>Download and extract the latest release of eksctl with the following command in this article <a href="https://docs.aws.amazon.com/eks/latest/userguide/eksctl.html">https://docs.aws.amazon.com/eks/latest/userguide/eksctl.html</a></p><p>☁️curl — silent — location “<a href="https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname">https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname</a> -s)_amd64.tar.gz” | tar xz -C /tmp</p><p>Move the extracted binary to /usr/local/bin.</p><p>☁️sudo mv /tmp/eksctl /usr/local/bin</p><p>Now test that your installation was successful with the following command.</p><p>☁️eksctl version</p><p>We’re all set!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*8yeglANyj1xk8AquLlJt_w.png" /></figure><p>Now to create the cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z9h2hSQdBn_qiYzBUUV3oQ.png" /></figure><p>☁️eksctl create cluster — name my-eks19 — region us-east-1 — nodegroup-name mywk19 — node-type t3.medium — nodes 3 — nodes-min 1 –-nodes-max 4</p><p>In the CloudFormation tool, you’ll see the stack we’ve created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*JvVJH8zBe4XKcWrF1N9yIA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c6ZVGT2e-tzQz52KVgoiiw.png" /></figure><p>It’s going to take some time until it’s complete. So use this time to take a coffee or restroom break. I decided to stretch.</p><p>Annnnd we’re green!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I4vslOWeU-Mn1YHUSXlVKA.png" /></figure><p>On to the EKS tool. You’ll see the cluster is active.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*ijXzECI1CiWcbaGbYulpkQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fnd4GcbQ6MWU6Fampytisw.png" /></figure><p><strong>Run </strong><strong>eksctl get cluster command to see if it was created.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*PZIivmgZNkCCSzqjsQ1egA.png" /></figure><p>Next run aws eks update-kubeconfig — name my-eks19 — region us-east-1 to create the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*iKp2gY6YegJIiI5JXWjPPg.png" /></figure><p>Now to install or update kubectl</p><p>Run <strong>kubectl version — short — client. </strong>It’s not downloaded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*-vnZ7zaQaABIlGrN1I_UhA.png" /></figure><p>Installation is on this article <a href="https://docs.aws.amazon.com/eks/latest/userguide/install-kubectl.html">https://docs.aws.amazon.com/eks/latest/userguide/install-kubectl.html</a></p><p>☁️curl -O <a href="https://s3.us-west-2.amazonaws.com/amazon-eks/1.24.9/2023-01-11/bin/linux/amd64/kubectl">https://s3.us-west-2.amazonaws.com/amazon-eks/1.24.9/2023-01-11/bin/linux/amd64/kubectl</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XwE2Mx8wgS2gIIAWw2vj1Q.png" /></figure><p>Verify the downloaded binary with the SHA-256 sum for your binary</p><p>☁️curl -O <a href="https://s3.us-west-2.amazonaws.com/amazon-eks/1.24.9/2023-01-11/bin/linux/amd64/kubectl.sha256">https://s3.us-west-2.amazonaws.com/amazon-eks/1.24.9/2023-01-11/bin/linux/amd64/kubectl.sha256</a></p><p>Check the SHA-256 sum for your downloaded binary and apply to execute permissions to the binary.</p><p>openssl sha1 -sha256 kubectl</p><p>chmod +x ./kubectl</p><p>Next run mkdir -p $HOME/bin &amp;&amp; cp ./kubectl $HOME/bin/kubectl &amp;&amp; export PATH=$PATH:$HOME/bin</p><p>echo ‘export PATH=$PATH:$HOME/bin’ &gt;&gt; ~/.bashrc</p><p>Now verify the version kubectl version — short — client</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PNNFrNAc-09lzIQOckDmiw.png" /></figure><p>Run <strong>kubectl get svc to test the configuration.</strong></p><p>Now to deploy</p><p><strong>kubectl create deploy week19nginx-deployment — image=nginx — replicas=3</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=281449b25ac3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My CI/CD Project]]></title>
            <link>https://medium.com/@csholl85/my-ci-cd-project-b4c3197a72cb?source=rss-14b5f99f464a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4c3197a72cb</guid>
            <dc:creator><![CDATA[Candace Hollinger]]></dc:creator>
            <pubDate>Thu, 09 Mar 2023 19:45:04 GMT</pubDate>
            <atom:updated>2023-03-09T19:45:04.607Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*k_EXl4UEQEUTT24_.png" /></figure><p>Good Evening, this will be a bonus project to add to my portfolio. Below are the details for this project.</p><p>“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 GitHub repo to verify the pipeline is working.”</p><p>Question of the Day??</p><p>“What’s a CI/CD pipeline?”</p><p>A pipeline is a process that drives software development through a path of building, testing, and deploying code, also known as CI/CD. By automating the process, the objective is to minimize human error and maintain a consistent process for how software is released. Tools that are included in the pipeline could include compiling code, unit tests, code analysis, security, and binaries creation. CI/CD is the backbone of a DevOps methodology, bringing developers and IT operations teams together to deploy software.</p><p>Here are the steps for this project:</p><p>☁️Create an S3 Bucket</p><p>☁️Enable website hosting</p><p>☁️Create CI/CD Pipeline with CodePipeline</p><p>☁️And Verify</p><p>☁️<strong>Open up your AWS Console and create an S3 Bucket</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*aU8YgOHC42wTN-9sB1B5gg.png" /></figure><p>Name it and choose an AWS Region.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/1*rDbxS7fVSIe_MgPSLFrkWw.png" /></figure><p>Under Block Public Access for this bucket, “Block all public access” should be unchecked. Everything else should be left alone. Now hit Create Bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*P7KgJGaLAD-jln7cJ6vWFQ.png" /></figure><p>The Bucket has successfully been created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dcfz_k5e0gjwYHngIWYqJA.png" /></figure><p>Click on the bucket you’ve created and go to the properties tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*eAaEqLBa08TGphr_PwQirg.gif" /></figure><p>☁️<strong>Enable Static website hosting</strong></p><p>At the very bottom, you’ll see Static website hosting. Click on edit and select Enable, type in a text for index and error, and save changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*ZJ-MtBhrLNtWsuwg2mW5eg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*etYRvTzP8iSpDdG955O-gQ.png" /></figure><p>Now to create a policy in order to grant access to the public. Go back to the S3 Bucket you’ve created and click on the Permissions tab.</p><p>Under Bucket Policy, click edit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*9zQhIATsoj6bLNg5CHDF-A.png" /></figure><p>Now click on Policy generator. Another window should open.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*rRIFG8ChZjlq8kja77VvtA.png" /></figure><p>Under <strong>Step 1: Select Policy Type</strong>,<strong> </strong>select S3 Bucket Policy.</p><p>Under <strong>Step 2: Add Statement(s) </strong>input what you see below. For your ARN, just copy and paste in the Bucket ARN under Bucket Policy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*DBymf9xJee4GNjof3pQ05Q.png" /></figure><p>Once done, click Add Statement and then click Generate Policy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E5tGOIKfHOi45TS6Yx__1w.png" /></figure><p>A JSON code will pop up.</p><p>Head back over to the permissions tab and paste the JSON code in the policy box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*XMZa6Q8AB5bTjT85d4-cTg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*trcH6E2veTgDNNKy5BSLww.png" /></figure><p>☁️<strong>Create CI/CD Pipeline with CodePipeline</strong></p><p>Now go back to the AWS Console and go to your CodePipeline tool and Create pipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*5nRKsEMTm5N6R-pSDUxjEw.png" /></figure><p>Name your pipeline and click Next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*cqICJpPKDryJT66y44mq4g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*TYnigl11bfyoGi7WsoLNDQ.png" /></figure><p>Select Github(Version 2), {<em>Version 1 is not recommended}</em> to connect to your GitHub. Once you’ve created a Connection name, Click Connect to Github.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*gDxdgKsV8BOPifecBp6wMw.png" /></figure><p>Click Authorize AWS Connector for GitHub.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*QeCdprSF7f3GfKCfdDiCCg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*LjXoSPuPSRCOMDe_4UnBMw.png" /></figure><p>Connect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*Av_FOlTwYqFbd5u0zjnFcA.png" /></figure><p>It’s now ready to connect. Select Repo, Branch name should be main. Then hit Next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*grME7zJpJQzNKT8SuBVUWQ.png" /></figure><p>Skip on over to Deploy Provider. Select Amazon S3 in the drop-down menu. Select your bucket and check off Extract file before deploy. Hit Next. Create Pipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*GqvUnSvuMrbi6o2A7rGr0w.png" /></figure><p>SUCCESS!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R-jR0c0LUQPeXYiVot0yxg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*x19DgP1PPEEpUGGfH3AB8g.png" /></figure><p>☁️Verify Website.</p><p>Go back to your AWS Console and go to your S3 Bucket and select the Properties tab, there should be a bucket website endpoint URL to copy and paste. And there you have it folks. I hope you enjoyed this mini-project. Take good care!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4c3197a72cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a 3-Tier Architecture in AWS]]></title>
            <link>https://medium.com/@csholl85/building-a-3-tier-architecture-in-aws-59c5f5a0f3d9?source=rss-14b5f99f464a------2</link>
            <guid isPermaLink="false">https://medium.com/p/59c5f5a0f3d9</guid>
            <dc:creator><![CDATA[Candace Hollinger]]></dc:creator>
            <pubDate>Thu, 09 Mar 2023 19:43:10 GMT</pubDate>
            <atom:updated>2023-03-09T19:43:10.626Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/597/0*97ILkUbL-gAhppzJ.png" /></figure><p>Hey, Hey, Hey!</p><p>That’s a Hey for each tier. Yes, I’m corny. This is DevOps you need a sense of humor to get through the day.</p><p>So this project, we’re doing a 3-tier Architecture in AWS. A 3-tier application architecture is a modular client-server architecture that consists of a presentation tier, an application tier, and a data tier. The data tier stores information, the application tier handles logic and the presentation tier is a graphical user interface (GUI) that communicates with the other two tiers. The three tiers are logical, not physical, and may or may not run on the same physical server.</p><p><strong>Web tier</strong>: This tier, which is built with HTML5, cascading style sheets (CSS), and JavaScript, is deployed to a computing device through a web browser or a web-based application. The presentation tier communicates with the other tiers through application program interface (API) calls.</p><p><strong>Application tier</strong>: The application tier, which may also be referred to as the logic tier, is written in a programming language such as Java and contains the business logic that supports the application’s core functions. The underlying application tier can either be hosted on distributed servers in the cloud or on a dedicated in-house server, depending on how much processing power the application requires.</p><p><strong>Data tier</strong>: The data tier consists of a database and a program for managing read and write access to a database. This tier may also be referred to as the storage tier and can be hosted on-premises or in the cloud. Popular database systems for managing read/write access include MySQL, PostgreSQL, Microsoft SQL Server, and MongoDB.</p><p>Enough of the techy talk, let’s begin!</p><p><strong>Scenario:</strong><br>You have been asked to design and create a highly available 3 Tier architecture for your company’s new web application.</p><p><strong><em>Let’s execute!!</em></strong></p><p>Let’s open the AWS console. Once there open the VPC tool. Let’s create a VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*ELOTrk2u1vDMVevD-eoqDQ.png" /></figure><p>Once there, select VPC and more. A wider view of the page will come up with more options. Below will be a list of the settings you should select.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*sEK7p_j8paZEm7CCbquERA.png" /></figure><p>☁️Name your VPC</p><p>☁️IPv4 CIDR block: 10.0.0.0/16</p><p>☁️No IPv6 CIDR block</p><p>☁️Tenancy: Default</p><p>☁️Number of Availability Zones (AZs): 2</p><p>☁️Number of public subnets: 2</p><p>☁️Number of private subnets: 0</p><p>☁️NAT gateways ($): None</p><p>☁️VPC endpoints: None</p><p>☁️DNS options: Enable both hostnames &amp; resolution</p><p>The visual will look something like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bElvd6uKNZVHUjh3btGRfw.png" /></figure><p>Now click Create VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/219/1*gKMACFMkczki6achrN1zEw.png" /></figure><p>Here are the details of what was created from the workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*SNCQd6SLJB4cha82c7BU1g.png" /></figure><p>We should have 2 public subnets and 2private subnets.</p><p>Let’s take a look at the VPC we just created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cR12obfb1Bc7Siy1q9L32A.png" /></figure><p>Create an EC2 launch template.</p><p>In the AWS Console, go to the <strong>EC2</strong> tool. Under Instance, select <strong>Launch Template</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/173/1*CL_SsoMZ2wfYxet9MbvE5g.png" /></figure><p>Create Launch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zVi_EI8-DmhfJmiHYkcDug.png" /></figure><p>Name the template and type a description for it. Check the box where it says Auto Scaling Guidance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*upV-63eirYHtv8E68mYlNw.png" /></figure><p>Choose Amazon Linux for the AMI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*3sQRC7y-QR4S-zFAegd-eg.png" /></figure><p>Instance type should be t2.micro.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*X58ug0JfdTHtBdVyzfdBdg.png" /></figure><p>Create new key pair for added security.Once it’s created, you’ll get a download file of the key pair.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*4jxZISQFJKrEg8Svnv-C9Q.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*xTMcNDVEMnxbvU1ERTFGeQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/221/1*zDf6sucJ1spSobl1fYvACw.png" /></figure><p>Under Network Settings, select <strong>Create security group, </strong>name your<strong> Security group, </strong>and type in a<strong> Description. Now </strong>select the VPC you’ve created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*hXwONm417C_qmaBu_Fwp2w.png" /></figure><p>Under Inbound security groups rules, make these selections…</p><p><strong>Security group rule 1 &amp; 2</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*Dx0tPaugPnkxHl7_S2iajg.png" /></figure><p>In the User Data section under Advanced details, we will input a Bootstrap Script:</p><p>#!/bin/bash</p><p>yum update -y</p><p>yum install -y httpd</p><p>systemctl start httpd</p><p>systemctl enable httpd</p><p>echo “&lt;html&gt;&lt;body&gt;&lt;h1&gt;Building a 3-Tier Architecture for you to see!&lt;/h1&gt;&lt;/body&gt;&lt;/html&gt;” &gt; /var/www/html/index.html</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*dEF_-eb8kHOAURVvQ7T3OQ.png" /></figure><p>Now Create launch Template.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*mBkgIMq0uLs0TKtFzEXtwQ.png" /></figure><p>Success!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*Vs-oAULC4yqS919x91ngUA.png" /></figure><p>Now let&#39;s create an Auto Scaling Group. Go to the EC2 tool and select Auto Scaling Group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*XrWee8FDOMvcAAt4K2GyXg.gif" /></figure><p>Name your group and choose the launch template that was created earlier, it should be in the dropdown menu. Click Next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*hTG2qROTBtLR3RjHrF0N-w.png" /></figure><p>Select your VPC and zones under Network. Then skip all the way until you see the review page. Click <strong>Create Auto Scaling Group</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*GjhgtQXBa5CljqbFbEKNWA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*Do_46OV2R3UpAFwnO2vbNQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gVXk1J2emb6GFbiZX1Bn_w.png" /></figure><p>Now to Create Load Balancer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LBvzahS636a1sWsDq7f7aA.png" /></figure><p>Click on <strong>Create</strong> under Application Load Balancer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*dzLtel9wRtGmg3Hr8MkvnQ.png" /></figure><p>Under Baic configuration, name your Load balancer and select the options you see below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*K5B_reKfkJqs-Ax9W1FqIQ.png" /></figure><p>Under Network mapping, choose your VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*WeuX0VtVTxANU6MABMdDqg.png" /></figure><p>Select the subnets attached.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*nESHpT13kmtjxEWNvL73lQ.png" /></figure><p>Select your security group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*7eQu68Ny_Tl6rTqBmBdeVQ.png" /></figure><p>Next, create a target group.</p><p>For the target type, select<strong> Instances</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*w9pBDtJ-mhwQdnxFkDn8Ag.png" /></figure><p>Name the target group and choose our VPC. Click Next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*OMu4N5maW1tBsVe73-PDXg.png" /></figure><p>Select the available instance. Create target group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8f2Z9NgLZEA-auuG5rLMpg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1PCCt0uazeP8KIwv7LZeaA.png" /></figure><p>Under listeners and routing, select HTTP for the protocol and 80 for the port. Choose the target group you created under Default action. Create load balancer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*STsdgtQkBW_Qss6YAB9xLg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DMN2gY9NhKbwpJAkdIKx6Q.png" /></figure><p>Now let’s go to the VPC tool to Enable auto-assign Public IPv4.</p><p>Click on Subnets</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/158/1*PUXNZCs5LBfnp2_zdGVWQQ.png" /></figure><p>Locate your VPC you’ve created and select the box. Under Actions, click Edit subnet settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/237/1*cubbUV8eyePgnDr_mj0_cg.gif" /></figure><p>Once there, where it says <strong>Auto-assign IP settings</strong>, check the box that says Enable auto-assign public IPv4 address. And save.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*mZ1-bUstAmYVeagYS6zqCw.png" /></figure><p>Now to create the private subnets.</p><p>Head on over to the VPC tool and go to subnets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/168/1*MT0SOr4MLbPPRjniVj9ktA.png" /></figure><p>Click on Create subnets and select the VPC that was created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/307/1*-h5iYeMoFYVw9wTZHgR8cQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*-wlgeT0xL6lJj0kE11O9Kw.png" /></figure><p>Subnet 1 &amp; 2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*9PWMbxcgmosENhkE7wFkQg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*26WUL87bc4VbQfmB3QGWRA.png" /></figure><p>Click on Create subnet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y80_rEmHNMwMjr-eiZrfDg.png" /></figure><p>Create the Route table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/164/1*GkGUYjCjhohpyfNi5ZGgjg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/327/1*PtSW7Y1FDBcBAUmjTMlMeA.png" /></figure><p>Name your Route Table, select your VPC, and Create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*NtO9DPuQpsVgKn1mtZ_mcA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/1*rG8FpUxW-jpAnLawwRTYhQ.png" /></figure><p>Create the Auto Scaling Group.</p><p>Head over to the EC2 tool. Select Auto Scaling Groups and Create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/393/1*trgDJw_kg8tYWcWtaWmzEg.png" /></figure><p>Name your Auto Scaling Group and select the launch template. Hit Next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*ATdoXkCb7ejyMQVweULXhQ.png" /></figure><p>Under Network, select your VPC and also select the two private subnets that were just created. Skip to Review and click Create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*nLnVY0eQyGKDz_KNYcTLKw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/345/1*vsUlS3qnV9-9Vbm4gskD7Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6znijTYDMMy4RYdZJEyqgQ.png" /></figure><p>Now to Create the Database Subnet Group. Go to the RDS tool in the AWS Console and click Subnet groups on the left.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/145/1*itQmtru78mpbpA57nouDYA.png" /></figure><p>Create DB subnet group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/1*sn_00pkJiD3XpYkn1koiDg.png" /></figure><p>Name the group. give it a description, and select the VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*soNHCTeLulK-hfR-qx4eng.png" /></figure><p>Select the two AZ and the two subnets we recently created. Now click on Create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*q3G8T3HkCeaN9mF_rxFZ9g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W9MC74Y5TPsimx1h23N2dw.png" /></figure><p><strong>Create Database</strong></p><p>Back at the main RDS tool, click Create Database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*AArnifTqAtdcjZigHgHlPg.png" /></figure><p>Once the page opens up, select Standard create and MySQL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*lXbNZlJJ4rbCBZAf_FQBBw.png" /></figure><p>Under Templates, select Free Tier</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*mquK9LYz6Hr3KrYjWNWjPA.png" /></figure><p>For Settings, create your own passcode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*F6BZtFozaLEOM_R6I-7hUg.png" /></figure><p>Bypass Instance configuration</p><p>Storage, uncheck the box where it says Enable storage autoscaling.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*Sb_m4J1qBOhOjMwWEQCYfQ.png" /></figure><p>Connectivity, select the first option and select your VPC. Your DB subnet group should already be entered by default.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*IcTmoZb8QmKVlVKBOzszcA.png" /></figure><p>For Public access, select No. Create a new VPC security group name and choose AZ. And Create database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*QML53M7nI8L4rb5hAXYWqw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8WGv9yl9U09iSv58NVCQVA.png" /></figure><p><strong>Configuring the NAT Gateway</strong></p><p>The use for the NAT Gateway is so that instances in a private subnet can connect to services outside your VPC, but external services cannot initiate a connection with those instances.</p><p>Go to the VPC tool and select NAT Gateway, Create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/146/1*qDKq-f8JCdBKSy_6LyqNsQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/1*_UL_3ayRjiCd0XeLG8-WsQ.png" /></figure><p>Create a name, select the proper subnet, and click on Allocate Elastic IP. Now Create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*CafGaWMD5HEl0pvIGp0G7A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*us5ceAymmTIh-gXciUfzZQ.png" /></figure><p>There you have it. We’ve just built a 3-Tier Architecture in AWS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59c5f5a0f3d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Installing Jenkins in AWS using Terraform]]></title>
            <link>https://medium.com/@csholl85/installing-jenkins-in-aws-using-terraform-be12ad3e3538?source=rss-14b5f99f464a------2</link>
            <guid isPermaLink="false">https://medium.com/p/be12ad3e3538</guid>
            <dc:creator><![CDATA[Candace Hollinger]]></dc:creator>
            <pubDate>Sat, 11 Feb 2023 06:57:45 GMT</pubDate>
            <atom:updated>2023-02-11T06:57:45.008Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*AlbPf5XaPgKVkzG2.png" /></figure><p>Great Day guys!!! It’s week 20. We’re almost at the finish line. This week is all about Terraform. Yes, we’re diving deeper into Cloud Engineering and I must say out of all the weeks I’ve done projects and or coursework, Terraform is the one that has caught my attention and I really enjoyed what I’ve learned so far.</p><p>Terraform is an open-sourced infrastructure as code/ IaC tool. IaC enables developers or operations teams to automatically manage, monitor, and provision resources through code, instead of manually in person. With Terraform, users define their entire infrastructure by simply using configuration files and version control. It’s one of the most popular IaC tools, especially for cloud-based workloads. The IaC software tool was created by HashiCorp.</p><p>So here’s what the project entails…</p><p>“Your team would like to start using Jenkins as their CI/CD tool to create pipelines for DevOps projects. They need you to create the Jenkins server using Terraform so that it can be used in other environments and so that changes to the environment are better tracked. For the Foundational project, you are allowed to have all your code in a single <a href="http://main.tf/">main.tf</a> file (known as a monolith) with hardcoded data.”</p><p>☁️Deploy 1 EC2 instance in your Default VPC.</p><p>☁️Bootstrap the EC2 instance with a script that will install and start Jenkins. Review the official Jenkins Documentation for more information:</p><p>☁️Create and assign a Security Group to the Jenkins Security Group that allows traffic on port 22 from your IP and allows traffic from port 8080.</p><p>☁️Create an S3 bucket for your Jenkins Artifacts that is not open to the public.</p><p>So now that you have the details of this week’s project, let’s begin!!!</p><p>I’ll be working in my AWS Cloud 9 environment for this project. Open your AWS console and go to the Cloud9 tool. Once you’re there, <strong>Create an environment </strong>and name it. Select <strong>New EC2 instance</strong> and <strong>t2.micro</strong> instance type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*jt-Kt2sMeyZCzNENYWeQxQ.png" /></figure><p>Under platform select <strong>Amazon Linux 2</strong> and 30 minutes for <strong>Timeout</strong>. For Connection, select AWS Systems Manager. Now click <strong>Create</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*jt-Kt2sMeyZCzNENYWeQxQ.png" /></figure><p>Alright, let’s create a directory for the main.tf file,</p><p>mkdir &lt;insert name of directory&gt;</p><p>mkdir wk20tf_jenkins</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/1*woxP8N116JocZ1MKBOqo6Q.png" /></figure><p>Now change into the directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/245/1*9dlQOLL-EDK7Cp4zVyPuVg.png" /></figure><p>The command that you see is what will be placed, but before we do this step, let’s create some files. The files that we’re creating are<strong>main.tf</strong>, <strong>variable.tf</strong>, <strong>sgjenkins.tf</strong>, <strong>s3bucket.tf, </strong>and <strong>jenkins_instance.tf</strong>.</p><p>touch main.tf</p><p>touch variable.tf</p><p>touch sgjenkins.tf</p><p>touch s3bucket.tf</p><p>touch jenkins_instance.tf</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*B9jiV49S4NJnpR_UFxUeIg.png" /></figure><p>The main.tf is what you’ll create with any terraform deployment. It’s by convention. It’s where the provider script will go. We’ll be using hashicorp/aws and the latest version will be 4.0. This is the script that’s being used… <a href="https://registry.terraform.io/providers/hashicorp/aws/latest/docs"><em>https://registry.terraform.io/providers/hashicorp/aws/latest/docs</em></a></p><p>**Note: I’ll be using different files to place certain codes into. They’ll all work together for they’re all in one directory.</p><p>The main.tf file has the resource block and provider block. Be sure to save each time you add to your script (Ctrl+S).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*7Z75youjljwe_sBWjcY1yg.png" /></figure><p>Variables.tf shows the default VPC from your AWS Console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*SLZ49k5yH7CxLeK44fQGkA.png" /></figure><p>For the jenkins_instance.tf file, this is how the infrastructure should look. Where the resource is, you’re only able to change the resource name and not the resource type. So it should look like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*6vxApJalo95aIjKw0oIavQ.png" /></figure><p>*Note: the ami ID information should be in your instance summary from the environment you created in Cloud 9.</p><ul><li>For the user data, we’ll insert the bash command to install Jenkins.</li></ul><p>Now with the sg_jenkins.tf file add security groups to allow traffic from the IP and from port 8080.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*ZAh6EGRWaOMIwNCfEtH_Tg.png" /></figure><p>Lastly, the s3bucket.tf file is where we create the S3 bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LgTqThzc2NgYFQ0Nfp7USg.png" /></figure><p>Let’s move to the CLI environment. I’m going to run the terraform init command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*keY70s-fN66Qy75DmaLVzA.png" /></figure><p>Now run terraform validate. This validates the configuration files in a directory. We run this command to make sure there are no errors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*ZNaXjXEO5FnCFs6NmAtDTw.png" /></figure><p>Run terraform plan to view the files. It should show a list like this etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*FjugUvz64KltDDn-yf8EGQ.png" /></figure><p>Run terraform apply to execute what we just did in the terraform plan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*L6vLbnkgL_jrK74Zhu7Pkw.png" /></figure><p>It’s going to ask you “Do you want to perform these actions? Type yes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/329/1*XkDPLIYJqujbI-fX0Mi1YA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*eLlgh2wa8l6o-PiAFLiV6Q.png" /></figure><p>ALL SET!!</p><p>Now let’s go to the AWS Console and see if we can locate the S3Bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*VtJemaZOn6z2Tf-ap2p6VQ.png" /></figure><p>There you have it folks. Thank you for tagging along with me!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be12ad3e3538" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes NGINX and More!!!]]></title>
            <link>https://medium.com/@csholl85/deploying-an-image-using-nginx-9d6ed8197ec4?source=rss-14b5f99f464a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d6ed8197ec4</guid>
            <dc:creator><![CDATA[Candace Hollinger]]></dc:creator>
            <pubDate>Thu, 26 Jan 2023 21:20:53 GMT</pubDate>
            <atom:updated>2023-01-27T01:53:34.273Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*JnomTXyeqPqAa5ltCdsOlA.png" /></figure><p>Thank you for coming back to learn along with me. This week is a follow-up on Kubernetes. This is week two of learning about this open-source tool. And we’ll be deploying an NGINX image with Kubernetes.</p><p>So here’s what Kubernetes is all about in a nutshell…</p><p>☁️ It’s an open-source container orchestration tool.</p><p>☁️ It was originally developed by GOOGLE.</p><p>☁️ On the foundation, it manages containers whether it be docker containers or other technology.</p><p>☁️ It helps you manage containerized applications.</p><p>Out of the Kubernetes processes that we’ll be using for the project from the API Server, we’ll use the CLI.</p><p><strong>Let’s create a deployment to run the NGINX image.</strong></p><p>LET’S GET STARTED!!!</p><p>I’m using PowerShell for my project. Prior, I did have to install Kubernetes on my laptop which took FOREVER, and when I say forever, I’m saying give or take a week and some change. I promise you, I’m investing in a MacBook with my tax refund. Guys, I wanted to cry. And DID!!</p><p><strong><em>I don&#39;t know how I did it guys but just work with me and nod your head with oohs and ahhs because there was ALOT of trial and error with this project. But I got it done so here are my steps.</em></strong></p><p>Any who so I downloaded Docker Desktop onto my HP laptop and enabled Kubernetes. Once that was running and ready to go, I went to my CLI and ran docker run -d -p 80:80 docker/getting-started which I was prompted to do when the program came up. I then ran kubectl commands to make sure Kubernetes were taking the commands. As I said, these commands didn’t work for me at all last week and some change ago. So I’m just happy to see the dang command working LOL..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*_WaZf3jNSMbkrMPBgbI9Fw.png" /></figure><p>Ok now to create a deployment for the NGINX image. I ran the</p><p>kubectl create deployment &lt;name of my image&gt; --image nginx command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*a3GHRLC-SxSHWGE1jfTIkA.png" /></figure><p>As you can see it was created. (This step made me so happy because I’ve been trying to deploy in the CLI for forever guys.)</p><p>Knowing me I need to now make sure it went through. I don&#39;t trust Kubernetes, I now have trust issues LOL. Run the command below</p><p>kubectl get deployment &lt;name of my image&gt;</p><p>Woohoooo it worked! It’s there!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*Guo0HTskkICrt6M9leq0jg.png" /></figure><p>Now for the info on the deployment. We’re on a roll guys, fingers crossed.</p><p>Run the kubectl decsribe deployment &lt;name of my image&gt; command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*wItawewllk2iHJ6fyt7hGw.png" /></figure><p>Let’s check the logs from the deployment.</p><p>kubectl logs deployment/&lt;name of my image&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*VNltAegKV6gqyL4QRkfRCg.png" /></figure><p>Looking good!!!</p><p>Now to delete the deployment.</p><p>kubectl delete deployment &lt;name of my image&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*Iqws81zdUaPpeUiptbVhIg.png" /></figure><p>Yessssssssss!!!! I did it OMG, Kubernetes DID NOT want me to be great.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d6ed8197ec4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying an image using NGINX]]></title>
            <link>https://medium.com/@csholl85/deploying-an-image-using-nginx-586a01a31256?source=rss-14b5f99f464a------2</link>
            <guid isPermaLink="false">https://medium.com/p/586a01a31256</guid>
            <dc:creator><![CDATA[Candace Hollinger]]></dc:creator>
            <pubDate>Tue, 17 Jan 2023 02:27:22 GMT</pubDate>
            <atom:updated>2023-01-17T02:27:22.459Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/456/0*loscdCbt4XQQ33_x.png" /></figure><p>Welcome to 2023. This is a fresh start for me and I’m grateful to still be here to get through the trials and tribulations. Becoming a Cloud Engineer takes hard work and consistency. So here I am back at work getting it done. This week’s project will be a Docker-based project, creating an image using NGINX by deploying a Docker Image using Amazon Web Services ECR.</p><p>LET’S GET STARTED!!!</p><p>First, we’ll create a Cloud9 in the AWS Console. Go to the Cloud9 tool and click <strong>Create Environment</strong>.</p><p>Name your environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*nUna48I9VzhBmNfmSiGHrg.png" /></figure><p>Select the instance type I’ve selected below. You’ll want to select Ubuntu 18.04 Server for the platform and 30 minutes for the timeout so we won’t get charged for unnecessary usage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*fsL5o3R65SrbmfaAp5uNIw.png" /></figure><p>Under Network settings, select Secure Shell and Create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*LytWsS9QJv99BkYQipGJXA.png" /></figure><p>Now that we’ve created our environment, there are a few things we need to take care of before we begin.</p><p>Under AWS Cloud9, select Preference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/206/1*vniRoUyNCQKkEh5zRj6ksg.png" /></figure><p>Now where it says Soft tabs change it from 4 to 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gnm6I4rNe3aqndUF9uuniQ.png" /></figure><p>At the top right, you’ll see a small icon, select Manage EC2 instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/180/1*a3P5S14PV9klEhrKuRF-5g.png" /></figure><p>Once there click on the Security tab. Select the instance, and now click the security group</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rNFTnyLebVCxiq3KN-3omw.png" /></figure><p>Select Edit inbound rules to the right.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*knoNkeyj5AEKFUkGUxZamA.gif" /></figure><p>Add rule, choose All traffic, My IP, and now save rules.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g6gZsJoKUhbKC1QGL4LHZw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EKEUX7SpGUjWr3QjtYQt_A.png" /></figure><p>That should give us access to everything in this instance.</p><p>Cloud9 is all setup.</p><p>Now create a directory mkdir nginx. Once it’s made, ls to locate the file. Now change into the directory we just made cd nginx.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/1*RLBw1hgUzPGb_Bh_lZjcaw.png" /></figure><p>Run the docker pull nginx command until the pulls are complete.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*hWNueRQDDvHMhvr9dlruKQ.png" /></figure><p>Create Dockerfile touch Dockerfile. Once it’s made, ls to locate the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/297/1*6oE8NwEwZ93d8ZAuD14ZdQ.png" /></figure><p>Now create an HTML file with the touch index.html command. Once it’s made, ls to locate the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/285/1*jzww_PhG6MlVXWLYwQLWEg.png" /></figure><p>Now create an image from Dockerfile.</p><p>Run the docker run -d — name nginx -p 8080:80 nginx command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*LHE-soN4sePVsmZuQsrnRQ.png" /></figure><p>Run the docker ps command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*gZHte3F-Ga9Hcx5RZnPOXg.png" /></figure><p><em>Are you hanging in there? Not too many steps right? Good lol. We’re almost to the finish line.</em></p><p>Basic short commands for what we’re doing.</p><p>(-p) allows you to specify what ports to open.</p><p>(-t) allows you to tag your image.</p><p>(-d) the container will run in a detached state.</p><p>Now let’s verify the image and creation date using the CLI in Cloud9.</p><p>Run the docker inspect nginx | grep -i created &gt; created.txt and</p><p>cat created.txt command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*dvSsI4a8RvwulX6KFx0cuA.png" /></figure><p>The next step is to save to AWS ECR.</p><p>Here’s the command to run aws ecr create-repository — reository-name &lt;image name&gt; — region &lt;region name&gt;</p><p>aws ecr create-repository --repository-name nginx --region us-east-1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*gMAMJHQz326DtbpFSKv7hw.png" /></figure><p>Now go to your AWS Console and go to the Amazon Elastic Container Registry (<strong>ERC</strong>) tool. Select the repository you made and click <strong>View Push Commands.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zyt2tU1nz5tXPF-_FSKZeA.gif" /></figure><p>You’ll see this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*daGmShNUTBQR92XfhbgT-w.png" /></figure><p>Copy the first one and paste it into the CLI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*fTT8IOXvVC_pplNTquSKkA.png" /></figure><p>Login Succeeded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*OAAenpYBgb3iZg9EqcMpXg.png" /></figure><p>Copy the 3rd push command and paste it into the CLI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*O9JnO5s52QFMFWc-tEvdRQ.png" /></figure><p>Now do the exact same thing with the 4th command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*MZ5Z7iwQrK-X1TPM91JCUg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*n3pklZWiSFHu44pUhULSYQ.png" /></figure><p>PUSH IT REAL GOOD!!! LOL</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=586a01a31256" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>