<?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 Seth Carsten on Medium]]></title>
        <description><![CDATA[Stories by Seth Carsten on Medium]]></description>
        <link>https://medium.com/@seth-carsten?source=rss-0cf11f017441------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Dmu5hcm4_il5evWcCpdVUQ.jpeg</url>
            <title>Stories by Seth Carsten on Medium</title>
            <link>https://medium.com/@seth-carsten?source=rss-0cf11f017441------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 10:15:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@seth-carsten/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[Scripting Apache on EC2 Launch]]></title>
            <link>https://medium.com/@seth-carsten/scripting-apache-on-ec2-launch-c16f12ef4843?source=rss-0cf11f017441------2</link>
            <guid isPermaLink="false">https://medium.com/p/c16f12ef4843</guid>
            <category><![CDATA[apache]]></category>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[script]]></category>
            <category><![CDATA[launch]]></category>
            <category><![CDATA[transitions]]></category>
            <dc:creator><![CDATA[Seth Carsten]]></dc:creator>
            <pubDate>Sat, 29 Jun 2024 15:52:46 GMT</pubDate>
            <atom:updated>2024-06-29T15:52:46.926Z</atom:updated>
            <content:encoded><![CDATA[<p>A banking company has tasked me to prep an EC2 instance with Apache in order for them to start transitioning their banking platform to the cloud.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uMrzyGrHoBifAv09" /><figcaption>Photo by <a href="https://unsplash.com/@mr_vero?utm_source=medium&amp;utm_medium=referral">Irvan Smith</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Pre-Requisites</h3><ul><li>AWS EC2</li><li>Scripting</li><li>AMI Creation</li></ul><h3>Use Case</h3><p>A small banking company wishes to transition their website and baking platform to the cloud to improve scalability, reliability, and security. We are simply prepping the instance at this time, and will begin transitioning data to it at a later date. To improve efficiency, we will be using a script to install and enable Apache webserver on the instance and then create an image to be able to shorten this time even more.</p><h3>Reasons to move away from On-Premises hosting:</h3><h4>Scalability</h4><p>By moving to an EC2 instance, the bank can effortlessly adjust the instance’s size based on demand.</p><h4>Reliability</h4><ul><li>AWS provides the ability to add failsafes to keep the site/app running in multiple different zones despite server or zone issues, limiting downtime and ensuring customer connection.</li></ul><h4>Security</h4><ul><li>The security provided on the cloud from access control, encryptions, and network security safeguards against cyber threats and protects the customer’s data.</li></ul><h4>Cost Effective</h4><ul><li>Using another company’s hardware, software, and personnel for machine upkeep, will reduce the cost of have to manage these systems in-house and only having to pay for what you use.</li></ul><h4>Flexibility</h4><ul><li>Testing new features, launching additional instances, and experimenting with configurations becomes much easier and faster on the cloud. This is crucial to keeping up with evolving demands in their industry.</li></ul><p>Launch an EC2 Instance — Adding a script into the User Data field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zv6KK29Zy3a081lJ" /><figcaption>When launching the instance, you will navigate to the advanced setting and add the script into the User Data</figcaption></figure><p>Here is the script I used.</p><pre>#!/bin/bash<br><br># Update all packages<br>sudo yum update -y<br><br># Install Apache web server<br>sudo yum install httpd -y<br><br># Start Apache service<br>sudo systemctl start httpd<br><br># Enable Apache to start on boot<br>sudo systemctl enable httpd</pre><p>Line 1 — Shebang — Tells the system to run the code as Bash</p><p>Line 2 — Updates all the packages on the instance — This simply preps the instance for the Apahce install.</p><p>Line 3 — Installs the Apache web server.</p><p>Line 4 — Starts Apache</p><p>Line 5 — Enables the web server to allow hosting</p><p>After launching the instance and allowing it to run you can navigate to the public IP to test. — Be sure to allow it enough time to run the script and enable Apache or it will look like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*W8-GUiGvucvPyGBN" /></figure><p>Once the script it finished — this is what you should see.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*c1vaUuat8sNQT2t_" /></figure><p>Now let’s shorting this process by creating an AMI (Amazon Machine Image) using the instance we just created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wtwAZTmxbHXV_wQv" /></figure><p>By navigating to the instance, click on actions — then image and templates — then create image</p><p>By doing this, we will save this as a means to “Shortcut” our instance so we do not need to add the script in each time, it will simply automatically add and launch the web server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nDrRLpjvdUO6hcaE" /></figure><p>As you can see — we now have our own AMI that we can select to short cut this process in the future.</p><ul><li>Basic understanding of an Agile environment</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c16f12ef4843" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dynamic Website Hosting — Brewery Company]]></title>
            <link>https://medium.com/@seth-carsten/dynamic-website-hosting-brewery-company-f6f2e01f1157?source=rss-0cf11f017441------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6f2e01f1157</guid>
            <category><![CDATA[website]]></category>
            <category><![CDATA[teamwork]]></category>
            <category><![CDATA[collaboration]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[hosting]]></category>
            <dc:creator><![CDATA[Seth Carsten]]></dc:creator>
            <pubDate>Mon, 24 Jun 2024 13:19:43 GMT</pubDate>
            <atom:updated>2024-06-24T13:19:43.580Z</atom:updated>
            <content:encoded><![CDATA[<h3>Dynamic Website Hosting — Brewery Company</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tvXPMbTLgQNpyJ_C" /><figcaption>Photo by <a href="https://unsplash.com/@anniespratt?utm_source=medium&amp;utm_medium=referral">Annie Spratt</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Group Project Documentation — Dynamic Website</h3><p>For this team project, we were assigned a set of tasks (known as user stories) and organized into teams to simulate a real-world job scenario. The objective of this group project was to provide us with practical experience akin to working as a cloud engineer within an IT team.</p><h3>Pre-requisites</h3><ul><li>AWS basics</li><li>Linux fundamental knowledge</li><li>Basic SSH knowledge</li><li>Basic understanding of an Agile environment</li></ul><h3>Use Case:</h3><p>A renowned craft brewery known as Hop Haven Brewery, celebrated for its unique and frequently updated selection of artisanal beers, desires to develop a website to showcase its weekly evolving beer menu. The objective is to keep aficionados and casual drinkers alike informed and excited about the brewery’s latest offerings, including limited edition brews and seasonal favorites.</p><h4>Business Needs:</h4><ul><li><strong>Regularly Updated Content</strong>: The brewery’s beer list is dynamic, changing weekly to introduce new brews and retire others, necessitating an easy-to-update solution.</li><li><strong>Public Accessibility</strong>: The website should be accessible to everyone, ensuring that customers can view the current beer offerings at any time.</li><li><strong>High Reliability and Performance</strong>: The website must be reliable and performant, catering to high visitor traffic, especially during new beer release announcements.</li><li><strong>Cost-Effectiveness and Scalability</strong>: The solution must be affordable and scalable, aligning with the brewery’s budget and growth.</li></ul><h3>Phase 1. EC2 Setup &amp; Nginx installation</h3><p><strong><em>Cloud Engineer</em> </strong>— <a href="https://medium.com/@jsantoine24">Jeremy Smith</a></p><p>For my contribution to the project I was tasked with creating/deploying an EC2, security group configuration, and Nginx installation in the terminal using SSH Linux. This would be the first step of deploying a dynamic website since the EC2 is the server where the magic happens. Nothing is possible without the server itself.</p><ul><li>Log into the AWS console</li><li>Search “EC2” in the search bar</li><li>Click <strong>“Launch instances”</strong></li></ul><ol><li>Name the Instance.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NU5rKXgA2AMpna4t" /></figure><p>2. Select Amazon Linux</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L_cAt0oIWR93iZEn" /></figure><p>3. For the instance type select t2.micro.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*k3917IIDpsFCCVDS" /></figure><p>4. Create a security key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WLTWZtkQiSzaK4tc" /></figure><p>Make sure you select .pem</p><p>5. Allow SSH and HTTP traffic for CLI and public access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TvA_dc0Eukcekjy1" /></figure><h4>SSH connect into the instance</h4><ul><li><strong>Open your computer terminal or command prompt</strong></li></ul><ol><li>Change directories into your Downloads folder or wherever you have the .pem key stored after it’s creation.</li></ol><pre>cd Downloads</pre><p>2. Navigate to the connect tab in the AWS console for your specific ec2 instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sBYqZFbZDSVfagnJ" /></figure><p>Click connect and make sure it’s on the “SSH” tab.</p><p>3. Copy &amp; paste step #3 from the AWS Console into the terminal. Then press enter.</p><p>4. Then copy &amp; paste step “ssh” under Example from the AWS Console into the terminal. Then press enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_QoCIFRFvRFoulr4" /></figure><p>Copy and past step #3 and “ssh” under example into your terminal. (see below)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ImHZEzbc8RmrEQhO" /></figure><p>We are now connected to our EC2 instance.</p><h4>Installing Nginx in Linux</h4><p>What is Nginx?</p><p>Nginx is a high-performance web server and reverse proxy software widely used for serving web content efficiently. It’s known for its speed, scalability, and ability to handle high levels of concurrent connections. Additionally, Nginx functions as a load balancer and HTTP cache, making it a versatile tool for optimizing web server performance.</p><ol><li>Run these commands below:</li></ol><pre>sudo yum install nginx</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VMeqAhWky9_Du3lY" /></figure><ul><li>Result of installing nginx in terminal</li></ul><p>2. Execute the following commands to start and enable Nginx. Then verify that it is active and enabled as well.</p><p>Run these commands:</p><pre>sudo systemctl start nginx</pre><pre>sudo systemctl enable nginx</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Bn8pRlAXO6UQ-SpW" /></figure><p>What it looks like in the terminal</p><p>3. Verify it is active and enabled. (run command below)</p><pre>sudo systemctl status nginx</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pTJOa9hndc_rFUb-" /></figure><p>Nginx is active and enabled!</p><h3>Phase 2. S3 Bucket Setup</h3><p><strong><em>Cloud Engineer</em></strong> — <a href="https://medium.com/@michaeljohnson994">Michael Johnson</a></p><p><strong>AWS S3 and Nginx Website Deployment</strong></p><p>For my contribution to a recent website launch I was tasked with creating the S3 Bucket to store the website images and to upload an <em>index.html</em> file to our AWS EC2 Nginx server.</p><p><strong>Step 1 — Creating our Bucket:</strong></p><p>First step was to log into our AWS console and open AWS S3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4VOp8liF3KZe-SRh" /></figure><p>Next I clicked on “create bucket”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fTAL9OnOCok0as5x" /></figure><p>After pressing Create Bucket the first thing I did was name the bucket. For this I named it after our work group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eVmEwBODmgDhsDko" /></figure><p>Next I left it the default recommended settings until I got to public access settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*s2AOV48dhHw97ClP" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8YzBGusqkP3tcZ3b" /></figure><p>I changed the Public Access from “block all” to “allow all” to use for a website. We need our website to easily access the images. To ensure the security we will set a <strong>bucket policy</strong> under the security section later.</p><p>After this I left the remaining settings as recommended and saved our bucket.</p><p><strong>Step 2 — Uploading Images</strong></p><p>For this step under the Objects tab within our bucket I clicked <em>Upload </em>and <em>Add File.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kZEvAqcgniGQqJR6" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lNw9pEiBnp7Nt4IL" /></figure><p><strong>Step 3 — Add Bucket Policy</strong></p><p>Next I needed to ensure that our bucket had <strong><em>read only</em></strong> permissions. To do this I went to the permissions tab and scrolled down to <strong><em>Bucket Policy</em></strong> and clicked “Edit”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yng-t5QIIr_Szez2" /></figure><p>Click edit on the right-hand side</p><p>From here I used AWS built in JSON <strong><em>policy generator</em></strong> to create a read-only policy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*x5O6aqmHU-gGHASh" /></figure><p>The first step was to change from SQS Queue Policy to S3 Bucket Policy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8dfQe4940utS1W41" /></figure><p>AWS policy generator</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6F7hyP_n2Ky76DLT" /></figure><p>Then under Principal I entered an * which means apply to <strong>all</strong> in JSON language. Next under actions I selected “GetObject” which allows <strong><em>read-only</em></strong> access to bucket objects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*h_9leJVKkf6OhAof" /></figure><p>Finally I went back to grab the Bucket ARN from the permissions tab in the AWS console and added /* to the end of the policy to apply the permission to <strong>all</strong> objects in the bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zDMqb2_4D-E6gpL0" /></figure><p>Bucket ARN</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6svtq55t93NzHk-i" /></figure><p>Pasted Bucket ARN</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iTVRf7_nB5zVNjRR" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mWQuw8SELCtd7HYQ" /></figure><p>Make sure policy is ending with /* to include all items in the bucket</p><p>From there I clicked “Generate Policy” and copied the JSON document to our Bucket policy in the AWS console and saved it. Now our bucket has <strong><em>read-only</em></strong> access.</p><p><strong>Step 4 — Add Our index.html File to our EC2 Nginx Server</strong></p><p>Lastly, I SSH into our EC2 instance after adding the image URLs to our index.html file. For privacy I will not show the image URL links. To SSH I used our security key and typed <strong><em>cd /usr/share/nginx/html</em></strong> into my terminal to navigate to where Nginx’s default html files are stored.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KIWDgQ5EhgUBlZnv" /></figure><p>Logged into the EC2 instance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/0*OzM8M7gs7bIZX4FB" /></figure><p>Result after running <em>cd /usr/share/nginx/html in the terminal</em></p><p>I then used the command <strong><em>sudo nano index.html</em></strong> to write in our index.html file. I copied and edited the index.html file that had the S3 bucket image URLs on my local device to the terminal and saved it. After saving it I typed in our website’s IP address and saw our website successfully populated.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FNUIbZRyi7dk%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DNUIbZRyi7dk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FNUIbZRyi7dk%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c32e70f9452ffb382ad9e2203b40c9cf/href">https://medium.com/media/c32e70f9452ffb382ad9e2203b40c9cf/href</a></iframe><h3>Phase 3. Production Ready Environment Set-up</h3><p><strong><em>Cloud Engineer</em></strong> — <a href="https://medium.com/@seth-carsten">Seth Carsten</a></p><p>For my portion of the project I was tasked with getting our production ready environment set-up for the dynamic website. I created a naming convention that makes it easy to find what is related to what or whom it may pertain to. (<em>this section is very detailed for an easy step-by-step</em>)</p><p><strong>Tagging the S3 bucket &amp; EC2</strong></p><p>Quick run through adding tags to AWS Resources for S3 and EC2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tFsPF3SvftTDVEab" /></figure><ol><li>Open up AWS Console — navigate to <strong>EC2 Instance</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0HvqeQpdqo9_k7Fx" /></figure><p>2. Once there — open up your instances. As you can see we have one running (we can click there) or click <strong>instances</strong> on the left-hand side to open up all of them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*K3maHPDNWgYhGY-j" /></figure><p>Here is the EC2 instance</p><p>3. Scroll Down until you find the tabs for different options inside the instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UtkMn5obUt0H8fzJ" /></figure><p>Here are the tabs under the selected EC2 instance</p><p>4. Here you can see the options — Click on Tags.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jzOLVHA8Ffv_parU" /></figure><p>5. Select <strong><em>Manage tags</em></strong> so we can add.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*x4Ud8ZnugYVMbtAz" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yFI-c1x_BokzoCnn" /></figure><p>6. Enter a name to help you identify what project this belongs to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MtnsB6CFjldCj8f-" /></figure><p>7. Then we can add a value to show what this is for.</p><p>8. Now select save to add this tag to the instance.</p><p>9. Now lets tag the remaining resources — if you have a S3 or other services — its best to tag all resources related to each project.</p><p>10. Search for <strong>S3 </strong>in the search bar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qoXdhK1Bqf9JQpJZ" /></figure><p>Click buckets on the left-hand side first</p><p>11. Let’s scroll down and select the bucket used for this project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*e40DkULnBUG0r0UN" /></figure><p>12. Click on the bucket name to open it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-sYjkFCXtuqG3bLS" /></figure><p>13. Scroll down to view all our objects inside the bucket — We will click on each of the names and add a tag.</p><p>14. Once inside the object — Scroll down to find the tags box again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-EY5LXWg7kTfKnMx" /></figure><p>15. Once you find tags — You can click on edit to add them or remove them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bVL41Mnf_wRUzUr3" /></figure><p>16. Just like before — Click on add tag and input your name and value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Orrn0wK4rkXQGgTH" /></figure><p>17. As you can see we use the same name as it belongs to the same project — However the purpose of this can change so we will add a different value if so &gt; click save.</p><p>18. tag is edited — Now we can click close.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LGJ2QP3kbseTlJCN" /></figure><p>19. Navigate back to your bucket home.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AHR6xcIRKJb6sqmN" /></figure><p>Now repeat this exact process for the rest of the objects in the bucket — We will use the EXACT SAME Name and Value for all these as they are all doing the same thing.</p><h3>Phase 4. Cloudwatch Dashboard creation</h3><p><strong><em>Cloud Engineer</em></strong> — <a href="https://medium.com/@ahlamkhelifa66">Ahlam Seid</a></p><h4>A guide to setting up AWS CloudWatch Dashboard</h4><h4>Introduction</h4><p>Amazon CloudWatch monitors your Amazon Web Services (AWS) resources and the applications you run on AWS in real-time. You can use CloudWatch to collect and track metrics, which are variables you can measure for your resources and applications.</p><p>The CloudWatch home page automatically displays metrics about every AWS service you use.</p><p>Now let’s see how you can create a CloudWatch Dashboard!</p><ol><li>Search for CloudWatch on your AWS Console Home — then click <strong><em>create dashboard</em></strong>. Name the dashboard with the name you gave to your EC2 instance for integration.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/0*elMur2B3VX_jwcSz" /></figure><p>Naming the dashboard</p><p>2. Navigate in your AWS CloudWatch to configure the widgets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*r-1UL_vMq3_dWOJ5" /></figure><p>Widgets</p><p>For this project, I selected the <strong>Line Graph</strong> and <strong>Number widgets</strong>. Widgets are user interface elements that display the collected metrics in a visually understandable way to the user.</p><p><strong>The line widget</strong> shows individual viewing and time-based metrics, allowing you to visualize trends and identify fluctuations in your selected metrics.</p><p><strong>The number widget </strong>gives a quantifiable way to measure current resource utilization.</p><h4>Create Metrics</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*niUZfRZapXmMRTGr" /></figure><ol><li>Select your metrics type.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*9iGidT6UdAuH2xED" /></figure><p>Selected EC2</p><p>2. Select the Per-Instance Metrics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*nxJefji74wbkU0b2" /></figure><p>Name of the EC2 instance</p><p>The Per-Instance <strong>metrics</strong> I selected for this pod are:</p><ul><li>CPU Utilization</li><li>NetworkIn</li><li>NetworkOut</li><li>Combined NeworkIn &amp; NetworkOut</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*o9dzZn1jkTn3q2X7" /></figure><p>The first three images above show <em>line graph</em> metrics for the CPUUtilization, NetworkIn, and NetworkOut.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*bRD9HyZpGyrUFMpp" /></figure><p>Utilization currently at 0.26%</p><p>Here on the Dashboard, you will see I set the number percentage between 50 to 80% usage, to signal high CPU usage within this set range. I have also edited the color to change to red when it reaches high CPU usage to make it visually noticeable.</p><h3>Phase 5. Cloudwatch Alarms and Metrics</h3><p><strong><em>Cloud Engineer</em></strong> — <a href="https://medium.com/@judyljaramillo">Judy Jaramillo</a></p><p>In this brief tutorial, I’ll demonstrate how to configure alarms for important events, such as high CPU utilization, ensuring timely responses and optimal website performance.</p><p>Let’s get started!</p><ol><li>In your AWS console navigate to the <strong>CloudWatch</strong> services.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*igJGxVmvJwxbplS1" /></figure><p>In the<strong> <em>Alarms</em></strong> section in the navigation pane, choose “<strong><em>In Alarm</em></strong>,” and proceed to create the alarm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*LLKZUjtV2Jixe_lG" /></figure><p>2. Click on “<strong><em>Select Metric</em></strong>” and navigate to <strong>EC2 </strong>under the <strong>browse tab</strong>. Then, select “<strong><em>Per-Instance Metrics</em></strong>.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*16pMROdaIAZ5RRPz" /></figure><p>Click select metric</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/0*s3BSEX3p2sZRWlCR" /></figure><p>Browse tab</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/0*EUOycswlw9tqG7ja" /></figure><p>Per-Instance Metrics</p><p>3. Under the <strong>browse</strong> tab check the “<strong><em>CPUUtilizaltion</em></strong>” box, the click<strong> <em>select metric</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*sQ7YW4uhBCShzY7L" /></figure><p>Name of the EC2 instance checked</p><p>You should see a graph, make sure you keep the default settings then click next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*mi_ycqEsuQLFNR5s" /></figure><p>Graph with default settings</p><p>4. Choose “<strong><em>Static</em></strong>” as the threshold type, setting the trigger to “<strong><em>Greater than</em></strong>,” and the threshold value to “<strong>80</strong>.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*MZbLXQGhsFqlDHw5" /></figure><p>Condition configurations</p><p>5. Set the alarm state trigger to “<strong>In Alarm</strong>” for when it exceeds the threshold. Next, choose an existing SNS (Simple Notification Service) topic or create a new one for email alerts. In this case I had to create a new topic and add an email address for notifications. Click next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*4k1OiPfyD7C53mpA" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*3Bt--2W6r06F3woD" /></figure><p>6. Create an alarm name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*RyWZIKd8cqN0tLqw" /></figure><p>Similar name to the EC2 instance</p><p>7. Preview your alarm and then click create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*no317aDqnjct0ZyZ" /></figure><p>Ensure the alarm is configured correctly by navigating to the “<strong><em>Alarms</em></strong>” and “<strong>All Alarms</strong>” tabs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*EAKJ6ZaBLA2JJ1Ls" /></figure><p>Alarms</p><p><strong>TIP</strong>: I received a prompt to modify the alarm name. However, Amazon CloudWatch doesn’t allow direct re-naming of existing alarms. Instead, you can copy an alarm and assign it a new name.</p><p>Begin by choosing the alarm and accessing the actions drop-down menu. Select “<strong><em>Copy</em></strong>” and proceed. Maintain the default settings on the metrics page and click “<strong><em>Next</em></strong>.” Keep the default settings on the <strong>configure action</strong> page and proceed to the next<strong> </strong>step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*os0JncQxzCt57552" /></figure><p>Lastly, modify the name and click “<strong>Next</strong>”. Then create the alarm. Once completed, you’ll have two alarms. Select the previous one, then delete it by navigating to the <strong>actions</strong> drop-down menu and selecting “<strong><em>Delete</em></strong>.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*WtoSfXDvpEcSg09L" /></figure><p>Actions drop for deletion</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*x0N5V8I6KOlHQl6t" /></figure><p>Before deletion</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*0b3wdTLXhzOTVtKb" /></figure><p>After deletion</p><p>We’ve effectively set up a CloudWatch alarm, enhancing our system’s monitoring capabilities and ensuring prompt responses to potential issues thereby, upholding reliability and performance.</p><h3>Phase 6. Security Review</h3><p><strong><em>Cloud Engineer</em></strong> — <a href="https://medium.com/@travis_woodland">Travis Woodland</a></p><p><strong>Hop Haven Brewery’s — </strong>Security Overview</p><p>For my portion of the group project, I was tasked with conducting a security review of our S3 and EC2 configurations to ensure that only the necessary permissions are granted and that our setup follows AWS’s best practices.</p><h3>Goals</h3><ol><li><strong>Ensure that the EC2 security inbound rules allow http from anywhere 0.0.0.0/0 and SSH from the customer’s preferred cidr.</strong></li><li><strong>Display S3 bucket permissions meet best practices.</strong></li><li><strong>Ensure no sensitive information is present on the EC2 or the S3 bucket that is accessible to the public.</strong></li></ol><h3>Specifications</h3><p>Hop Haven Brewery’s Development Team confirmed and verified that the EC2 allowed internet traffic through port 80 and can be remotely reached through SSH. This was in order to meet S3 best practices and ensure that no sensitive information is accessible to the public. The Development team made sure that the data was encrypted at rest and in transit. They also verified that bucket policies were implemented and performed regular audits on the S3 buckets and EC2.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6f2e01f1157" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adding Tags to AWS Resources]]></title>
            <link>https://medium.com/@seth-carsten/adding-tags-to-aws-resources-c2a54b40f3be?source=rss-0cf11f017441------2</link>
            <guid isPermaLink="false">https://medium.com/p/c2a54b40f3be</guid>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[resources]]></category>
            <category><![CDATA[tag]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Seth Carsten]]></dc:creator>
            <pubDate>Thu, 20 Jun 2024 00:36:14 GMT</pubDate>
            <atom:updated>2024-06-20T00:36:14.721Z</atom:updated>
            <content:encoded><![CDATA[<p>Quick run through adding tags to AWS Resources for S3 and EC2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SnowCGZpFQV6taIw" /><figcaption>Photo by <a href="https://unsplash.com/@patrickperkins?utm_source=medium&amp;utm_medium=referral">Patrick Perkins</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*w6bjLcHuK95sl4ka" /><figcaption>Open up AWS Console — navigate to EC2 Instance</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TaBhUXC3dL5nhb3_" /><figcaption>Once in instance — Simply open up your instances — As you can see we have one running — we can also go there or use instances on the LH to open up all of them</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qEUvEcIoa6e0k9Ec" /><figcaption>Click on the instances Instance ID — This will bring you into the instance</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7jZnGRzpwRTb4-YE" /><figcaption>Scroll Down until you find the tabs for different options inside the instance</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*W-QU8Vwvphy7FHZX" /><figcaption>Here you can see the options — Click on Tags</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*76wsLpirRCYCNDCq" /><figcaption>Select Manage tags so we can add or remove them</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1K7FB3BXLE2gJPoY" /><figcaption>Here you can select Add New Tag</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8bZL5P3-RTXAh6ir" /><figcaption>Enter a name to help you identify what project this belongs to</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hO3-QR5_7BruZBcz" /><figcaption>Then we can add a value to show what this is for</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9vhdWbwgqPeKYzGu" /><figcaption>Now select save to add this tag to the instance</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nA-bTnADEYU4xalM" /><figcaption>Now lets tag the remaining resources — if you have a S3 or other services — its best to tag all resources related to each project</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8jUQEiwhBH6q7f4k" /><figcaption>Search for S3</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L5cAlrSk-OXSRHRN" /><figcaption>Lets scroll down and select the bucket used for this</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pO8BiFrZc_2kiz4K" /><figcaption>Click on the bucket name to open it</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xFpyB2GaTU07mVso" /><figcaption>Scroll down to view all our objects inside the bucket — We will click on each ones name and add a tag</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Pk0xt4R_-t1DBIOz" /><figcaption>Once inside the object — Scroll down to find the tags box again</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UOOnQpBGXLjpbVaB" /><figcaption>Once you find tags — You can click on edit to add them or remove them</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hDF-5brRbmAvWwdn" /><figcaption>Just like before — Click on add tag and input your name and value</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*C3QUbcfLCHQ0Keba" /><figcaption>As you can see we use the same name as it belongs to the same project — However the purpose of this changes so we will add a different value — click save</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fDqx4NxxwvSschW4" /><figcaption>Tag is edited — Now we can click close</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NdGfsmcFfIrTadXQ" /><figcaption>Navigate back to your bucket home</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TfowydCdCTfyw26z" /><figcaption>Now repeat this exact process for the rest of the objects in the bucket — We will use the EXACT SAME Name and Value for all these as they are all doing the same thing</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2a54b40f3be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adding Infrastructure Management for Banking Company]]></title>
            <link>https://medium.com/@seth-carsten/adding-infrastructure-management-for-banking-company-a84539b749ba?source=rss-0cf11f017441------2</link>
            <guid isPermaLink="false">https://medium.com/p/a84539b749ba</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[infrastructure]]></category>
            <category><![CDATA[permission]]></category>
            <category><![CDATA[management]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Seth Carsten]]></dc:creator>
            <pubDate>Sun, 09 Jun 2024 17:41:07 GMT</pubDate>
            <atom:updated>2024-06-09T17:41:07.809Z</atom:updated>
            <content:encoded><![CDATA[<p>Quick run through on adding groups and users to a company’s management team.</p><p>As before… Review launching EC2 Instance — Check that out here: <a href="https://rb.gy/ttw124">https://rb.gy/ttw124</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qGwIh6XIrjCOGADi" /><figcaption>Photo by <a href="https://unsplash.com/@flyd2069?utm_source=medium&amp;utm_medium=referral">FlyD</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iryI9VBlwf6OeIyR8z6QjQ.jpeg" /><figcaption>Using command below, “sudo” grants us root permissions for this command. Create the directories for each group you plan to create</figcaption></figure><pre>sudo mkdir Development Operations Analytics</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KVlJ1NdJ2w6kyz5WhZQMaw.jpeg" /><figcaption>Just showing the directories that we created</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6MPz5Z5KPUS_I9ZZHVAUug.jpeg" /><figcaption>Let’s create some files for each directory. I used the code below to create them all at once. *Notice my spelling error on the first attempt. HA! *Facepalm* Luckily… using the up arrow you can reload that command and edit it. Second command will help us view the files create in each Directory (folder)</figcaption></figure><pre>sudo touch Analytics/TestFile1 Analytics/TestFile2 Analytics/TestFile3 Development/TestFile1 Development/TestFile2 Development/TestFile3 Operations/TestFile1 Operations/TestFile2 Operations/TestFile3</pre><pre>ls Analytics</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8vbw21l_vCQ7lRyeLgikuQ.jpeg" /><figcaption>Now we will create groups for our users — As shown above you have to do one at a time. IF you will to use a capitalized letter in the name (this is irregular and I do it for demonstration purposes only) You MUST include the — allow-bad-names option. See code below</figcaption></figure><pre>sudo addgroup --allow-bad-names Developers</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j-mG2JB_j7VKFAeIZ1RH7g.jpeg" /><figcaption>We can view the groups we just created by using the cat command below. As you can see, our groups are the only ones with a capalized letter. All groups before the bottom 3 were created automatically during the instance creation</figcaption></figure><pre>cat /etc/group</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xftWIKjo-RrAIsC4N0rZdQ.jpeg" /><figcaption>Next is to change the ownership of the Directories we made. 1st command will show us the directories and how they are still owner by root root. 2nd — 4th is change of ownership. 5th shows the updated owner. *Note the orientation of the group vs the directory to make sure your outcome works. Be sure to add “:” so it recognized the group.</figcaption></figure><pre>ls -l</pre><pre>sudo chown :Developers Development</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wSw62EqDNgND9JP6Ogh5fQ.jpeg" /><figcaption>Time to change the group permissions — Using code below, we can modify which permissions the groups have to allow only each to access their perspective directories.</figcaption></figure><pre>sudo chmod g-rx Analytics</pre><p>To explain Permissions a little further… looking at the above code:</p><p>“g-rx” g stands for the Group. We can also have U— for user, as well as O — for Others or everyone else.</p><p>“-” can be thought of as subtract or minus. and the “rx” is for each permission. We can also use “+” to Add the permission.</p><p>“rx” stands for “Read” and “Execute”. We also can have “Write” show as “W” RWX — Read, Write, Execute.</p><p>So to take away permissions from the user — “u-rwx” would be used. To add them back — “u+rwx”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bWp5yL4uL_UCAHvdJgrMhg.jpeg" /><figcaption>Here we have taken all permissions from the group and others and only the user “root” now has access. We will change that to ONLY allow the groups access.</figcaption></figure><pre>sudo chmod g+rwx Analytics<br>sudo chmod g+rwx Development<br>sudo chmod g+rwx Operations<br>sudo chmod u-rwx Analytics<br>sudo chmod u-rwx Development<br>sudo chmod u-rwx Operations</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RC_8cf52G1-tQ0p5UvXxTA.jpeg" /><figcaption>Now let’s create some users for these groups. Using code below — Enter the users code name and it will begin creating. You will be prompted to add a password *YOU MUST TRUST YOUR TYPING* As you cannot view what you type, it will not show you. So trust yourself, and don’t forget what you set for a password! “jwaller” is the name of the user so you would sub this out for your own users name.</figcaption></figure><pre>sudo adduser jwaller</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G-Csr6NwxtjPdvNRMuC1Rg.jpeg" /><figcaption>Creating the additional users.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_CpRBLDIVaM--aKPZJCvOw.jpeg" /><figcaption>Now we need to make sure these users are apart of the groups we set earlier. Using the code below we can change each users assigned group and they will now only be allowed access to the directories asigned to that group. — Again, “Operations” is the group name, “bdorsey” is the user name so these will change as you input your own.</figcaption></figure><pre>sudo usermod -aG Operations bdorsey</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NycBaDPUr3yM6mb5q3d60A.jpeg" /><figcaption>Testing the permissions — If we use the code below to sign into one of those users (you will need the password you set up earlier) — We can then test to make sure we can access ONLY our perspective directory. As you can see — We assigned “jwaller” to the Development Group — When we try to view any other groups directory, we are denied permission.</figcaption></figure><pre>su jwaller</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a84539b749ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prepping and Launching Apache Web Server]]></title>
            <link>https://medium.com/@seth-carsten/prepping-and-launching-apache-web-server-d82541eab019?source=rss-0cf11f017441------2</link>
            <guid isPermaLink="false">https://medium.com/p/d82541eab019</guid>
            <dc:creator><![CDATA[Seth Carsten]]></dc:creator>
            <pubDate>Mon, 03 Jun 2024 02:16:27 GMT</pubDate>
            <atom:updated>2024-06-03T02:16:27.127Z</atom:updated>
            <content:encoded><![CDATA[<p>Brief run-through on launching a Web Server using Apache.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AbWu3KfbSSP5P5Tn" /><figcaption>Photo by <a href="https://unsplash.com/@kobuagency?utm_source=medium&amp;utm_medium=referral">KOBU Agency</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>For starters… if you haven’t reviewed my earlier post on launch EC2 Instance — Check that out here: <a href="https://rb.gy/ttw124">https://rb.gy/ttw124</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O6V8mcv2qcuGyeSjnpq-jQ.jpeg" /><figcaption>Let’s start off by updating out packages — A quick search will find us the answers.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*3hSc9DuCllUXhxrd4Q1hOg.jpeg" /><figcaption>Let’s copy this and bring it over to our CLI.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QDzT5mzwG1Q9aAEGC9y7SA.jpeg" /><figcaption>Looks like we are all updated</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*nbKCVF9thANJTWvBqyUtLg.jpeg" /><figcaption>Now to install Apache. We COULD simply run the step 4 as we know we are up to date, but we will switch to the Root user (using the Admin code “Sudo” and “SU” to “Switch User”). Then we can double check the update and then run the install and enable.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qc0IVsDeCBtn9evw6JkGVA.jpeg" /><figcaption>As mentioned — Switched user to Root | Ran the update again | Then ran the Install and Launch</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dkbO2xSiVyr60F6UGfuc_g.jpeg" /><figcaption>No errors — We should be set to move on and enable</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A_O3vnMD2oc8E98YYJM8kQ.jpeg" /><figcaption>Start the system with the code above — Then Enable</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oxI38cWUfA8PhKRWVStCEg.jpeg" /><figcaption>Now we can view the site via the Public IP address — Shows here the site is up and running and ready for our site code to be uploaded.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d82541eab019" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SSH (Secure Shell) into AWS EC2 on Windows]]></title>
            <link>https://medium.com/@seth-carsten/ssh-secure-shell-into-aws-ec2-on-windows-0bde820bf2b4?source=rss-0cf11f017441------2</link>
            <guid isPermaLink="false">https://medium.com/p/0bde820bf2b4</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[ssh]]></category>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[powershell]]></category>
            <category><![CDATA[ec2]]></category>
            <dc:creator><![CDATA[Seth Carsten]]></dc:creator>
            <pubDate>Sun, 26 May 2024 09:18:59 GMT</pubDate>
            <atom:updated>2024-05-26T09:18:59.560Z</atom:updated>
            <content:encoded><![CDATA[<p>Here I’ll show how to create a EC2 Instance in AWS and use PowerShell to create SSH into the instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4iS3YIt3qHzUeYVV" /><figcaption>Photo by <a href="https://unsplash.com/@pankajpatel?utm_source=medium&amp;utm_medium=referral">Pankaj Patel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MUHOqtNIZBShB7DAn4UfPw.jpeg" /><figcaption>First step — Log into your AWS Console and Search for EC2 — Select and launch the service</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vK68NInE-grYbBVwh6RPUg.jpeg" /><figcaption>Once in the EC2 Dashboard — Let’s select “Launch instance”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qXMVOuLK2EuNT8X27SmWQg.jpeg" /><figcaption>Select a name — Scroll down to OS images</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DpYQ7dGiFNY7RVrTxFdL5g.jpeg" /><figcaption>We will keep the default for now — Will keep to Free tier eligible</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BA8SVjL0XqFPb775bHucZA.jpeg" /><figcaption>The drop down list shows multiple options — We will keep with the default — select and scroll down to instance type</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lOAZhbtIl0FW56HjWPXlLg.jpeg" /><figcaption>Select the drop down list here for options on the instance type</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LtQf-27nu6t5RdiU0EoFOg.jpeg" /><figcaption>Again we will stick with the default — Free Tier</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U9cOGs8EugMWCnHP1QXMOA.jpeg" /><figcaption>Let’s move on to Key Pair — We can use a premade pair from prior or create new. This is the ONLY time you will be able to download the key, so you MUST keep it saved somewhere if you plan to reuse old keys.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-0Y7vUYg31hfNZgBj70Bug.jpeg" /><figcaption>As you can see, you can simply select an old one. For this case though, We will create a new key. Simply click on Create New Key Pair</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FVnxLrngFuMHvrpLBQ9ZVg.jpeg" /><figcaption>You’ll have to select a name for this as well — chose wisely as the more complicated the name, the more difficult it CAN make it</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-TV0QcgPbMAo5gsa7aJwjw.jpeg" /><figcaption>Many people say you cannot use spaces, I’ll show you that you CAN in-fact use spaces, however there is a slight change you will need to do later to be able to use them — Select Create Key Pair</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6qh3F6tRuNMOAZxEc88-6g.jpeg" /><figcaption>Let’s scroll down the Network Settings</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c3F8933gWoPxWIKxE7c3yA.jpeg" /><figcaption>We can use an existing security group if we have one that will work for our instance</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WuQ8NqEB5Q72flMQyAGIfg.jpeg" /><figcaption>There are a few we can use, however for the sake of this, We will go back to “Create Security Group”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ctepFDOPXj1o7HD94bknVA.jpeg" /><figcaption>Allow SSH is default checked, we will want to keep that — Also, select allow from HTTP. This is what is going to set security on accessing our instance. We want to be able to access it via web search as well as SSH.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6WGp1lmmY2E2rHfXLhQsQQ.jpeg" /><figcaption>We can Select Edit for more advanced options if needed</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w-WC2N09lFZcuS255kAFKg.jpeg" /><figcaption>As you can see… The ports are automatic for SSH and HHTP — These are the only ports these Type are allowed to use.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YX-TVgkofTpgrHkGcmuGyQ.jpeg" /><figcaption>Normally… we would change the source type to use a specify IP address (Ours) — However, for this we will keep it at anywhere so we do not have to go back in and edit the IP address later on.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XdBAk23BLMfZw12OtjMgfg.jpeg" /><figcaption>Let’s rename the security group to match our project and then scroll down to storage.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3xbwhyrskLhvu96DrleAUw.jpeg" /><figcaption>We will note the storage but we do not need to change anything. Depending on what you are using the instance for we may need to go bigger, but for this we will keep it at default.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yxPlxCqQI6MUZBDFU3fWew.jpeg" /><figcaption>Keep Scrolling into the Advanced details — We will keep all of this at the default for now — Go all the way to the bottom.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vxr_LjRqqmQy__n3jv6clg.jpeg" /><figcaption>Here in the User Data area is where we will paste any code we want to be displayed on on the instance.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*Mub0k-TmOEAk4Jk3KohDqg.jpeg" /><figcaption>I have a code from a previous project that I will copy and throw in here — Don’t fully understand this part?? Me neither… but let’s just trust the process for now and hope it works as it should.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NLiuIregtZ61J9zG-HCNsw.jpeg" /><figcaption>Paste the code in the box and select “Launch Instance”</figcaption></figure><p>It will take some time for the instance to launch and become operational but it’s usually only a few seconds to a minute.</p><p>Let’s move on to the next Step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uf_TJg_vFMs8op6OoIvnXQ.jpeg" /><figcaption>Let’s navigate to our instances and select the instance we are working with</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yLxAqn6hOE6NW-TOrUZTlQ.jpeg" /><figcaption>Let’s copy the IP address and quickly test the site</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ypWrQe6sdwTWoVK8ka-uvQ.jpeg" /><figcaption>If we paste the IP Address in the URL bar in our browser and search, we can see our code displaying a message.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fObVyiISl5L9oENfRQFHEA.jpeg" /><figcaption>Let’s go back to our instances and click on our Instance ID</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qaI9nmUjcAEyc5B_Kp9Q1A.jpeg" /><figcaption>Let’s go ahead and click on connect to access our procedures for SSH</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rNCixLryh5I4fQXCaJk-lw.jpeg" /><figcaption>Move to the SSH Tab</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EF4IqGOFWT1PwAoXyw5YWw.jpeg" /><figcaption>Here are our instructions to SSH into the Instance — Step 1 is open SSH Client (on Windows this is called PowerShell)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xBrH82U-xkCiUdaXZFeVuA.jpeg" /><figcaption>Let’s go ahead and open up PowerShell — Simply search for PowerShell in your search bar on your taskbar</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mQhhQvI1NjOT1Yip0ghh1g.jpeg" /><figcaption>Here’s where it should start off at</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1J-7AA4Y6_2tMCMb1dIM5A.jpeg" /><figcaption>Let’s make sure SSH is enabled in PowerShell for us to use it — type “ssh” in the line shown hit enter</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7hCKzi-TQrBd_SRhEgAjbw.jpeg" /><figcaption>Returned info shows it is active — If it was not, PowerShell would not recognize the command and would throw an error</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k1vBBShLkifil7dNnJAEnQ.jpeg" /><figcaption>As you can see… we are currently in the user folder SethC</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P4XOtbwBKmUwjACA6YbF1g.jpeg" /><figcaption>Look Familiar??</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-qLp5frmP7xxd_dbQZoE0g.jpeg" /><figcaption>As you can see… We are simply just inside our computers files — Just looking at it in a different way</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dxm7OLcDAVn-Dn86QA-lCg.jpeg" /><figcaption>Let’s move back to PowerShell. Now to navigate into our folders there are a few different ways to do it. This demonstration, I’ll use the command “cd” (Change Directory). This allows us to pick a file that is INSIDE of the current location we are at and open it.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TVQuQbdRkPyS4EaVxnhBRg.jpeg" /><figcaption>As you can see — After hitting enter… we are now showing we are in the documents folder. Let’s keep going into our “Projects” folder.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Erd3q-lU7hSwQ0BTyuLW8g.jpeg" /><figcaption>No into our Project 2 folder — As you can see… that didn’t work this time. Remember earlier when I mentioned using spaces?? PowerShell thinks the space is ending a command or prompt. We will have to specify that we are referring to a full and EXACT name by using quotations or apostrophes</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uD2JqYMcU_dfxoUBLvB6IA.jpeg" /><figcaption>See how it turned blue?? We are now telling PowerShell that this is the actual name of the file we want to open — Press enter to enter into that folder</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EGGFdsFSo7iKptEdaqBkkg.jpeg" /><figcaption>If we need to check to see what is in the folder we are in — We can use the command “dir” — This is a shortcut for the actual command Get-ChildItem. I have no idea how, or why “dir” is short for “Get-ChildItem”. The “Get” portion is telling PowerShell to retrieve or “go get” something. ChildItem… don’t ask me what its supposed to mean… I didn’t name it. But PowerShell knows it as the code for the content of a folder.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6_6FmnESDE0WMJvkluMFkQ.jpeg" /><figcaption>As seen above — our Luit Project 2 key.pem File is the ONLY thing in this folder.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F48xvjc_EBzAtSy_OmC2dQ.png" /><figcaption>As you can see in our folders — This is exactly what is shown. (Ignore the additional folder I have crossed out, I edited this afterwards to help me with organization)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XKVRmEjoVAkfdA2i3ROzpA.jpeg" /><figcaption>Let’s go back to our Instance ID and grab our command for the SSH</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fO7zqFJMXtH-qt951YbqYw.jpeg" /><figcaption>Select Connect again</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rNCixLryh5I4fQXCaJk-lw.jpeg" /><figcaption>Back to SSH Client</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HLaJTBr1hWUA_z3AjbB-jw.jpeg" /><figcaption>Here is the code we need to use</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7TcWb77eW2qJ30prX5vVmA.jpeg" /><figcaption>Don’t worry about step 3 — this is not for Windows users.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WqHRJSPRdaUlGiwjqbfqOQ.jpeg" /><figcaption>Step for is a little redundant for what we are doing — It’s not the entire code we need. The Public DNS line only shows where it’s at. We first need to add the code to use the security key (essentially unlocks access to the instance)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I5yF_Kj_gT8Gh_Rnxyi0ww.jpeg" /><figcaption>Let’s Copy this entire code and Move back over to PowerShell</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GKTfd_Vc76IV0LRe1ueLmg.jpeg" /><figcaption>Paste the code and hit enter</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6dqnFnJzYR4767XnuKzKsw.jpeg" /><figcaption>Notice how the key name is in quotations. This is only necessary if there are spaces in it. Since we copied the code we did not need to worry about it. However, had we typed the code out ourselves, we would need to make sure that the name is reflected as it is here.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KpQWubKY3lQGnRlpmQPbCQ.jpeg" /><figcaption>Since we have never connected to this before, we will have to confirm — Simply type yes and hit enter.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lvpjmw6DnZZgTrNdGWhxmg.jpeg" /><figcaption>Here’s our yes “command”. As you can see, it shows a message showing our instance type image. Notice how our location is no longer in PS C:\ Users… But now in the EC2-User @ the IP address of our EC2 instance.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sZPygXKcz733Fpd4c5HUWQ.jpeg" /><figcaption>Just to Confirm — we can run the “whoami” Command to verify our location.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C0nowReozOYr9u-_2L3OeQ.jpeg" /><figcaption>No errors, and it returns location of EC2-User. We are good!</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0bde820bf2b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Static Website on AWS S3]]></title>
            <link>https://medium.com/@seth-carsten/static-website-on-aws-s3-1fb1490d9dc3?source=rss-0cf11f017441------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fb1490d9dc3</guid>
            <category><![CDATA[aws-s3]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[static-site]]></category>
            <category><![CDATA[mistakes]]></category>
            <dc:creator><![CDATA[Seth Carsten]]></dc:creator>
            <pubDate>Tue, 21 May 2024 03:23:33 GMT</pubDate>
            <atom:updated>2024-05-21T03:23:33.156Z</atom:updated>
            <content:encoded><![CDATA[<p>From the eyes of a complete beginner…</p><p>This took me 4 hours to do… 45 mins of set up.. 3 hours of troubleshooting… and 15 mins of banging my head on a wall.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*24pl7bYoBO2Msd5R" /><figcaption>Photo by <a href="https://unsplash.com/@cgower?utm_source=medium&amp;utm_medium=referral">Christopher Gower</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kn4gbGqbHHwkI3qlng_Ymg.jpeg" /><figcaption>Once Logged into the AWS Console → Search for S3 Service and select when it comes up.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1pszwiUoFNAH6ufRVffSlg.jpeg" /><figcaption>Select “Create Bucket”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BMXpqxzAhWtdd5VFfo6qTg.jpeg" /><figcaption>Once here, make sure you are in the correct region → Then Choose a name</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1gc0hX8Bk2fiKgW2at2Ohw.jpeg" /><figcaption>Careful… Names can be picky on how they are formatted.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qyO4u6HCdEennqBLO22gUw.jpeg" /><figcaption>Keep all the other default setting and scroll to the bottom → Select “Create Bucket”</figcaption></figure><p>There.. Step one — Complete!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lj1_KEtvsS-FLK-AyX6cRQ.jpeg" /><figcaption>You’ll be directed back to the S3 Home page. Let’s click on our buckets.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0KCAVEUIVITjdDfQEjlIZw.jpeg" /><figcaption>Select the bucket you just created.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0ppJ97mSUzTW5diVyn4yqg.jpeg" /><figcaption>Select the properties tab</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OsoZ9KMnTBKyerSD0f_yLA.jpeg" /><figcaption>Scroll all the way to the bottom — We will leave all the rest of this alone for now</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q6-zwnl96kz5ptgHb3wqCg.jpeg" /><figcaption>Find Static website hosting → Select Edit</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZDK3CygVW6zOFn6ocB3E5A.jpeg" /><figcaption>Select Enable → Then save changes</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OsoZ9KMnTBKyerSD0f_yLA.jpeg" /><figcaption>You’ll be directed back to the properties tab → Scroll down again</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CtxuaaaAjrKj0-1Q7YSbCw.jpeg" /><figcaption>Let’s find out website code and copy it</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QlQaDRUFV9UcmWC1gtSftQ.jpeg" /><figcaption>Then find our redirection rules and paste it in here — And hope this is correct.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dJBxiEXOtUBiTKX-N-0Swg.jpeg" /><figcaption>Let’s click save and hope this message is unimporant…</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KGcFz9grU9n-QitqfaNpXw.jpeg" /><figcaption>Apparently we need a name → Choose wisely!</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fFpR_-zpf1LvtE9nCZHRFA.jpeg" /><figcaption>Hmm.. well, apparently that code WAS important…</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-yyT1ZsI7Cc6rreM22Gifw.jpeg" /><figcaption>Let’s Google it and see what comes up…</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g2OEUGuHii1kBYZnk-cSIg.jpeg" /><figcaption>That wasn’t much help… Let’s try this one maybe..</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f2M4rQd2WzEVO_yR7Vn2hg.jpeg" /><figcaption>Hmm… not much help either.. Let’s delete this and move on. Will Circle back to this.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yb5lGjMqVJ7aU0SGQNFFMw.jpeg" /><figcaption>Saved!! Let’s scroll back down to the bottom again…</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lKbhwQFplWQO9oaGklCKjA.jpeg" /><figcaption>We now have a website Endpoint — Let’s copy this URL quick…</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T-cxBKTOWQsx3zb3ckq7cQ.jpeg" /><figcaption>I always like to make sure my Clipboard is active → Window key + V will bring up the clipboard — Now let’s seach that URL.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V9RMQ0iVBxQeTqrXUveGRw.jpeg" /><figcaption>Well there’s A site that comes up… Let’s see if we can figure out how to gain Access.</figcaption></figure><p>I think that’s good for Step 2 — Let’s see what Step 3 entails…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EQS5mrFutDDvapdY7g_ySA.jpeg" /><figcaption>Let’s go back to the console, inside our bucket — Scroll to the top and select Permissions.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iv6DLVwG7uOjneX04SvMNA.jpeg" /><figcaption>Let’s go ahead and edit our public access</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6TT3Y5WON-uyfPP4TBcfiA.jpeg" /><figcaption>Make sure ALL of these are unchecked and then save the settings</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UlfCF5KN7Wp2Y28CB69KMQ.jpeg" /><figcaption>Type EXACTLY how it shows… Everything in this industry is very precise. It is case sensitive.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EQAB-mcG0c1estwTL6eZBA.jpeg" /><figcaption>Let’s test that URL again from earlier… Hmm… Still no go. Let’s keep moving and circle back.</figcaption></figure><p>Well that’s it for step 3 — Let’s keep moving to the next step, we’ll worry about troubleshooting later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9dE463JAqxWYP176QKqjhA.jpeg" /><figcaption>Back in the permissions tab in our bucket… Let’s edit the bucket policy</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dqYDLiLD3FnEO8o6vz_Irw.jpeg" /><figcaption>Let’s copy our code again…</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7qd1k3xlPR93HOrYRVKbBw.jpeg" /><figcaption>Let’s paste it in here and see what happens…</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MHxEJTkU3QW59Fmo_RuoEg.jpeg" /><figcaption>Hmm… still not happy…</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dGquZTFvy5eh3UYu4Ms0yQ.jpeg" /><figcaption>Hmm… It appears that our code is JSON…</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4kar5XAmgPLLs7n1Z9GXJw.jpeg" /><figcaption>Looks like I was able to find a code that would allow our site to have full access.. Let’s copy this one and paste it in that policy.</figcaption></figure><pre>{<br>    &quot;Version&quot;: &quot;2012-10-17&quot;,<br>    &quot;Statement&quot;: [<br>        {<br>            &quot;Sid&quot;: &quot;PublicReadGetObject&quot;,<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Principal&quot;: &quot;*&quot;,<br>            &quot;Action&quot;: [<br>                &quot;s3:GetObject&quot;<br>            ],<br>            &quot;Resource&quot;: [<br>                &quot;arn:aws:s3:::Bucket-Name/*&quot;<br>            ]<br>        }<br>    ]<br>}</pre><p>Here’s the code I used ^^</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HjBC4fOLGL7B9IObKWuTAA.jpeg" /><figcaption>Paste it in and click save — Let’s see what happens.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q-WL3sjq1cBAYcZBahaTbw.jpeg" /><figcaption>Whoops… Looks like we forgot to name it the same as OUR bucket</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HvUm57AnbQs6EzgF3QY8jw.jpeg" /><figcaption>Let’s copy our bucket name and paste it in place of the generic one.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LzjEx8jr1Nh6igmGfBfISg.jpeg" /><figcaption>Let’s try this again…</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tEeIloTMyqu3GWYmvQLSKQ.jpeg" /><figcaption>It saved this time! — Let’s try that URL one more time and see if we have some luck.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*boxgyrUYdeux1waKDqz_NQ.jpeg" /><figcaption>STILL NO ACCESS… But.. Look closer — We have made SOME progress. Let’s keep moving and see what else we can make happen.</figcaption></figure><p>Step 5 — Uploading the Index HTML File</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VvM432rBttRS-EBBxHvGSA.jpeg" /><figcaption>Let’s go back into our bucket again — This time let’s go to the Objects tab → Click on Upload (Sorry, I cut off the screenshot)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lyktb3Qkz5O7vqtmpns3Gw.jpeg" /><figcaption>Remember that website code we kept trying to place in the wrong spots?? Let’s try uploading it here instead…</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NNINYg3tF5M_cSskH67XkA.jpeg" /><figcaption>I drag and dropped mine in — My code was provided to me and I saved it on a local drive — we don&#39;t make our own “yet”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l9lYziObbwtYDuXTtyHydQ.jpeg" /><figcaption>Looks like we finally found the correct place for our website code —This is basically a weird jigsaw puzzle … The pieces will fit somewhere. Now.. Let’s try our URL again!</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sxEySG5cIdEaBFv5lUJMTw.jpeg" /><figcaption>Hmm… Still no go… Time for some troubleshooting now!</figcaption></figure><p>Step 6 — Troubleshooting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eSRUvN63IMuOauDXj5JXzA.jpeg" /><figcaption>Let’s start with a simple Google search… Hmm… Our Key does not exist… But.. What does that ACTUALLY mean?</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*27aiWCJgoTSLrVZVbvXnag.jpeg" /><figcaption>I’m a visual learner… Let’s see if I can find out what I did wrong…</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dsg9E-u_f3HEs3Zl97dXGA.jpeg" /><figcaption>According to a video, we should be able to view the website via an object URL… Let’s find it. Go back into our console, and select our S3 Bucket.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HZifndrFYgN7jGzSZMaC8g.jpeg" /><figcaption>Let’s click on our objects and open our Website Code.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EX0zzube49RK6uzCKWuKbg.jpeg" /><figcaption>Oh Look. Another URL. — Let’s try and search it.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HlMSfP3kCFtmAMpStz6Z6A.jpeg" /><figcaption>Hmm… Looks like the objuect URL works…</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*nC_ZaWeyCUlbSdKcgxIXog.jpeg" /><figcaption>Unfortunately this is not what we are looking for..</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bAiyD7vmsYNN_K-SO1relQ.jpeg" /><figcaption>Let’s try some more searching… See what we can find out…</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dq2ckxbzompChmJijVIuPQ.jpeg" /><figcaption>Hmm… This is curious… Let’s see if we can elaborate with ChatGPT.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tHT4rQc8-AUn9cWmVH91Nw.jpeg" /><figcaption>Let’s double check our index document (Website Code)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XXcpfcN2MPzBbUi6You_SA.jpeg" /><figcaption>Maybe this name has to match our Website Code name?? — Let’s try it..</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FZbP-TZfGQ4hzo51QEjWXA.jpeg" /><figcaption>Let’s make sure the name matches our Website Code name EXACTLY — Click save and see what happens.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zmP65Y5OsioXTD65gnY5Jw.jpeg" /><figcaption>Let’s search this URL and test this again to see what happens.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5uaJ4_jR9nXhMxs4FFGxVw.jpeg" /><figcaption>HOLY S*** — Looks like it worked.</figcaption></figure><p>DONE.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fb1490d9dc3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>