<?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 Robert Jones on Medium]]></title>
        <description><![CDATA[Stories by Robert Jones on Medium]]></description>
        <link>https://medium.com/@robert-iii-jones?source=rss-259e14d5cd9e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Tn-i3iWKN7ga7iK66xgRfw.png</url>
            <title>Stories by Robert Jones on Medium</title>
            <link>https://medium.com/@robert-iii-jones?source=rss-259e14d5cd9e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 12:45:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@robert-iii-jones/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Creating Deployments using command line and]]></title>
            <link>https://robert-iii-jones.medium.com/creating-deployments-using-command-line-and-61dc2a9aa5f5?source=rss-259e14d5cd9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/61dc2a9aa5f5</guid>
            <dc:creator><![CDATA[Robert Jones]]></dc:creator>
            <pubDate>Tue, 24 Jan 2023 05:45:51 GMT</pubDate>
            <atom:updated>2023-01-24T05:45:51.545Z</atom:updated>
            <content:encoded><![CDATA[<h3>Creating Deployments using command line and YAML files</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/0*f0Ku9Wq0CFR1eCm3" /></figure><p><strong>What is Kubernetes</strong> - K8s (Kubernetes) is an open-source container orchestration system for automating the deployment, scaling, and management of containerized applications. Originally developed by Google, it is now maintained by the Cloud Native Computing Foundation. Kubernetes provides a platform-agnostic way to manage and schedule containers, making it easy to deploy, scale, and manage containerized applications in a distributed environment. It also provides features such as service discovery, load balancing, and automatic scaling.</p><p><strong>What is a YAML file</strong> -YAML (Yet Another Markup Language) format is easy to understand and write, making it a convenient choice for describing complex k8s configurations. of Kubernetes objects, such as pods, services, and deployments, meaning that k8s commands can directly read and write YAML files without the need for additional tools or conversion.</p><p>This overview will demonstrate how to:</p><ul><li>Create a Nginx deployment from the command-line</li><li>Check the deployment’s details</li><li>Check the event logs form the deployment</li><li>Create and update an Nginx deployment using a YAML file</li></ul><h3>Step 1: Create a Nginx deployment from the command-line</h3><p>To create a deployment that runs the nginx image using the command line, you can use the kubectl. To choose the image type and number of replicas deployed, use kubectl create deploy [DEPLOYMENT NAME] image=[IMAGE TYPE] --replicas=[# OF REPLICAS]:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zh6nuK3fUgIpYMwoCSXEbg.png" /></figure><p><strong>kubectl create deploy nginx-deployment — image=ngingx — replicas=2</strong></p><h3>Step 2: Check the deployment’s details</h3><p>To display the details of the deployment, you can use the kubectl describe deployments:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1jnlq0Uo8lAqmTt_gY2kMw.png" /></figure><h3>Step 3: Check the event logs form the deployment</h3><p>To check the event logs from the deployment, run the kubectl logs deployment/[NAME OF DEPLOYMENT]:</p><p><strong>kubectl logs deployment/nginx-deployment</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*zQtw8mBgOBY7W54xwvRIWw.png" /></figure><h3>Step 4: Delete the deployment</h3><p>Now that we are done, lets clean up our deployment. We will use kubectl delete deployment/[NAME OF DEPLOYMENT]:</p><p><strong>kubectl delete deployments nginx-deployment</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*L8-KOSGUH-uchO6qwALz9Q.png" /></figure><p>Now that we know how to create a deployment, lets create on using a YAML file.</p><h3>Step 5: Create the YAML file &amp; and deployment</h3><p>Start by creating the .yml file. Vim is used in this example.</p><p>vim nginx-depolyment2.ymlinfo. Now type :set paste followed by i. Now enter the required info.</p><p><strong>NOTE: Spaces are important in YAML. Insure they are correctly spaced.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/327/1*HIpNvjbsnOUqZIENxWeX_g.png" /></figure><p>Once you are done, hit the Escape button and type :wq! to save the document.</p><p>Now create the deployment using kubectl create -f [NAME OF DEPLOYMENT].</p><p><strong>kubectl create -f nginx-depoyment2.yml</strong></p><h3>Step 6: update an Nginx deployment using the YAML file</h3><p>To update the deployment, open the deployment YAML file usingvim [NAME OF YAML FILE].</p><p><strong>vim nginx-depoyment2.yml</strong></p><p>Now change the number of replicas to 4.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/398/1*TYTWv96DPo8MJDL5jrH8tw.png" /></figure><p>Once you are done, hit the Escape button and type :wq! to save the document.</p><p>Now update the deployment using kubectl apply -f [NAME OF YAML FILE].</p><p><strong>kubectl apply -f nginx-deployment2.yml</strong></p><p>Finally, lets verify the change using kubectl get deployments .</p><p>That’s all you need to do to use the command line &amp; YAML files to start a Kubernetes deployment, check out the details, view logs, modify the YAML file, and when all is said and done, delete the deployment. I hope this was useful for everyone!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61dc2a9aa5f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stopping Active EC2s]]></title>
            <link>https://robert-iii-jones.medium.com/stopping-active-ec2s-b01987d79517?source=rss-259e14d5cd9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b01987d79517</guid>
            <dc:creator><![CDATA[Robert Jones]]></dc:creator>
            <pubDate>Thu, 22 Dec 2022 06:15:17 GMT</pubDate>
            <atom:updated>2022-12-22T06:15:17.688Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*aakxSPL5-rgq3f3PVjkxPw.png" /></figure><p>In this article, I will share how to delete active EC2s using using Python and Boto3.</p><h3>Resources/Prerequisites:</h3><ul><li>Knowledge of the AWS management console</li><li>An IDE to code. I used Cloud9 in my case</li><li>Basic understanding of Python</li><li>Python 3.7 installed</li><li>Boto3 installed</li></ul><h3>What is Cloud9?</h3><p>Cloud9 is a cloud-based IDE similar within the AWS management console. It allows you to write, run, and debug your code with just a browser. Using Cloud9 easily allows us to run Python/boto3 code.</p><h3>What is Boto3?</h3><p>Boto3 is a Python package that provides interfaces to Amazon Web Services. Boto3 enables you to create, configure, and manage AWS services. We can use it to in conjunction with EC2s and S3s.</p><h3>Step 1: Using our IDE</h3><p>Generate the Cloud9 IDE. Navigate to the AWS management console, search for <strong>Cloud9</strong>. Once inside, generate the IDE using the default setting. Once the IDE is ready, launch it and open the terminal.</p><h3>Step 2: Install Python and Boto3</h3><p>We are coding this project in Python and using the AWS SDK for Python (Boto3) onto your computer. The code below will install them.</p><pre># Installs Python3.7<br>sudo yum install python3.7<br><br># Install Boto3<br>sudo pip3 install boto3</pre><h3>Step 3: View your active EC2</h3><p>Navigate to your active EC2s. If you don’t have an active one, you can create it here. Below, we have 3 EC2s running, one is hosting my Cloud9 IDE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4kMEwgaFHQ0X3HhnbW2lvQ.png" /></figure><h3>Step 4: Generate our list of active EC2s and stopping them.</h3><p>Our code is broken into 2 parts: 1) generating a list of active EC2s &amp; 2) utilizing this list to stop these EC2s.</p><p>To generate the list, I utilized <strong>ec2_client.describe_instances()</strong> to generate the initial dictionary of EC2 information. After further refining it, we are able to generate a “list” of active EC2 instance IDs.</p><pre>#!/bin/python3<br>import boto3<br><br># Generate a list of active EC2s<br>ec2_client=boto3.client(&quot;ec2&quot;)<br>x=ec2_client.describe_instances()<br>data=x[&quot;Reservations&quot;][0]<br>data_instance=data[&quot;Instances&quot;]<br>for i in range (len(data_instance)):<br>    print(f&quot;Number of open EC2 instance(s): {(len(data_instance))} &quot;)</pre><p>Next, we take the delete the active EC2s using <strong>ec2_client.stop_instances()</strong>.</p><pre># Stop EC2s from the list generated above <br>response = input(&#39;Do you want to terminate all EC2s running? Please enter &quot;Yes&quot; or &quot;No&quot;: &#39;)<br>if response == &quot;Yes&quot;:<br>    ec2_client=boto3.client(&quot;ec2&quot;)<br>    x=ec2_client.describe_instances()<br>    data=x[&quot;Reservations&quot;]<br>    li=[]<br>    for instances in data:<br>        instance=instances[&quot;Instances&quot;]<br>        for ids in instance:<br>            instance_id=ids[&quot;InstanceId&quot;]<br>            li.append(instance_id)<br>    ec2_client.stop_instances(InstanceIds=li)<br>    print(&quot;This&quot;)<br>else:<br>    print(&quot;No EC2s terminated&quot;)</pre><p>Now run the code to stop the active EC2s.</p><h3>Step 5: Confirm the deleted EC2s</h3><p>Navigate back to the AWS counsel and confirm the EC2s were stopped.</p><p>Thank you for navigating this journey with me.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b01987d79517" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating Your 1st DynamoDB Table]]></title>
            <link>https://robert-iii-jones.medium.com/creating-your-1st-dynamodb-table-9fbeaf605d88?source=rss-259e14d5cd9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fbeaf605d88</guid>
            <dc:creator><![CDATA[Robert Jones]]></dc:creator>
            <pubDate>Wed, 09 Nov 2022 07:18:04 GMT</pubDate>
            <atom:updated>2022-11-24T22:59:23.582Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*-q5QjjtgP1ZkwRE2FXGj2A.png" /></figure><p>In this article you will learn how to:<br>1) Create and configure a DynamoDB Table.<br>2) Utilize a CLI to scan and add an item to a DynamoDB Table</p><h3>Prerequisites:</h3><p>· An AWS account and working knowledge how to navigate it<br>· How to create an VPC <br>·How to create an EC2 and how to SSH into an EC2</p><h3>Background:</h3><p><strong>What is DynamoDB</strong>: DynamoDB is a NoSQL database service offered by AWS. It was designed to handle high-volume data processing and low-latency data access. DynamoDB is serverless, meaning there is no need to manage hardware or an operating system. You just upload your data and the service takes care of everything else.</p><p><strong>What is a CLI</strong>: AWS CLI (Command Line Interface) is an is cross-platform tool that supports Windows, MacOS, and Linux. It enables developers to interact with the various AWS services through the command line. It provides a unified interface to all of the AWS services and allows users to provision and manage resources from their desktops without using the AWS website.</p><h3><strong>Step 1 — Create VPC for project</strong></h3><p>Create the VPC with 1 public subnet and 1 private subnet</p><h3>Step 2 — Create the DynamoDB and add items to the table</h3><p><strong>Step 2.1 — Create the DynamoDB</strong><br>Go to <strong>DynamoDB</strong> and select <strong>Create table</strong>. <br>Enter the Table name.<br>Name your <strong>Partition Key</strong> (primary key) and your <strong>Sort key. </strong>Name sure “String” is selected for both. In my case, I’m using <strong>HerbID</strong> &amp; <strong>Name</strong> respectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QDsawz9yk_qSofRMz5poQg.png" /></figure><p>Under <strong>Table settings</strong>, select <strong>Customize settings</strong>. <br>Under <strong>Table class</strong>, select <strong>DynamoDB Standard</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TFB3or2-okJkIPMu-VgXBw.png" /></figure><p>Under <strong>Read/write capacity settings</strong>, select <strong>On-demand</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uhjSER9Vw4Mvoc4sx_Mz8w.png" /></figure><p>Keep every other setting and create this DynamoDB<strong>.</strong></p><p><strong>Step 2.2 — Add the Items</strong> <br>While under DynamoDB, select <strong>Tables</strong> and then <strong>Explore items</strong>.<br>Select <strong>your table</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rT4xaAdW1r24K1qBk-dmSA.png" /></figure><p>Scroll down and select <strong>Create item</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*GZoQFRzJhwav1pjqxsF0Xw.png" /></figure><p>Enter your 1st item. I’m entering “01” for the HerbID and “Bupleurum &amp; Cinnamon Combination” for Name. <br>Select <strong>Create Item</strong>. <br>Now repeat the process above to enter 9 other options.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y0WxFvSDMP-zhOJy4d7fJw.png" /></figure><h3><strong>Step 3 — Create IAM Role to add to EC2 (Least Privilege — Read only)</strong></h3><p>To observe principle of least privilege, we will create a role that gives the EC2 Read-Only privileges to DynamoDB.<br>Go into <strong>Identity and Access Management (IAM)</strong>, then select <strong>Roles</strong> and then <strong>Create role</strong>. <br>Choose <strong>AWS service.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*Bb6sGA0lli0tcOSoH-gaBw.png" /></figure><p>Under <strong>Use case</strong>, choose <strong>EC2</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pg6M62kx9wHI7_-9OvUhCw.png" /></figure><p>Click <strong>Next</strong>. <br>Under <strong>Permissions policies</strong>, search for <strong>DynamoDB</strong>. Then click the check box next to <strong>AmazonDynamoDBReadOnlyAccess</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gPzgo7jVzIg3YosmHCUtLg.png" /></figure><p>Then click <strong>Next</strong>. <br>Name the role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*q9GtK2cNaQys0NRGC5M25g.png" /></figure><p>Now create the role.</p><h3>Step 4 — Create EC2 &amp; assign IAM role to EC2</h3><p>Create the EC2. Make sure that you:<br>1) user Amazon Linux Image<br>2) use t.2micro<br>3) create your keypair<br>4) launch the EC2 in your created VPC in the public subnet.<br>5) enable Auto-assign public IP<br>6) create a security group that allows port 22 and 80.<br>7) add the IAM role. Look under <strong>Advanced details</strong>, use the dropbox under <strong>IAM instance profile</strong> and select the role your created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xXpxKQxn5UOamI0K-a46dA.png" /></figure><h3>Step 5— <strong>Scan tables</strong> &amp; v<strong>alidate denial of EC2 write permission</strong></h3><p><strong>Step 5.1 Scan the tables<br></strong>Remote into the EC2.<br>Scan DynamoDB. The command templete is below. Below that is the CLI command I used.<br>aws dynamodb scan <br> — table-name [DynamoDB Table name] <br> — region [region my DynamoDB Table is in]</p><p><strong>Scan CLI Command</strong><br>aws dynamodb scan — table-name DynamoDBProjectTable — region us-east-1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UNgjvKjIG3Nm_vfPHqq9bQ.png" /></figure><p><strong>Step 5.2 — Validate that the EC2 cannot write to DynamoDB<br></strong>Use a put-item command within the EC2 to add an entry. An Access Denied error will confirm the EC2 doesn’t have write access to DynamoDB. Below is a template of the put-item CLI used. Below that is the CLI used to test the EC2 permissions:<br> <br><strong>Template</strong><br>aws dynamodb put-item <br> — table-name [DynamoDBProjectTable] <br> — region [EC2 Region] <br> — item “[New Item Details]”<br> <br><strong>Test Permissions CLI<br></strong>aws dynamodb put-item — table-name DynamoDBProjectTable — region us-east-1 — item “{\”DynamoDBProjectTable\”:{\”S\”:\”HerbID: 11\”},\”Name\”:{\”S\”:\”Five Ginsengs Formula\”}}”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SJAg1eS3W6WRtZ-q-cjqJg.png" /></figure><p>This shows us that the EC2 doesn’t have write permissions to the EC2.</p><h3>Roadblocks and Hurdles</h3><p>Running the DynamoDB scan — When I initially used aws dynamodb scan — table-name DynamoDBProjectTable and received the following error: “ERROR: Prompted to enter Region”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2laVrVs-6sbPrv0_j2OJyQ.png" /></figure><p>Solution: Since my EC2 is in US-East-1, I added — region us-east-1 to the CLI.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fbeaf605d88" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating and utilizing your 1st Auto Scaling Group]]></title>
            <link>https://robert-iii-jones.medium.com/creating-and-utilizing-your-1st-auto-scaling-group-3c576cccf33e?source=rss-259e14d5cd9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c576cccf33e</guid>
            <dc:creator><![CDATA[Robert Jones]]></dc:creator>
            <pubDate>Mon, 07 Nov 2022 04:45:29 GMT</pubDate>
            <atom:updated>2022-11-07T04:45:29.272Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*be_bnO3eq6iL0GXvkjHR6g.png" /></figure><p>In this article you will learn how to:<br> 1) Create and configure an auto scaling group within Amazon Web Services (AWS), along with a launch template.<br> 2) Configure an Application Load Balancer.</p><h3><strong>Prerequisites:</strong></h3><p>· An AWS account and working knowledge how to navigate it</p><h3><strong>Background:</strong></h3><p>What is Auto Scaling: Auto-scaling is the process of adding and removing compute resources dynamically to meet demand. AWS Auto Scaling allows you to set up scaling policies that define how your Amazon EC2 capacity will be adjusted automatically.</p><p>What is Auto Scaling Group: Auto Scaling Groups allow for the creation of groups of servers that can be automatically scaled up or down as the need arises. This is done with a set of rules that are defined by the user. The Auto Scaling Group is a collection of one or more EC2 instances, and it can be scaled up or down based on specific triggers. The group will only scale when a rule is triggered, and it will scale to meet the specified threshold.</p><p>What is the Load Balancer: Load balancers are software devices that distribute workloads among servers. Load balancing can be done based on the content of the request, the source IP address, or the server’s current workload. We will use an Application Load Balancer in our example.</p><p>Application Load Balancer: An Application Load Balancer is a networking device that distributes incoming application traffic across multiple servers or nodes. It is designed to increase the scalability and reliability of the applications. It also provides health checks to ensure that the backend services are operational at all times.</p><h3>Step 1 — Create the VPC</h3><p>Create a VPC with the CIDR of 10.10.0.0/16. Use Use the <strong>VPC and more</strong> option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/1*iYdL9LiFWEQeuT8VTKNfGw.png" /></figure><p>Now create 3 public subnets and 0 private subnet. Use the following CIDRs for the Public subnets: <strong>10.10.1.0/24 &amp; 10.10.2.0/24 &amp; 10.10.3.0/24</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/475/1*WZodp5Z2yZgcQyMmhWHPjQ.png" /></figure><p>Complete the VPC</p><h3>Step 2 — Create the EC2 Launch Template</h3><p>This step is completed in 5 sub-steps</p><p><strong>Step 2.1 — Launch Template Initial Configuration</strong></p><p>Enter the name and template version description. Also check the <strong>Auto Scaling guidance </strong>checkbox.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*Y4k7dK5acGX05iMRhNivOw.png" /></figure><p><strong>Step 2.2 — Configure the EC2 Image</strong></p><p>Select <strong>Amazon Linux</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*5wn20Z4GxGas0IxIdextew.png" /></figure><p>Now chose <strong>t2.nano</strong> for the instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*uBZ4up8LZgB5d1Lf9rSxjQ.png" /></figure><p><strong>NOTE</strong>: In my example, I choose to not use a keypair. This is against best practice is not recommended for ongoing projects. Since this example will be deleted immediately after use, it is being eliminated.</p><p><strong>Step 2.3 — Create the security groups</strong></p><p>Under Subnet, choose <strong>Don’t include in launch template</strong>, followed by selecting <strong>Create security group</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*BNgM8ALgeRWoUpWLEsQQHg.png" /></figure><p>Now, enter name of security group name and the description. Now choose the VPC you created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*5k7SWGuHuN6BtOuYPxRekw.png" /></figure><p><strong>Step 2.4 — Configure Network Settings</strong></p><p>Create 2 Inbound security groups rules. Choose <strong>SSH </strong>and choose <strong>Anywhere </strong>for the source type. For the next one, choose <strong>HTTP </strong>and <strong>Anywhere</strong>.</p><p><strong>NOTE</strong>: It is against best practice to do this in production. It’s a good starting point to insure your system is working. From there, change the Source to your required IPs or Security Groups.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*67wWgIVD9o-GZ_odUq3fWQ.png" /></figure><p>Now, click the <strong>Add security group rule</strong> button. Under <strong>Auto assign public IP</strong>, select <strong>Enable</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*MQ2CktAFAsslSzxVCLqW3g.png" /></figure><p><strong>Step 2.5 — Install Apache server onto the EC2 upon launch</strong></p><p>Expand <strong>Advanced details </strong>and scroll down to <strong>User data</strong>. Enter the following details. Then click <strong>Next</strong>.</p><p><strong>#!/bin/bash<br>yum update -y<br>yum install httpd -y<br>systemctl start httpd<br>systemctl enable httpd</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*oTQVQ85GgLQQvhoXT0kddw.png" /></figure><h3>Step 3 — Create the Auto-Scaling group</h3><p>This step is completed 4 substeps</p><p><strong>Step 3.1 — Choose launch template or configuration</strong></p><p>Under the EC2 settings, go to <strong>Auto-Scaling groups</strong>. Enter your name and choose the template you created earlier. Then click the <strong>Next </strong>button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*wJzb2hmc9fuOD8YjbOLW8g.png" /></figure><p><strong>Step 3.2 — Choose instance launch options</strong></p><p>Choose the VPC you created earlier and all 3 subnets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*TftdbhE5h_2M6iX7OEkrRg.png" /></figure><p><strong>3.3 — Configure advanced options</strong></p><p>Select <strong>Attach to a new load balancer</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*9HjT5-TJ8Xz1oqPUQqPN7w.png" /></figure><p>Choose <strong>Application Load Balancer</strong> followed by <strong>Internet-facing</strong> radio button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*qWbewf41HecWZmFDflkIVg.png" /></figure><p>Select <strong>Create a target group</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*iV8fqD3tP8MVkbB8wrT1yg.png" /></figure><p>Select <strong>Enable group metrics collection within Cloudwatch</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*eMXj2BX6nPg70KF4j6qY7A.png" /></figure><p><strong>3.4 Configure group size and scaling policies</strong></p><p>We are choosing <strong>2</strong> for the desired capacity and minimum capacity and <strong>5</strong> for the maximum capacity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*l_1KZH2vpzc6QoGnHIKjzQ.png" /></figure><p>Select <strong>Skip to review</strong> then Create the <strong>Auto Scaling Group</strong>.</p><p>Once your EC2s are ready, test. You should see following screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_np7Y0RnIZGrCJ61kGz9bw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c576cccf33e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Launching an EC2 utilizing a Bash script to install Apache and generate a web site]]></title>
            <link>https://robert-iii-jones.medium.com/launching-an-ec2-utilizing-a-bash-script-to-install-apache-and-generate-a-web-site-a4c8180fc89?source=rss-259e14d5cd9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4c8180fc89</guid>
            <dc:creator><![CDATA[Robert Jones]]></dc:creator>
            <pubDate>Tue, 11 Oct 2022 19:10:40 GMT</pubDate>
            <atom:updated>2022-10-21T00:18:36.372Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*ul-D3nRsK2GKkHvy.jpg" /></figure><p>In this article you will learn how to:<br>1) Create a Virtual Private Cloud (VPC) within Amazon Web Services (AWS)<br>2) Create and Launch Elastic Compute Cloud (EC2)<br>3) Write and execute a Bash script. The Bash script is used for: a) checking and running updates for the operating system, b) installing and configuring Apache, c) installing and configuring the firewall, d) adding http/https services, and e) generate a web page.</p><h3>Prerequisites:</h3><ul><li>An AWS account and working knowledge how to navigate it</li></ul><h3>Background:</h3><ul><li>What is AWS? — Amazon Web Services (AWS) is a subsidiary of Amazon.com that provides on-demand cloud computing platforms to individuals, companies and governments, on a paid subscription basis. It is the most popular cloud provider at this time.</li><li>What is a EC2? — EC2s are web servers that provides resizable compute capacity in the cloud. It is designed to make web-scale computing easier for developers. EC2 enables developers to use Amazon’s infrastructure to deploy and run applications across multiple computer clusters, from 10 instances up to thousands of instances.</li><li>What is an VPC? — AWS VPCs are VPC is an isolated space on AWS where you can launch resources into your own virtual network that looks like your own private network. This virtual neighborhood is where your cloud resources will live and operate.</li><li>What is a Bash Script? — Bash is a Unix shell that provides command-line access to the Linux kernel. It can be used to execute commands or run scripts from the command line, or in scripts. Bash has many features that make it excellent for scripting, such as string manipulation and file name pattern matching.</li></ul><h4>Step 1 — Create the VPC</h4><p>After signing into your AWS account, generate the VPC. To locate the VPC, type in “VPC” in the search bar in the upper left. VPC will show up. Click it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*AgAyzs6V3-XaotNnaWf5UQ.png" /></figure><p>Now, click <strong>Create VPC</strong> button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*zFdhZAil_y2SwhvlEZL1Lg.png" /></figure><p>Now there you are in here, select the <strong>VPC and more</strong> radio button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*0l4lkMle3JLUQ5BSoKDHSA.png" /></figure><p>Select the following option:<br>Availability Zones: 1<br>Number of Public Subnets: 1<br>Number of Private Subnets: 0</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*1XufuVX0AXfb91pkglxRbg.png" /></figure><p>Now select <strong>Create VPC</strong> button. If it is successful, you should receive a page similar to below. If not, it is best to rerun the process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*dm5_-6AKmf8bpyAWCwu6Gg.png" /></figure><h3>Step 2 — Create EC2</h3><p>In the search bar in the upper left, type <strong>EC2</strong> and select the EC2 option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*Ytu4Go0ENutAsJvNW2-heA.png" /></figure><p>Towards the center of the page, click the <strong>Launch Instance</strong> button and click follow button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*xjm64CLWdRWsiamx62ptog.png" /></figure><p>Enter the name of your EC2.</p><p>Doublecheck to make sure Amazon Linux is selected, along with the Free tier option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*WORWDZe-3Tx8us6GudvmlQ.png" /></figure><p>Insure Amazon Linux t2.micro is selected</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*4TskrqLyr9OTYqtOMewmPg.png" /></figure><p><strong>NOTE ABOUT KEYPAIRS: its best practice to create a keypair for security. In this case, since this is a demo, I will not create one.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*q-yqGbeb8rZbC2Z0VUnClw.png" /></figure><p>Create a security group that allows inbound traffic on ports 22, 80, and 443 open allowing for all traffic 0.0.0.0/0</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*P4oahSj5qvoE4XX4fkVmVg.png" /></figure><p>Click the <strong>Launch Instance </strong>button. This process can take a few minutes</p><h3>Step 3 — Connecting to your EC2</h3><p>Navigate back to your EC2 instance. Click Instance [1]. Then click the checkbox of your EC2 [2]. Then hit the sudo yum install httpd [3] button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*QQnlWr97vWXmZYxpdqbv-g.png" /></figure><p>Now click the <strong>Connect</strong> button in the lower right.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*-qlQ413-WPZx_v_NEb7mFA.png" /></figure><h3>Step 5 — writing your Bash Script</h3><p>Now navigate to the /bin folder. This is where all of your Bash scripts should live. Navigate to the /bin folder</p><p><strong>cd /bin</strong></p><p>If you don’t have one, you make one by completing the following command. After that, complete the command above</p><p><strong>mkdir /bin</strong></p><p>I recommend prewriting your Bash script out in Notepad or a similar application. First, create your Bash script</p><p><strong>Sudo vim world.sh</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/1*B00DWwPrJnRrKMVZBXzE5Q.png" /></figure><p>Then enter the script below. I list in the comments where I obtained these suggestions in the script.</p><p><strong>NOTE: In the spirit of Linux, I have credited where I obtained my code and who created it.</strong></p><p>#!/bin/bash<br># Author: Ricardo Torrez<br># Source: <a href="https://medium.com/@ertorrez/use-a-script-to-install-and-launch-an-apache-server-on-centos-8-6db6e4b81cbf">https://medium.com/@ertorrez/use-a-script-to-install-and-launch-an-apache-server-on-centos-8-6db6e4b81cbf</a><br> <br># system update check and installation<br>sudo yum check-update<br>sudo yum update</p><p># install/configure Apache <br>sudo yum -y install httpd<br>sudo systemctl start httpd<br>sudo systemctl enable httpd<br>sudo systemctl status httpd</p><p># install/configure firewall<br>sudo yum install firewalld<br>sudo systemctl start firewalld<br>systemctl status firewalld</p><p># add http &amp; https services<br>sudo firewall-cmd — permanent — add-service=http<br>sudo firewall-cmd — permanent — add-service=https</p><p># reload firewall<br>sudo firewall-cmd — reload</p><p>#get ip address to access to the web server</p><p>echo “this is the public IP address:” ‘curl -4 icanhazpi.com’</p><p># modify permissions for index.html file<br>sudo chown -R $USER:$USER /var/www</p><p># sysinfo_page — A script to produce an HTML file</p><p>cd /var/www/html/<br>echo ‘&lt;!DOCTYPE html&gt;’ &gt; index.html<br>echo ‘&lt;html&gt;’ &gt;&gt; index.html<br>echo ‘&lt;head&gt;’ &gt;&gt; index.html<br>echo ‘&lt;title&gt;Level It Up&lt;/title&gt;’ &gt;&gt; index.html<br>echo ‘&lt;meta charset=”UTF-8&quot;&gt;’ &gt;&gt; index.html<br>echo ‘&lt;/head&gt;’ &gt;&gt; index.html<br>echo ‘&lt;body&gt;’ &gt;&gt; index.html<br>echo ‘&lt;h1&gt;Welcome to Level Up in Tech (LUIT)&lt;/h1&gt;’ &gt;&gt; index.html<br>echo ‘&lt;h3&gt;Blue Team… “Give me the LUIT… Give me the LUIT”&lt;/h3&gt;’ &gt;&gt; index.html<br>echo ‘&lt;/body&gt;’ &gt;&gt; index.html<br>echo ‘&lt;/html&gt;’ &gt;&gt; index.html</p><p>To exit, hit the <strong>Esc button</strong>. To save, hold <strong>Shift</strong> and type <strong>ZZ</strong>.</p><p>Now make the bash script executable.</p><p><strong>chmod +x world.sh</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/513/1*HguqIdpBw44SYW6PZWPwUA.png" /></figure><p>Now run the script</p><p><strong>./world.sh</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*9vPlk-MLTyX07xu_V7WMKw.png" /></figure><p>While this is running, you will be prompted.</p><p>Type <strong>y</strong> and hit enter</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/285/1*PWj-Um6Br3AtOHpcQmWm1Q.png" /></figure><h3>Step — 6 Close your instance</h3><p>To avoid unnecessary charges to your EC2, you need to terminate your instance. Navigate back to the EC2 screen. Then select the <strong>Instance state</strong> dropdown and select <strong>Terminate instance</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*esqulcTEZ8ltNrE6Jy-ZvA.png" /></figure><h3>Roadblocks and Hurdles</h3><ul><li>Creating the initial Bash script — This Bash script required more thought than my previous ones. I was unfamiliar with creating them, let alone having them install Apache and create a website. After reviewing some sites, I located an article on <a href="https://linuxcommand.org/lc3_wss0030.php"><strong>Linux Command</strong></a> for the best resource for code, as well as <a href="https://linuxcommand.org/">clear explanation on Bash and how to use it</a>. I located a Medium <a href="https://medium.com/@ertorrez/use-a-script-to-install-and-launch-an-apache-server-on-centos-8-6db6e4b81cbf">article</a> on how to install Apache via Bash.</li></ul><h3>References and resources utilized:</h3><ul><li>Use a Script to install and launch an Apache Server on CentOS 8 — <a href="https://medium.com/@ertorrez/use-a-script-to-install-and-launch-an-apache-server-on-centos-8-6db6e4b81cbf">https://medium.com/@ertorrez/use-a-script-to-install-and-launch-an-apache-server-on-centos-8-6db6e4b81cbf</a></li><li>Here Scripts — <a href="https://linuxcommand.org/lc3_wss0030.php">https://linuxcommand.org/lc3_wss0030.php</a></li><li>AWS Website — <a href="https://aws.amazon.com/">https://aws.amazon.com/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4c8180fc89" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Completing your 1st Pull/Push request with GitHub]]></title>
            <link>https://robert-iii-jones.medium.com/completing-your-1st-pull-push-request-with-github-8c873db3215c?source=rss-259e14d5cd9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c873db3215c</guid>
            <dc:creator><![CDATA[Robert Jones]]></dc:creator>
            <pubDate>Sun, 09 Oct 2022 04:11:12 GMT</pubDate>
            <atom:updated>2022-10-09T16:42:28.924Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*IKeCc1Em7ymhhxs4.jpg" /></figure><p>The following article will cover how to:</p><p>· Install and set up git</p><p>· For a repository from GitHub</p><p>· Clone a repository from GitHub</p><p>· Complete a <strong>push request</strong> to GitHub</p><h3>Requirements</h3><p>· A GitHub account</p><p>What is GitHub? You can think of GitHub as a mixture of cloud storage (Google Drive, OneDrive, DropBox) and social sharing. It allows you to view, share and collaborate with others in the sphere of coding.</p><h3>Step 1 — Install git</h3><p>The 1st step is to install Git onto your computer. Since I’m using CentOS 8, I will use the following command. In my case, Git is already installed.</p><p><strong>sudo yum -y install git</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*gegobL6JQfh4LKrRyZYZbg.png" /></figure><h3>Step 2 — Tell Git who you are</h3><p>To complete any type of commit, you need to let Git know who you are. Enter the following commands below. In the examples below I use a faux email and name.</p><p><strong>git config — global user.email </strong><a href="/service/mailto:you@example.com"><strong>you@example.com</strong></a></p><p><strong>git config — global user.email “sample_email@example.com”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*ITDBWmKxM2aJModD7yT6XA.png" /></figure><h3>Step 3 — Fork the repository</h3><p>The next step is to fork an <strong>existing</strong> repository. To do this you must sign into GitHub. After this, go to the repository that you want to fork. In my case I am using the test Spoon-Knife at <a href="https://github.com/octocat/Spoon-Knife"><strong>https://github.com/octocat/Spoon-Knife</strong></a>. Once you are there, select the drop down option under the Fork option and select <strong>Create a new fork</strong>. This will add Spoon-Knife to your GitHub.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*xy5QSem4sBMIYp-XxkqZKA.png" /></figure><h3>Step 4 — Clone the repository to your PC</h3><p>The next step is to clone the repository to your computer. Select the <strong>Code</strong> button in the upper left. Then select the copy button to copy the address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*5fbw0QHAKLCxWnby3irViw.png" /></figure><p>Navigate back to your terminal. You need to enter in the follow command with your web address</p><p><strong>git clone Web Address</strong></p><p>Example: git clone <a href="https://github.com/TEST_ACCOUNT/Spoon-Knife.git">https://github.com/TEST_ACCOUNT/Spoon-Knife.git</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*5wi4W_CSn-ICm_wZR7qJAg.png" /></figure><p>Now confirm that the repository Spoon-Knife has successfully copied to your PC.</p><p><strong>ll</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*JTx7hklQEcIov9JtAJE1lA.png" /></figure><h3>Step 5 — Make edits to the repository</h3><p>Navigate to the repository Spoon-Knife and look for the file that you want to edit.</p><p><strong>cd Spoon-Knife/</strong></p><p><strong>ll</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*WZpeDut__acQy5qq39UPdw.png" /></figure><p>We are going to edit the README.md using Vim.</p><p><strong>vim README.md</strong></p><p>Once you are in, hit “i” to to edit the document. Once you are done, hit the Escape button, hold shift and press “ZZ” to save and quit out of Vim.</p><p>Now confirm that Git sees the change</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*UrzPCv5IkIt8I_Hlxkc_aQ.png" /></figure><p><strong>git status</strong></p><p>Now wee need to add the changes.</p><p><strong>git add README.md</strong></p><h3>Step 6 — Commit the changes</h3><p>Now that we have confirmed Git see the change, we need to commit the changes.</p><p><strong>git commit -m “README.md updated”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*GSG2lkNEmMWJ4KalnEB4LA.png" /></figure><h3>Step 7 — Push the request</h3><p>Now its time to push the request.</p><p><strong>git push -u origin main</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*XMF9OUvy7NUDj57rHq5CWA.png" /></figure><p>After entering the command above, you will be prompted to enter your username and password (personal token).</p><p><strong>Username: </strong><a href="/service/mailto:sample_email@example.com"><strong>sample_email@example.com</strong></a></p><p><strong>Password: past your personal token [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]</strong></p><p>NOTE: if you don’t have one, you can generate one within GitHub by completing the following <a href="https://stackoverflow.com/questions/68775869/message-support-for-password-authentication-was-removed-please-use-a-personal"><strong>steps</strong></a>. Be sure to save it somewhere safe. You won’t be able to see it again!</p><h3>Step 8 — Complete with the Push request</h3><p>At this point, you can complete the Pull Request. You do this by navigating back to GitHub selecting the <strong>Pull request</strong> option towards the upper left.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oR8cbig2YGGt2SIMzC7DVA.png" /></figure><p>Then select <strong>New Pull Request</strong> button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*7Tb4_myHttgf_GYH6aBcNA.png" /></figure><p>You should see your update on the next screen.</p><p>Now select <strong>Create Pull Request</strong> button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vboIqV51lfjEy66nb7YBjg.png" /></figure><p>Then select <strong>Create pull request</strong> button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*T0SXAducTUR5w2IEdww4gA.png" /></figure><p>Afterward, you will receive this page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c8AGF3VvhSoHxr8b-gP8aA.png" /></figure><p>I hope this was helpful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c873db3215c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to set up your 1st Apache server]]></title>
            <link>https://robert-iii-jones.medium.com/how-to-set-up-your-1st-apache-server-8255877ae239?source=rss-259e14d5cd9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8255877ae239</guid>
            <dc:creator><![CDATA[Robert Jones]]></dc:creator>
            <pubDate>Mon, 03 Oct 2022 00:42:05 GMT</pubDate>
            <atom:updated>2022-10-03T00:44:16.476Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*KuPpWBM-4oOqqziu8gtZRg.png" /></figure><h3>What is Ubuntu</h3><p>Ubuntu is an free, open source operating system based on Linux. Linux provides many advantages over other operating systems and that is why it is used almost in every field nowadays.</p><h3>What is Apache?</h3><p>Apache is a web servers are used by over 67% of all web servers in the world. Apache web servers are easy to customize environments, they’re <strong>fast, reliable, and highly secure</strong>. This makes Apache web servers a common choice by best-in-class companies.</p><h3>Prerequisites</h3><p>To complete this walkthrough, you will need the following:</p><ol><li>Access to command line with admin privileges</li><li>Ubuntu 16.04 Xenial LTS Virtual server (I am using ACG Playground server)</li></ol><h3>Step 1: Connect to virtual server w/ updating server</h3><p>To connect to the Ubuntu server you will require 3 things:</p><ol><li>an active username</li><li>the public IP address</li><li>the password to sign in.</li></ol><p>In my example, I am using</p><ol><li>cloud_user</li><li>52.53.225.19</li><li>the temporary password assigned.</li></ol><p>You will enter the command in the following order:</p><p><strong>ssh username@[IP Address]</strong></p><p>My example: ssh cloud_user@52.53.225.19</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*Hds7QRgUac5SiiJjNAtAXA.png" /><figcaption>SSH into your server</figcaption></figure><p>If this is your 1st time, you will be prompted to update your password. Once you are in, update the server by using the following command. After, you will enter your password.</p><p><strong>sudo apt update</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*tLPIEczlzq-S6cJSDVc89A.png" /><figcaption>Update Ubuntu</figcaption></figure><h3>Step 2: Installing and Configuring Apache</h3><p>The next step is to install Apache. This may take some time. To install, please use the following:</p><p><strong>sudo apt-get install apache2</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*mYihvlAKQQFYJaVSpjMhLQ.png" /><figcaption>Install Apache</figcaption></figure><p>To confirm Apache has installed, ren the version command.</p><p><strong>apache2 -version</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/1*MWhSVWiQOmM7-o6uyWS7ew.png" /><figcaption>Check the version to confirm Apache installation</figcaption></figure><h3>Step 3: Test the webpage</h3><p>The next step is to visit the Apache server using the public IP. To do this, enter your public IP into the browser.</p><p><strong>52.53.225.19</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1HbGKJQlXtYsogTkkwfFzg.png" /><figcaption>Connect to the webpage using the public IP</figcaption></figure><p>I hope this was helpful</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8255877ae239" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>