<?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 Roland Adams on Medium]]></title>
        <description><![CDATA[Stories by Roland Adams on Medium]]></description>
        <link>https://medium.com/@roland.c.adams?source=rss-7d028a7e6a79------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*2Im3llDCsIJz0-jL74dbHw.jpeg</url>
            <title>Stories by Roland Adams on Medium</title>
            <link>https://medium.com/@roland.c.adams?source=rss-7d028a7e6a79------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 08:27:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@roland.c.adams/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[How I Built an In-Browser Security Shell (Without Being a Developer)]]></title>
            <link>https://medium.com/@roland.c.adams/how-i-built-an-in-browser-security-shell-without-being-a-developer-82b9e0cf1b37?source=rss-7d028a7e6a79------2</link>
            <guid isPermaLink="false">https://medium.com/p/82b9e0cf1b37</guid>
            <dc:creator><![CDATA[Roland Adams]]></dc:creator>
            <pubDate>Wed, 21 Jan 2026 23:32:26 GMT</pubDate>
            <atom:updated>2026-01-22T00:43:26.734Z</atom:updated>
            <content:encoded><![CDATA[<h3>A look inside Falcon SecurityCopilot — from frustration to functional tool</h3><p>Three months ago, I started building something out of frustration — and honestly, a bit of imposter syndrome.</p><p>Since starting in Application Security, I kept running into the same walls. Not technical walls. <em>Workflow walls.</em></p><p>I knew what I needed. I just never knew where to find it. And once I found it? I didn’t always know where to apply it.</p><p>You’re reviewing designs. Reading threat models. Inspecting IAM policies. Verifying scanner findings. You ask for guidance and get five different answers. You context-switch between 15 tabs, 4 tools, and 3 Slack threads — and somewhere in there, you lose your train of thought entirely.</p><p>The information exists. The knowledge exists. But it’s scattered across tickets, documents, people’s heads, and tools that give findings but no context.</p><p>I wanted to build something that would help — not just me, but my team. Something to prove I could create real value. Because imposter syndrome is real, and sometimes you need to build your way through it.</p><p>Then it hit me: <strong>What if I built a browser extension that worked live inside my browser?</strong> Something I could toggle on and off as needed, right where I actually do my work?</p><p>That one idea evolved into <strong>Falcon Security Copilot</strong> — an in-browser security shell that I now use every day.</p><p>Here’s how I approached building it.</p><h3>Architecture Overview</h3><p>Falcon Security Copilot has four main components:</p><pre>┌─────────────────────────────────────────────────────────────┐<br>│                    Chrome Extension                          │<br>│  ┌─────────────┐  ┌─────────────┐  ┌─────────────────────┐  │<br>│  │   Popup     │  │  Side Panel │  │  Content Scripts    │  │<br>│  │   (Toggle)  │  │  (Main UI)  │  │  (Page Awareness)   │  │<br>│  └─────────────┘  └─────────────┘  └─────────────────────┘  │<br>└────────────────────────────┬────────────────────────────────┘<br>                             │ HTTP/REST<br>                             ▼<br>┌─────────────────────────────────────────────────────────────┐<br>│                    FastAPI Backend                           │<br>│  ┌──────────────┐  ┌──────────────┐  ┌──────────────────┐   │<br>│  │ AI Services  │  │ Scan Tools   │  │ Report Generator │   │<br>│  │ Claude/GPT/  │  │ tfsec/       │  │ PDF with NVD/    │   │<br>│  │ Gemini       │  │ checkov      │  │ ExploitDB        │   │<br>│  └──────────────┘  └──────────────┘  └──────────────────┘   │<br>└────────────────────────────┬────────────────────────────────┘<br>                             │ WSL2/Subprocess<br>                             ▼<br>┌─────────────────────────────────────────────────────────────┐<br>│              Kali Linux Sandbox (WSL2)                       │<br>│  nmap │ nuclei │ nikto │ ffuf │ wpscan │ searchsploit      │<br>└─────────────────────────────────────────────────────────────┘</pre><p>Let me walk through each layer.</p><h3>Step 1: The Chrome Extension Foundation</h3><p>The foundation is a Chrome Extension using Manifest V3 with a side panel for the main interface.</p><h3>manifest.json</h3><p>json</p><pre>{<br>  &quot;manifest_version&quot;: 3,<br>  &quot;name&quot;: &quot;Falcon SecurityCopilot&quot;,<br>  &quot;version&quot;: &quot;2.2.0&quot;,<br>  &quot;description&quot;: &quot;AI-powered security analysis with pentest tools&quot;,<br>  &quot;permissions&quot;: [<br>    &quot;activeTab&quot;,<br>    &quot;storage&quot;,<br>    &quot;sidePanel&quot;,<br>    &quot;scripting&quot;,<br>    &quot;tabs&quot;<br>  ],<br>  &quot;host_permissions&quot;: [&quot;&lt;all_urls&gt;&quot;],<br>  &quot;background&quot;: {<br>    &quot;service_worker&quot;: &quot;background.js&quot;<br>  },<br>  &quot;action&quot;: {<br>    &quot;default_title&quot;: &quot;Falcon SecurityCopilot&quot;,<br>    &quot;default_popup&quot;: &quot;popup.html&quot;<br>  },<br>  &quot;side_panel&quot;: {<br>    &quot;default_path&quot;: &quot;sidepanel.html&quot;<br>  },<br>  &quot;content_scripts&quot;: [<br>    {<br>      &quot;matches&quot;: [&quot;&lt;all_urls&gt;&quot;],<br>      &quot;js&quot;: [&quot;content-watch.js&quot;],<br>      &quot;run_at&quot;: &quot;document_idle&quot;<br>    }<br>  ]<br>}</pre><p>The key permissions:</p><ul><li>sidePanel — enables the persistent side panel that stays open while you work</li><li>activeTab + scripting — allows reading page content for context-aware assistance</li><li>host_permissions: &lt;all_urls&gt; — works on any site you&#39;re reviewing</li></ul><p>The content script (content-watch.js) observes the page and can extract relevant context to send to the AI—so when you ask a question, it understands what you&#39;re looking at.</p><h3>Step 2: The FastAPI Backend</h3><p>The backend handles AI integration, tool execution, and report generation.</p><h3>Basic Structure</h3><p>python</p><pre>from fastapi import FastAPI<br>from fastapi.middleware.cors import CORSMiddleware<br>from pydantic import BaseModel<br>from dotenv import load_dotenv<br><br>load_dotenv()<br>app = FastAPI(<br>    title=&quot;Falcon SecurityCopilot API&quot;,<br>    version=&quot;2.1.0&quot;<br>)<br># Enable CORS for extension communication<br>app.add_middleware(<br>    CORSMiddleware,<br>    allow_origins=[&quot;*&quot;],<br>    allow_credentials=True,<br>    allow_methods=[&quot;*&quot;],<br>    allow_headers=[&quot;*&quot;],<br>)<br>@app.get(&quot;/health&quot;)<br>async def health_check():<br>    return {&quot;status&quot;: &quot;healthy&quot;, &quot;service&quot;: &quot;falcon&quot;}</pre><p>This is standard FastAPI boilerplate. The real work happens in the service modules.</p><h3>Multi-Model AI Support</h3><p>One key feature is switching between AI providers. Here’s the conceptual design:</p><pre>┌─────────────────────────────────────────────────────────────┐<br>│                    /api/chat endpoint                        │<br>├─────────────────────────────────────────────────────────────┤<br>│                                                              │<br>│   Request comes in with:                                     │<br>│   - message (user&#39;s question)                                │<br>│   - model (selected AI provider)                             │<br>│   - context (current page info, if available)                │<br>│                                                              │<br>│   ┌─────────────────────────────────────────────────────┐   │<br>│   │              Model Router                            │   │<br>│   │                                                      │   │<br>│   │   IF model starts with &quot;claude&quot; ──► Anthropic API   │   │<br>│   │   IF model starts with &quot;gemini&quot; ──► Google API      │   │<br>│   │   IF model starts with &quot;gpt&quot;    ──► OpenAI API      │   │<br>│   │                                                      │   │<br>│   └─────────────────────────────────────────────────────┘   │<br>│                                                              │<br>│   Each provider service handles:                             │<br>│   - API authentication                                       │<br>│   - Context injection (the special sauce)                    │<br>│   - Response streaming                                       │<br>│   - Error handling                                           │<br>│                                                              │<br>└─────────────────────────────────────────────────────────────┘</pre><p>The model routing itself is straightforward. What makes it powerful is the <strong>context injection layer</strong> — how I prepare the prompt with page context, security-specific instructions, and conversation history. That part took weeks of iteration to get right, and it’s where the real value lives.</p><h3>Step 3: Pentest Tools via Kali WSL2</h3><p>This is the heart of Falcon — and the feature I’m most proud of.</p><h3>The Problem I Was Solving</h3><p>During my time as a proactive security engineer, I’ve always felt that pen testing is a necessary skill to help understand what vulnerabilities exist and how to guide service teams to the proper fix.</p><p>But here’s the disconnect:</p><p>As an application security engineer, you’re <em>expected</em> to understand the pentest framework. You’re expected to interpret findings, validate severity, and translate results into actionable guidance for engineering teams.</p><p>But you rarely get the chance to actually practice.</p><p>You’re reviewing pentest reports, not running the tests. You’re explaining attack vectors you’ve read about, not ones you’ve walked through yourself. There’s nothing connecting the dots between “here’s a finding” and “here’s what the attacker actually did to get there.”</p><p>That gap makes it harder to truly understand where the attack vectors lie — and harder to guide teams with confidence.</p><p>Falcon bridges that gap.</p><h3>The Architecture: Sandboxed Kali Linux via WSL2</h3><p>All pentest tools run in a <strong>sandboxed Kali Linux instance via WSL2</strong>. This gives you:</p><ul><li><strong>Isolation</strong> — Tools run in a separate environment from your host system</li><li><strong>Security</strong> — No risk to your main machine during testing</li><li><strong>Full toolkit</strong> — Access to the complete Kali Linux arsenal</li><li><strong>Integration</strong> — Connected directly to the browser interface</li></ul><p>powershell</p><pre># Initial Kali WSL2 Setup<br>wsl --install -d kali-linux<br><br># Update and install core tools<br>wsl -d kali-linux -- sudo apt update<br>wsl -d kali-linux -- sudo apt install -y \<br>    nmap nuclei nikto gobuster ffuf \<br>    whatweb sslscan subfinder httpx-toolkit \<br>    wpscan sqlmap dnsrecon whois</pre><h3>The Tool Categories</h3><p>I organized the tools into categories based on a typical assessment workflow:</p><p><strong>Reconnaissance</strong></p><ul><li><strong>Nmap</strong> — Port scanning and service detection. First step in any assessment — discover what’s running.</li><li><strong>Subfinder</strong> — Subdomain enumeration. Map the full attack surface before diving deeper.</li><li><strong>DNSRecon</strong> — DNS enumeration and zone transfer checks. Understand the DNS configuration.</li><li><strong>Whatweb</strong> — Technology fingerprinting. Identify frameworks, CMS platforms, and server software.</li></ul><p><strong>Vulnerability Scanning</strong></p><ul><li><strong>Nuclei</strong> — Template-based vulnerability scanning. After recon, scan for known CVEs and misconfigurations.</li><li><strong>Nikto</strong> — Web server vulnerability scanning. Check for server misconfigurations and outdated software.</li><li><strong>SSLScan</strong> — SSL/TLS analysis. Validate certificate configuration and cipher strength.</li><li><strong>WPScan</strong> — WordPress-specific scanning. Use when the target runs WordPress.</li></ul><p><strong>Active Testing</strong></p><ul><li><strong>FFuf</strong> — Directory and endpoint fuzzing. Discover hidden paths and endpoints.</li><li><strong>Gobuster</strong> — Directory brute-forcing. Alternative to FFuf for discovery.</li><li><strong>SQLMap</strong> — SQL injection testing. Use when you suspect SQLi vulnerabilities.</li><li><strong>Searchsploit</strong> — Exploit database lookup. Find public exploits for identified services.</li></ul><h3>The WSL Command Wrapper</h3><p>Here’s the basic pattern for executing tools in the sandbox:</p><p>python</p><pre>import subprocess<br>from typing import Optional<br><br>WSL_CMD = [&quot;wsl&quot;, &quot;-d&quot;, &quot;kali-linux&quot;, &quot;--&quot;]<br>def run_wsl_command(command: list, timeout: int = 300) -&gt; dict:<br>    &quot;&quot;&quot;Execute a command in Kali Linux WSL and return results&quot;&quot;&quot;<br>    full_command = WSL_CMD + command<br>    <br>    try:<br>        result = subprocess.run(<br>            full_command,<br>            capture_output=True,<br>            text=True,<br>            timeout=timeout<br>        )<br>        return {<br>            &quot;success&quot;: True,<br>            &quot;stdout&quot;: result.stdout,<br>            &quot;stderr&quot;: result.stderr,<br>            &quot;exit_code&quot;: result.returncode<br>        }<br>    except subprocess.TimeoutExpired:<br>        return {<br>            &quot;success&quot;: False, <br>            &quot;error&quot;: f&quot;Command timed out after {timeout} seconds&quot;<br>        }<br>    except Exception as e:<br>        return {<br>            &quot;success&quot;: False, <br>            &quot;error&quot;: str(e)<br>        }</pre><p>This wrapper is a standard pattern. The critical additions are:</p><ol><li><strong>Input sanitization</strong> — All user input is validated before command construction</li><li><strong>Timeout limits</strong> — Prevents runaway processes from hanging the system</li><li><strong>Output parsing</strong> — Results are structured for AI interpretation</li></ol><h3>The AI Interpretation Layer</h3><p>This is where Falcon becomes more than just a terminal wrapper.</p><p>Raw tool output is often overwhelming — walls of text, JSON blobs, cryptic error messages. The AI layer transforms this into actionable intelligence:</p><pre>┌─────────────────────────────────────────────────────────────┐<br>│              AI Interpretation Flow                          │<br>├─────────────────────────────────────────────────────────────┤<br>│                                                              │<br>│   Raw Nmap Output                                            │<br>│   ┌─────────────────────────────────────────────────────┐   │<br>│   │ PORT     STATE SERVICE  VERSION                      │   │<br>│   │ 22/tcp   open  ssh      OpenSSH 7.6p1               │   │<br>│   │ 80/tcp   open  http     Apache 2.4.29               │   │<br>│   │ 443/tcp  open  ssl/http Apache 2.4.29               │   │<br>│   │ 3306/tcp open  mysql    MySQL 5.7.33                │   │<br>│   └─────────────────────────────────────────────────────┘   │<br>│                          │                                   │<br>│                          ▼                                   │<br>│   AI Analysis                                                │<br>│   ┌─────────────────────────────────────────────────────┐   │<br>│   │ &quot;I found 4 open ports. A few things stand out:       │   │<br>│   │                                                      │   │<br>│   │ ⚠  MySQL (3306) is exposed externally - this       │   │<br>│   │     should typically be internal only               │   │<br>│   │                                                      │   │<br>│   │ ⚠  OpenSSH 7.6p1 has known vulnerabilities         │   │<br>│   │     (CVE-2018-15473 user enumeration)               │   │<br>│   │                                                      │   │<br>│   │ 📋 Recommended next steps:                          │   │<br>│   │    1. Run Nuclei for CVE checks on these services   │   │<br>│   │    2. Check MySQL for default credentials           │   │<br>│   │    3. Enumerate SSH users if in scope&quot;              │   │<br>│   └─────────────────────────────────────────────────────┘   │<br>│                                                              │<br>└─────────────────────────────────────────────────────────────┘</pre><p>The AI doesn’t just show you output — it <strong>interprets it</strong>, <strong>highlights risks</strong>, and <strong>suggests next steps</strong>. The prompt engineering that makes this work reliably took significant iteration.</p><h3>Burp Suite Integration</h3><p>For web application testing, Burp Suite integration was essential. Here’s how it connects:</p><pre>┌─────────────────────────────────────────────────────────────┐<br>│                 Burp Suite Integration                       │<br>├─────────────────────────────────────────────────────────────┤<br>│                                                              │<br>│   ┌─────────────┐         ┌─────────────┐                   │<br>│   │    Burp     │ ──API──►│   Falcon    │                   │<br>│   │   Suite     │         │   Backend   │                   │<br>│   └─────────────┘         └─────────────┘                   │<br>│                                  │                           │<br>│   What Falcon can pull:          │                           │<br>│   ├── Proxy history              │                           │<br>│   ├── Sitemap                    ▼                           │<br>│   ├── Discovered endpoints    ┌─────────────┐               │<br>│   └── Request/response pairs  │  AI + Tools │               │<br>│                               └─────────────┘               │<br>│                                                              │<br>│   Workflows enabled:                                         │<br>│   • &quot;Analyze my proxy history for security issues&quot;          │<br>│   • &quot;Take discovered endpoints and scan with Nuclei&quot;        │<br>│   • &quot;Find all API calls and check for auth issues&quot;          │<br>│                                                              │<br>└─────────────────────────────────────────────────────────────┘</pre><p>No more copying and pasting between Burp and your terminal. Falcon pulls the data directly and can pipe it into other tools.</p><h3>Enterprise &amp; Internal Security Features</h3><p>For real-world engagements, you often need more than external scanning:</p><p><strong>Authenticated Scanning</strong></p><pre>┌─────────────────────────────────────────────────────────────┐<br>│   Authenticated scanning supports:                           │<br>│   • API tokens (Bearer, API keys)                           │<br>│   • Session cookies                                          │<br>│   • Custom headers                                           │<br>│   • Basic/Digest authentication                              │<br>│                                                              │<br>│   This lets you test what an authenticated attacker         │<br>│   could access—not just the public attack surface.          │<br>└─────────────────────────────────────────────────────────────┘</pre><p><strong>Internal Network Scanning</strong></p><pre>┌─────────────────────────────────────────────────────────────┐<br>│   When connected via VPN, Falcon can scan internal ranges:  │<br>│   • CIDR notation support (10.0.0.0/24)                     │<br>│   • Internal service discovery                               │<br>│   • Credentialed checks via SSH/WinRM                       │<br>│   • AWS STS role assumption for cloud assessments           │<br>│                                                              │<br>│   Same workflow, same interface—just pointed internally.    │<br>└─────────────────────────────────────────────────────────────┘</pre><h3>Example Workflow: Full Reconnaissance</h3><p>Here’s how a typical recon workflow looks in Falcon (conceptual — I’m keeping the orchestration logic private):</p><pre>User: &quot;Run a full recon on target.com&quot;<br><br>┌─────────────────────────────────────────────────────────────┐<br>│   Falcon Orchestration (conceptual)                          │<br>├─────────────────────────────────────────────────────────────┤<br>│                                                              │<br>│   Step 1: Technology Detection                               │<br>│   └── whatweb target.com                                    │<br>│   └── Result: WordPress 5.9, Apache, PHP 7.4                │<br>│                                                              │<br>│   Step 2: Port Scan (informed by Step 1)                    │<br>│   └── nmap -sV -sC target.com                               │<br>│   └── Result: 80, 443, 22 open                              │<br>│                                                              │<br>│   Step 3: Subdomain Enumeration                              │<br>│   └── subfinder -d target.com                               │<br>│   └── Result: blog.target.com, api.target.com, dev.target   │<br>│                                                              │<br>│   Step 4: Vulnerability Scan (WordPress detected)           │<br>│   └── wpscan --url target.com                               │<br>│   └── nuclei -u target.com -t cves,misconfig                │<br>│                                                              │<br>│   Step 5: SSL/TLS Check                                      │<br>│   └── sslscan target.com                                    │<br>│                                                              │<br>│   Step 6: AI Synthesis                                       │<br>│   └── Compile all results                                   │<br>│   └── Prioritize findings by severity                       │<br>│   └── Generate actionable recommendations                   │<br>│                                                              │<br>└─────────────────────────────────────────────────────────────┘<br>Output: Comprehensive analysis with findings, risk ratings,<br>        and recommended next steps-all in one response.</pre><p>The key insight: <strong>each step informs the next</strong>. Knowing it’s WordPress triggers WPScan. Finding subdomains expands the attack surface. The AI synthesizes everything into a coherent picture.</p><h3>Why This Matters</h3><p>For the first time, I can:</p><ul><li><strong>Validate findings myself</strong> — Walk the actual attack path</li><li><strong>Understand the “why”</strong> — Not just <em>that</em> something is exploitable, but <em>how</em></li><li><strong>Guide teams with confidence</strong> — Because I’ve seen it firsthand</li><li><strong>Learn by doing</strong> — Every scan is hands-on practice</li></ul><p>That changes how you talk to service teams. That changes how you guide remediation. That changes everything.</p><h3>Step 4: Infrastructure as Code Scanning</h3><p>Security reviews don’t stop at application code. Falcon integrates IaC scanning with remediation.</p><h3>Basic Scanner Integration</h3><p>python</p><pre>import subprocess<br>import json<br><br>def run_tfsec(directory: str) -&gt; dict:<br>    &quot;&quot;&quot;Run tfsec security scanner on Terraform code&quot;&quot;&quot;<br>    try:<br>        result = subprocess.run(<br>            [&quot;tfsec&quot;, directory, &quot;--format&quot;, &quot;json&quot;],<br>            capture_output=True,<br>            text=True,<br>            timeout=120<br>        )<br>        <br>        findings = json.loads(result.stdout) if result.stdout else {}<br>        return {<br>            &quot;tool&quot;: &quot;tfsec&quot;,<br>            &quot;findings&quot;: findings.get(&quot;results&quot;, []),<br>            &quot;passed&quot;: findings.get(&quot;passed&quot;, 0),<br>            &quot;failed&quot;: findings.get(&quot;failed&quot;, 0)<br>        }<br>    except Exception as e:<br>        return {&quot;error&quot;: str(e)}</pre><p>This is standard tfsec integration. Checkov follows a similar pattern.</p><h3>The Terraform Generator (Scan → Find → Fix)</h3><p>This is the part I’m most excited about — and the part I’m keeping conceptual.</p><pre>┌─────────────────────────────────────────────────────────────┐<br>│              Terraform Remediation Flow                      │<br>├─────────────────────────────────────────────────────────────┤<br>│                                                              │<br>│   Traditional workflow:                                      │<br>│   ┌──────┐  ┌──────┐  ┌──────┐  ┌──────┐  ┌──────┐        │<br>│   │ Scan │─►│ Read │─►│Google│─►│ Groan│─►│ Fix  │        │<br>│   └──────┘  └──────┘  └──────┘  └──────┘  └──────┘        │<br>│                                                              │<br>│   Falcon workflow:                                           │<br>│   ┌──────┐  ┌──────────────────────┐  ┌──────┐             │<br>│   │ Scan │─►│ AI Generates Fix     │─►│Review│             │<br>│   └──────┘  └──────────────────────┘  └──────┘             │<br>│                                                              │<br>│   What the AI receives:                                      │<br>│   - The specific finding (severity, description, rule ID)   │<br>│   - The original Terraform code                              │<br>│   - Context about the resource type                          │<br>│   - Best practices for remediation                           │<br>│                                                              │<br>│   What the AI produces:                                      │<br>│   - Corrected Terraform code                                 │<br>│   - Comments explaining what changed                         │<br>│   - Why the fix addresses the security concern               │<br>│                                                              │<br>│   The prompt engineering and context preparation that        │<br>│   makes this work reliably took weeks of iteration.          │<br>│                                                              │<br>└─────────────────────────────────────────────────────────────┘</pre><p>The key insight: <strong>finding issues is only half the battle</strong>. The real value is helping engineers fix them without context-switching to documentation, Stack Overflow, and trial-and-error.</p><h3>Step 5: Automated Report Generation</h3><p>This was a big one. I used to spend more time writing reports than doing assessments.</p><h3>Conceptual Design</h3><pre>┌─────────────────────────────────────────────────────────────┐<br>│                 Report Generation Pipeline                   │<br>├─────────────────────────────────────────────────────────────┤<br>│                                                              │<br>│   Input: Raw findings from scans                             │<br>│                                                              │<br>│   ┌─────────────────────────────────────────────────────┐   │<br>│   │              Enrichment Layer                        │   │<br>│   │                                                      │   │<br>│   │   For each finding:                                  │   │<br>│   │   ├── Query NVD for CVE details                     │   │<br>│   │   ├── Query Exploit-DB for known exploits           │   │<br>│   │   ├── Map to vulnerability families                 │   │<br>│   │   └── Generate remediation guidance                 │   │<br>│   │                                                      │   │<br>│   └─────────────────────────────────────────────────────┘   │<br>│                                                              │<br>│   ┌─────────────────────────────────────────────────────┐   │<br>│   │              PDF Generation                          │   │<br>│   │                                                      │   │<br>│   │   - Executive summary with risk scoring             │   │<br>│   │   - Detailed findings with context                  │   │<br>│   │   - Remediation steps (prioritized)                 │   │<br>│   │   - References to CVEs, exploits, documentation     │   │<br>│   │                                                      │   │<br>│   └─────────────────────────────────────────────────────┘   │<br>│                                                              │<br>│   Output: Professional PDF ready for stakeholders           │<br>│                                                              │<br>└─────────────────────────────────────────────────────────────┘</pre><p>The NVD and Exploit-DB integration — how I query, cache, and synthesize that data into actionable reports — is something I’m keeping private. But the concept is straightforward: <strong>automate the tedious parts so you can focus on analysis</strong>.</p><h3>Step 6: The Side Panel UI</h3><p>The side panel is where everything comes together. Here’s the basic communication pattern:</p><p>javascript</p><pre>// Basic chat communication with backend<br>async function sendMessage(message) {<br>    const model = document.getElementById(&#39;modelSelector&#39;).value;<br>    <br>    try {<br>        const response = await fetch(`${API_BASE}/api/chat`, {<br>            method: &#39;POST&#39;,<br>            headers: { &#39;Content-Type&#39;: &#39;application/json&#39; },<br>            body: JSON.stringify({ <br>                message, <br>                model,<br>                context: await getPageContext() <br>            })<br>        });<br>        <br>        const data = await response.json();<br>        displayResponse(data.response);<br>        <br>    } catch (error) {<br>        displayError(&#39;Failed to connect to backend&#39;);<br>    }<br>}<br>async function getPageContext() {<br>    // Get current page info for context-aware responses<br>    const [tab] = await chrome.tabs.query({ <br>        active: true, <br>        currentWindow: true <br>    });<br>    <br>    return {<br>        url: tab.url,<br>        title: tab.title</pre><p>This is standard extension-to-backend communication. The UI itself — tabs for different modes, the chat interface, results display — is straightforward HTML/CSS/JS.</p><h3>What I’m Keeping Private (For Now)</h3><p>I’m sharing the architecture and the patterns that got me started — but some parts are staying private:</p><ul><li><strong>AI Prompt Engineering</strong> — The specific prompts, context injection, and instruction tuning that make responses security-focused and accurate</li><li><strong>Tool Orchestration Logic</strong> — How tools chain together intelligently based on discovered context</li><li><strong>Terraform Generator</strong> — The prompt engineering that reliably produces correct remediation code</li><li><strong>Report Enrichment</strong> — The NVD/Exploit-DB integration and synthesis logic</li></ul><p>If there’s enough interest, I may open-source more in the future. For now, I wanted to share the journey and the approach without giving away everything.</p><h3>The Bigger Lesson</h3><p>The most meaningful growth in my career hasn’t been a new title or certification.</p><p>It’s been the moment I stopped just <em>doing</em> AppSec and started <em>designing</em> it.</p><p>For years, I admired builders. I’d see someone’s tool, someone’s automation, someone’s project and think “I wish I could do that.” I was always on the outside looking in — grateful for what others created, but never the one creating.</p><p>Falcon Copilot changed that.</p><p>Here’s the truth: I’m not a traditional developer. But I have my own approach to building things.</p><p>I used Claude, GPT, and Gemini to help me execute my vision. Instead of continuing to struggle with the execution, I decided to let AI help me get there.</p><p>Some people might say that doesn’t count. That it’s not “real” building.</p><p>But here’s what I’ve learned: <strong>AI is just a tool.</strong> It can write code, but it can’t imagine what needs to exist. It can execute, but it can’t see the gaps in a workflow. It can generate, but it can’t feel the frustration of context-switching for the hundredth time.</p><p>The vision came from me. The pain points came from me. The “what if” came from me.</p><p>AI accelerated the process. But imagination gave it life.</p><p>The tools have changed. What used to take years of coding experience can now start with curiosity and a problem you care enough to solve.</p><p>Honestly, I just wanted to make my own work easier. But somewhere along the way, a small idea turned into something real. The gap between “what if” and “it works” was shorter than I expected.</p><p>If you’re sitting on an idea, you might be closer than you realize.</p><p>For the first time, I’m not just using someone else’s solution. I built my own. And I’m proud of it.</p><h3>What’s Next</h3><p>Falcon Security Copilot is still evolving. On the roadmap:</p><ul><li>Collaborative features for teams</li><li>Custom detection rule builder</li><li>CI/CD pipeline integration</li><li>Cloud-hosted option</li></ul><p>If you’re in AppSec, security engineering, or pen testing and want to see it in action — reach out. I’d love to hear from others fighting the same workflow battles.</p><p><strong>Built with AI. Powered by imagination.</strong> 🦅</p><p><em>Connect with me on </em><a href="http://www.linkedin.com/in/radams23"><em>LinkedIn</em></a></p><p>#cybersecurity #appsec #securityengineering #buildinpublic</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82b9e0cf1b37" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding and creating an AWS 3-Tier Architecture]]></title>
            <link>https://medium.com/@roland.c.adams/understanding-and-creating-an-aws-3-tier-architecture-2001a525c62c?source=rss-7d028a7e6a79------2</link>
            <guid isPermaLink="false">https://medium.com/p/2001a525c62c</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[vpc]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[architecture]]></category>
            <dc:creator><![CDATA[Roland Adams]]></dc:creator>
            <pubDate>Mon, 14 Nov 2022 00:58:44 GMT</pubDate>
            <atom:updated>2022-11-14T00:58:44.083Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*7ISSm8VdpyU5jz8hNvY1Zw.png" /></figure><p>Hello again everyone, and welcome back to my blog. For this week&#39;s project, we are going to be working on putting a 3-tier architecture on the AWS platform. I must say, this is not the easiest project to put together. One of the most challenging aspects of working in the IT field is being able to not only talk about, but also be able to demonstrate it. Usually this is conducted in a form of whiteboarding. Most if not, all hiring managers will ask you to demonstrate your knowledge by asking you to draw or sketch out a design of how something works.</p><p>For this project I have used a diagram tool on <a href="https://app.diagrams.net/">draw.io</a> to sketch out a graph of the project we are about to put together here. I must say this is not easy, and it takes experience to get comfortable with it. So, let&#39;s get started!</p><p>Log into your AWS account, and we will start by creating our VPC.</p><p>From the AWS dashboard search for “VPC”. If you want to add this to your favorites for later use, you may do so by pressing the star next to the name.</p><p>Once you are in the VPC dashboard, select create VPC.</p><p>You should notice that AWS has preselected most a good amount of items for you. I will list out what we will be using for our project. Start by naming your project. I will name mine “Week9LUIT”</p><p>Next, keep the default IPV4 address which should be 10.0.0.0/16.</p><p>Now, select the following items in this order.</p><p><strong>2 Availability zones</strong></p><p><strong>2 public subnets</strong></p><p><strong>4 private subnets</strong></p><p>Under NAT gateway, select the option on the far right for “1 per AZ”. We will need a NAT gateway for each availability zone here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*IfemN7n7q1UCWXQPsRGKfw.png" /></figure><p>Next scroll down and select “None” for VPC endpoints.</p><p>Finally for this step, both options for DNS will be selected as default. Keep the default settings and verify that everything has been selected correctly. Then select “Create VPC”. This will take a moment to finish.</p><p>Upon completion, verify that everything that is notated is allocated in green, and let’s move on to the next step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*HVLJSj5N7Pi-ml6rjDYWmQ.png" /></figure><p>Now that we have our VPC created, we will begin creating the first Tier. For our project, the first tier is the web tier. Let’s navigate to the EC2 dashboard.</p><p>Once you are in the EC2 dashboard, on the left side of the screen, under the Instances drop down menu, select “Launch Templates”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/186/1*bhCF2pIbYAYUigSr9sdoLg.png" /></figure><p>Give your template a name here. I will name mine “Rolandsweek9Project”. Then select the check box for “Auto Scaling guidance”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*OgsxM1VXIpyAmMDHO6XG7w.png" /></figure><p>Next, scroll down to Application and OS images.</p><p>Let’s select “Amazon Linux” for our ami.</p><p>For instance type, select “t2.micro”</p><p>Under Key pair, select “Create new key pair”.</p><p>Give the key pair a name and select “Create key pair”. Save the newly created .pem key to a location where it can be used later.</p><p>Now lets create our security group. Under Network settings, locate Firewall. Select the option to “Create Security Group”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*pCftP8iYl5W1t5Vmp2iMxg.png" /></figure><p>Give your security group a name, and in the description box type “Allow SSH and HTTP traffic”</p><p>Under VPC, click the drop-down arrow and select the VPC we just created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*IkoY3AfjScOsDW-W45jdlg.png" /></figure><p>Click the drop down to add security group rule. Under Type, select “SSH”, and under Source, type select “Anywhere”</p><p>Select Add Security group rule and repeat the previous steps for “HTTP”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*UWsuDFeRn0zHdF95uxthMA.png" /></figure><p>Scroll down to “Advanced Details”.</p><p>Under Advance details, at the very bottom, locate “User data”.</p><p>When scrolling through the Advanced details field, be sure to check the box to enable “Enable resource-based IPv4” under DNS Hostname.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*66EKDvJBGPfQiWY0w3Ucgw.png" /></figure><p>Next, we will input our script in this text box to build our Web tier.</p><p>Type the following script into the user data field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*ze92-tXG4q6GGzkzbvj2nA.png" /></figure><p>Click “Create launch template”.</p><p>After you receive the green check mark with success, click “view launch templates”.</p><p>You should see the newly created launch template on your dashboard.</p><p>Now, let’s create our Auto scaling group and add our load balancer.</p><p>On the left side of the launch template dashboard, scroll down and locate Auto Scaling, and click “Create Auto Scaling groups”.</p><p>Give your scaling group a name, and under launch template, select the drop down and select the launch template we created in the previous step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*7uJacKaXUSGhWI0Xiw_uuQ.png" /></figure><p>Click next.</p><p>Under VPC, select the drop down to find the VPC we created for this project.</p><p>Next, click the drop down for Availability zones and subnets. In this drop-down menu, select the two public subnets we created. Double check to make sure you are not selecting the private subnets. Click next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*MeZkvgAQP1ImX4EHTWQGNw.png" /></figure><p>On the Load Balancing dashboard, select the option to attach a new load balancer.</p><p>Verify that the application load balancer is selected. Next, under Load Balancer Scheme, select the option for “Internet facing”</p><p>Under Listeners and Routing, select “Create a target group”. The New target group will automatically be defaulted for you. Keep these settings and click “Next”.</p><p>Under Group Size, set the desired group to 2, minimum capacity to 2, and maximum capacity to 5.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*AE6y0FLBTejjuEaZw4OwoA.png" /></figure><p>Click next.</p><p>We will skip Add notifications and Add tags. Click next on both dashboards.</p><p>Finally on the review dashboard, select “Create Auto Scaling group”</p><p>Now on to the Application Tier.</p><p>In this part of the project, you will notice that the steps will begin to repeat themselves.</p><p>Navigate back to the EC2 dashboard. On the left-hand side of the dashboard, select “Launch Templates” and then “Create launch Templates”.</p><p>We will repeat the process as we used in the web tier. Follow the previous instructions all the way down until you reach the inbound security group rules.</p><p>Under Type, Select “SSH”. Under source type, select custom, and then click source.</p><p>Scroll down the list until you find the rule for Web Tier security group.</p><p>Click “Create Launch Template”.</p><p>After receiving the green check mark for success, select view Launch templates.</p><p>From here, we will follow the same steps to create a new auto scaling group. Except this time, we will select the 4 private subnets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*KjS_1UUYz4ktxJ4JgjqD7w.png" /></figure><p>After following the previous instructions, select Create Auto Scaling Group.</p><p>Navigate back to the EC2 dashboard to verify that you have 4 running instances.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WnwLZYlyJ49uXWg9nWBI1Q.png" /></figure><p>Now, we are on to the third part of this project, the Database Tier.</p><p>In the search bar at the top, type “RDS”.</p><p>Select the star beside if you want to save this to your favorites.</p><p>On the left-hand side of the screen under Amazon RDS, select “Databases” and then click the orange button to “Create Database”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/178/1*Sbucak4reyUHSfMgrdedtg.png" /></figure><p>From the create database dashboard, under Engine type, select “MySQL”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*m1ONO0Svk1WWVkKvaUfFng.png" /></figure><p>Scroll down to templates and select “Free Tier”.</p><p>Under settings, give your database an identifier. AWS normally will populate a name for you here, but you can give your DB a unique name if you like. Then create a master password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*JY6ciWc5ti8p8gHFAi7ESQ.png" /></figure><p>Keep the default settings for Instance configuration and Storage.</p><p>Under connectivity, locate VPC, and click the dropdown to select the VPC we created for this project.</p><p>We will have to create a new security group here. Under VPC security group firewall, select create new.</p><p>Enter a VPC SG name. I will name mine, MySQL SG. Click on Additional configuration and verify that the port is 3306.</p><p>Keep the default settings for the remaining sections and click “create database”.</p><p>It will take a few for the database to be created. So, take a moment to stretch your legs, and we are almost at the finish line here.</p><p>After the database is finished provisioning, navigate back to the DB and edit our security group to allow inbound access from the application tier.</p><p>Under connectivity &amp; security, on the far right, locate security and then select the name you gave your SQL DB.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-bcnIYgJ-lv7Wr7lf5ttjg.png" /></figure><p>Locate inbound rules down at the bottom, and click the tab. Then select “edit inbound rules”.</p><p>Delete the defaulted Security rule that is already in place.</p><p>Click “add rule” and select MYSQL/Aurora. Type in port 3306. Under source type, select custom, and then in the dropdown box, select the private security group rule created in the “Application Tier”. Click “Save rules”.</p><p>Now we will attemp to connect to our private EC2 instances located in the Application Tier of our 3-Tier Model. You can do this using the command line, but for this project I will connect using Putty.</p><p>Let&#39;s start by converting our .pem key to a ppk file that putty can read. If you do not have putty downloaded already then feel free to click this <a href="https://www.putty.org/">link</a> to do so.</p><p>If you have putty downloaded already, then lets navigate to the putty ken gen feature to convert the .pem to a ppk file. Open the start menu and search for the PuttyGen feature that was downloaded with the putty application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/181/1*M4WKxht5Au00TQzYFaPqnw.png" /></figure><p>With the Key Generator open, click “File” from the top left and then select “Load Private Key”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/215/1*jKRFbHOH4TmBlL1L_v9itA.png" /></figure><p>Now at this point you will need to navigate to the location where you saved your “pem” key. The documents folder will automatically default to search for ppk files. Click the drop-down arrow and select “All files”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/214/1*N_2tQGz0pflUdjMYxg6Whg.png" /></figure><p>Select your key and click “Open”.</p><p>Once the key has been uploaded, you will receive a status message showing the key has been successfully uploaded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*P-tM68O1PlCV5c_vyD9Flw.png" /></figure><p>Select “Save Private key” at the bottom, and select yes on the warning message.</p><p>Give your new ppk file a name and save it to the desktop as we will need it shortly.</p><p>We can now close the key Generator.</p><p>Next, open your putty ssh console.</p><p>We will now input the new credentials into the configuration console to connect to our EC2 instance.</p><p>Go to your AWS console and locate your IPV4 public Ip address. Copy the Ipv4 address and input “ec2-user@your ipv4 address” under the host name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/281/1*224DPoklopEHNa0aroKrCQ.png" /></figure><p>Give your session a name and click “Save”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/1*ODPD08EvMOCtCQ9vfIOlEQ.png" /></figure><p>Next, we will need to reference our ppk file to the session.</p><p>On the left-hand side of the console, click “connection,” then click plus sign next to “SSH”, and then select “Auth”. Select “Browse” and then navigate to where you saved your generated ppk file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/78/1*rD55JE4l8NQCJ5ogXtcV-g.png" /></figure><p>Go back to “Session” at the top of the console, select your session name and click save to store your ppk file for this session.</p><p>Load your EC2 session, and then select “Yes” on the warning message.</p><p>You should now be logged into your AWS EC2 instance using putty!</p><p>Let&#39;s try to ping our private EC2 instance. Navigate back to you EC2 dashboard and select one of the private IP’s from the private instance.</p><p>In the terminal, type “ping your private ip address”.</p><p>If the ping is successful, you should be able to see and verify the bytes coming in from the private ip address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*3jpeRtDBFI5XUfk54jlk9w.png" /></figure><p>We are good to go here as we now know we can talk to our private instance from here. Press “CTRL + C” to cancel.</p><p>Next, we will install MariaDB on our instance so that we can gain access to our MySQL database.</p><p>Type the following command into the terminal and press enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/171/1*sVQQPzwt4fgqg4HufxtA1w.png" /></figure><p>If you received a messege saying “Complete!” then you have successfully installed MariaDB on to your instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/243/1*vb5X8otuODrYC25-q3kDqw.png" /></figure><p>Now, let’s try and reach our database from the terminal.</p><p>Navigate back to the RDS dashboard, click on “Databases” and select the database we created.</p><p>Verify that you are on the tab for “Connectivity &amp; security” and copy the database endpoint name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*UZ4cPsRfHgXmV4w6u0FgLg.png" /></figure><p>Bring the terminal back up and type “mysql -h” and paste the endpoint you copied alongside of it and press enter.</p><p>The command should be in this format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*sMDCY0YzomKd-qTuqN-Erg.png" /></figure><p>Enter password when prompted.</p><p>So, notice that we received the dreaded “ERROR 2003 (HY000): Can’t connect to MySQL server on” Lol. Nothing like getting this type of error in the final steps of the project, but hold your horses, let’s fix this really quick.</p><p>Navigate back to the RDS console.</p><p>In the navigation pane, choose “Databases”.</p><p>Select the DB instance that you want to modify, and then choose Modify.</p><p>Under Connectivity, expand the Additional configuration section, and then select “Publicly accessible”.</p><p>Click Continue and select “Modify DB instance”.</p><p>Once the instance is done modifying, try the above command once again and try logging into your instance.</p><p>You should now see that you have been granted access to your database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*X5ES874R34oeEZXeid-JNw.png" /></figure><p>One last check to make sure our webpage is running.</p><p>Navigate back to your running instance, copy the public IPv4 address and input it into your browser. You should see the test page that was provisioned with our script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v_oiiRICFYTITJdwCNwD6g.png" /></figure><p>YES SIIIIRRRR! We are done!</p><p>Listen, I know that was a task, but the most important thing to note here is that sticking with it to the end is what is most important, and we did that.</p><p>As always thank you for visiting my blog, if you aren’t using the tools we just created, be sure to delete them upon completion of the project so that you incur any costs.</p><p>Stay tuned for more projects in the coming weeks. Take care!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2001a525c62c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Use something you know to learn DynamoDB]]></title>
            <link>https://medium.com/@roland.c.adams/use-something-you-know-to-learn-dynamodb-41e8aef69e0e?source=rss-7d028a7e6a79------2</link>
            <guid isPermaLink="false">https://medium.com/p/41e8aef69e0e</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[ec2-instance]]></category>
            <category><![CDATA[dynamodb]]></category>
            <dc:creator><![CDATA[Roland Adams]]></dc:creator>
            <pubDate>Sun, 06 Nov 2022 00:00:08 GMT</pubDate>
            <atom:updated>2022-11-06T21:13:24.604Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JSSV7UX1jUaeEbd8OIwmcQ.jpeg" /></figure><p>Good evening, everyone. For this week&#39;s project, let&#39;s do something fun to teach ourselves DynamoDB. My mom always taught me that in order to learn something you have to break it down into the simplest terms to understand. I will say this. For me, that was not always the easiest approach. When you do not understand something, it is not always easy to break things down when you do not understand the concept yet. I always found it easier to learn by using examples that I could have fun with and also examples that were easy for me to relate to. Sports played that role of teacher for me, and still do till this day, because lord have mercy, Atlanta sports teams, play a huge role of teaching patience more than anything or anyone else could, lol, sigh.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*s3NxhWDOusCV-L-1iOtI-g.gif" /></figure><p>But let’s not even go down that road right now.</p><p>With that being said the city of Atlanta, has produced some of the most famous athletes and in one particular case, one of the most important historical figures in sports history. So, what we are going to do for this project is to create a DynamoDB table listing who is, in my opinion, the top Atlanta sports figures of all time.</p><p>What is DynamoDB you ask? Well by definition, DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability. Simply put, it pretty much works as a document database with really fast response times. So, let&#39;s get started here. Choose a topic you are good at and can relate to, and let&#39;s create a table using DynamoDB.</p><p>Once you are logged into your portal, use the search bar and search for DynamoDB. As usual, if you need to add this to your favorites, you may do so by clicking the star next to the name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*R5JACFhw_tI44y5i_5oYrw.png" /></figure><p>From the DynamoDB dashboard, on the right side of the screen click the orange button labeled “Create table”.</p><p>Now let&#39;s create our table by giving our table a name, partition key and a sort key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*MRDoDlKSkRvX0IcAPUZ8sA.png" /></figure><p>Under table settings, the default settings are already preselected for you. Keep these settings and scroll down and select “Create table”</p><p>You should notice a green success message at the top confirming that the table has been created successfully. Now on the left-hand side, under tables, select “Explore items”. This is where we will create the items needed for our table.</p><p>Once in the explore items menu, select the bubble next to you table name and then click “Create item” at the bottom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gtjd8aPuceP3RETRvjPA_g.png" /></figure><p>Once you are in the Create Item dashboard, you should notice that the partition key and the sort key are available under the Attribute name column. For this project, I will sort my table by using three sort columns, plays name, team, and league. To add a third column, click the button for “Add new attribute” on the top right. Select string for the type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SN3J4b-FAadG_dfsrfq_IQ.png" /></figure><p>Once this is set, let&#39;s start entering the values to create our table. The information will have to be added one by one. Once this is finished, your table should look something similar to this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*Bkc_8KgJowcjL5Bct7bYpw.png" /></figure><p>Once all your information has been validated, you have successfully created your DynamoDB table. So, let’s move forward to create an EC2 instance so we can view our table from the CLI.</p><p>In the search bar above, type and select EC2 once it populates.</p><p>Select “Launch Instance”</p><p>Give your virtual machine a name and select Amazon Linux as the Operating System.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*QkoF-vdCAgAZ5Nybys-Xdw.png" /></figure><p>Next, under Instance type, verify that “t2.micro” is select.</p><p>Under Key pair, select “Create new Key pair”</p><p>Create your new pair and be sure to store your .pem where it can be used later.</p><p>On the Network Setting menu, click edit.</p><p>Under subnet, select the subnet for “us-east-1”</p><p>Finally, select “Launch instance” on the bottom right corner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/182/1*ew4ijnl4rvi6vqvwscGdJQ.png" /></figure><p>After a few minutes, you should notice the EC2 instance running with a green checkmark showing the EC2 is in a healthy state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*xkYAmHe0mFl7pfkz9uz_MA.png" /></figure><p>Now, let’s create our IAM roles, so no one can change the information on our table.</p><p>On the top of the console, in the search bar, type “IAM” for Identity and Access Management.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*OQpPsPrUn_YE49SLTkGKyg.png" /></figure><p>On the left-hand side of the screen, locate “Roles” and select it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/201/1*smm9UgCyO4f8hNaRmGBW9A.png" /></figure><p>Now select “Create role”.</p><p>Under Select trusted entity, verify that AWS service is selected. Under “Use case”, select “EC2” under common use cases and click next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RRNIy7uU1CnLsr1-NDttYg.png" /></figure><p>From the Add permissions dashboard, type into the search bar “DynamoDBReadOnlyAccess”. Select this permission and click next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cwn_DTo-O1PnUNyuxz25yg.png" /></figure><p>Now, give your new policy a name. I will name mine TopAtlantaAthleteDB. Notice that under description, AWS has already prepopulated a description for you. The default will work just fine, but I will add something simple just to let users know they only have read only access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*idQeW6ykEFMdozU4uSK9TQ.png" /></figure><p>Scroll to the bottom and select “Create role”</p><p>Now let&#39;s assign our new role to our EC2 instance.</p><p>Navigate your way back to the EC2 dashboard</p><p>Select the check mark beside your EC2 name, and select the drop down for actions. Scroll down to security and Select “Modify IAM role”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GSQYywCU4UWV_n2KIobFrg.png" /></figure><p>Once in the dashboard, select the drop down and select your newly created IAM role to assign it to the EC2 instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*KcsVA-y42qN4DDhWpC6qBQ.png" /></figure><p>Now, we will run a scan on the CLI to find our DynamoDB table.</p><p>Select your EC2 intance, and click connect. We will log in using the EC2 Instance connect.</p><p>If you receive a notice stating that the virtual machine needs to be updated, update it by using the following command- “sudo yum update” which also should be notated on your screen.</p><p>Once this is completed, let’s run the following command in the CLI to scan for our DynamoDB table.</p><p><em>“aws dynamodb scan --table-name TopAtlantaAthletes --region us-east-1”</em></p><p>If everything was typed correctly, you should receive a Json image of the information that was typed into your table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*sxKZZD0JnrE_V9xGgT0-qA.png" /></figure><p>Lastly, let&#39;s check to make sure that our permissions are set to read only.</p><p>Input the following command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*4pYkbFCmcNGHJsuZF3WLuw.png" /></figure><p>Take a look at what we tried to do here. From the command that was added, I tried to use the command line to input a new league labeled “MLS” into my Dynamo table.</p><p>As you can see, the permission was denied, because we have the IAM role set for read only.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*GJ0D_-UbAy6d6AAeSpieDA.png" /></figure><p>This is exactly what we want to do to make sure no can tamper with or change anything on our table without first consulting the Atlanta sports Guru!</p><p>That’s it for this week’s project. As always, thank you for visiting my blog. Stay tuned for more projects to come in the coming weeks. Take care and God bless.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*lNX7cF7XeawHdkdh1R4sUA.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41e8aef69e0e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating an auto-scaling group of EC2 Instances.]]></title>
            <link>https://medium.com/@roland.c.adams/creating-an-auto-scaling-group-of-ec2-instances-bbbf5f1707b3?source=rss-7d028a7e6a79------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbbf5f1707b3</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-ec2]]></category>
            <category><![CDATA[autoscaling]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Roland Adams]]></dc:creator>
            <pubDate>Sun, 30 Oct 2022 15:14:24 GMT</pubDate>
            <atom:updated>2022-10-30T15:14:24.654Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ccIe9Y5s9q_3u7JwMENRcQ.png" /></figure><p>Hello everyone and welcome back to my blog! For this week’s project we will focus on creating an auto-scaling group of EC2 Instances.</p><p>One of the most important attributes of being a successful cloud or devops engineer is to deliver highly scalable and highly available cloud computing services to our customers. Engineers with our skill set are looked at as superheroes. We play the role of subject matter experts, consultants, teachers or even best friend. It doesn&#39;t matter, just so long as we can keep their platform up and running.</p><p>So, you may be wondering, where does auto scaling fit in this scenario? Well, by definition, auto scaling is a cloud computing technique for dynamically allocating computational resources. In my opinion, the key word in this definition is “dynamic”. It is extremely powerful due to the fact that auto scaling is dynamic and allows us to act quickly in the event of an emergency situation in which services are accidently deleted or lost during a catastrophic event. The ultimate benefit to auto scaling is that we can effortlessly get these resources back up into production in a form of automation. AWS offers these types of services in the form of cloud formation and AWS auto scaling.</p><p>Let’s log into our AWS platforms and get started.</p><p>First start by creating your virtual private cloud or “VPC”. Use the search bar to search for VPC. If you need to add this to your favorites, click the star next to VPC and then select VPC to move on to the next step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*OZJqVICASvo9tvx34-nVYg.png" /></figure><p>Select Create VPC.</p><p>On the left-hand side of the screen is where we will input our parameters for the VPC. For the most part the options are preselected for you, but if you like, you can select which ever setting is needed for your particular setup. Here is a glimpse of what I have selected for this project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*I_05l3z-fbaCLTfBFc6QIA.png" /></figure><p>Scroll down to the section labels “Number of Availability Zones”. AWS will automatically populate the number of public and private subnets for you, as well as the subnet CIDR blocks. For the purposes of this demo, I will also leave the default settings that AWS has provided.</p><p>After verifying and selecting the setting you want, click create VPC to continue.</p><p>Now for the next task in this project, we will begin setting up the Auto scaling group. This process can be somewhat tedious, but we will simplify it by using AWS Launch Templates.</p><p>After successfully verifying that your VPC resources have been created, go back to the main dashboard and search for “Launch Templates”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*uWsApqgMzLNqZ4VVLYrcNA.png" /></figure><p>Once you are in the EC2 launch templates dashboard, select “Create launch template”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/1*DIwok4zjCs9sKHuhyLKDBA.png" /></figure><p>So, this part is somewhat similar to the process of creating a simple EC2 and in theory that is what we are going to do here, but instead of doing them one at a time, we are going to create a template to create them all at once and put our Apache image on each of them with our newly created VPC.</p><p>Let’s start by giving our template a name. I will name my template “Rolands-Launch”.</p><p>Since I am launching an Apache webserver for this project, I will name my template version description “Apache”.</p><p>Now for those of you who are reading this that haven&#39;t done this before, AWS provides a guidance tool to help you set up your auto scaling group. For the purposes of this demo, I will select it as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*2hcUx81jEeU6LnaiZ94O6Q.png" /></figure><p>This next part should be very familiar to you as we will begin to select and configure our EC2 virtual machines.</p><p>You can select any image you want here but let&#39;s just keep it simple and select the Amazon Linux image. Also verify that the free tier has been selected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*E0QfhRFGEj1hlJdNXxirjA.png" /></figure><p>Under instance type, click the drop down and select “t2.micro”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*xT6xY-aH6_YxW6fIUK7fLw.png" /></figure><p>Under key pair, you can select a preconfigured key pair if you have one or you can select “Create new key pair” to create another one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*dp3E45_FeliFGGbimokiRA.png" /></figure><p>Continue down to Network settings. Select the box for “Create Security group”</p><p>Give your Security group a name and a description. Also, be sure to select the VPC from the drop-down menu we created for this project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*IHsAj_w-DlCU0dPTouingg.png" /></figure><p>Scan your page to find “Inbound Security group rules” and click the button for “Add security group rule”</p><p>In this menu, let’s add a rule for both ssh and HTTP. You will have to click “Add security group rule” a second time to add HTTP separately.</p><p>Verify that ssh is set to port 22 and HTTP is set to port 80. Also make sure the source types are set to “Anywhere”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*1yB0JxjIOoMUbdsxLqvTkg.png" /></figure><p>Next, click the drop down for “Advanced Network configuration” and then select “Add network interface”.</p><p>On the right-hand side of this menu, locate “Auto-assign public Ip” to select the drop-down menu and click “Enable”</p><p>Scroll down to “Advanced Details”</p><p>Locate “User data” at the very bottom. This text box is where we will input our script to deploy and update our EC2 virtual machines, install the Apache web server, and also install a tool for us to check the stability of our load balancer for the Auto scaling group.</p><p>Input the following commands into the user data text box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*kcUrJM0KWrkeqoV8mcmzZA.png" /></figure><p>Verify that everything has been typed correctly and select “Create launch template”</p><p>Now let’s create our auto scaling group.</p><p>Go back to the main dashboard and search for “EC2”. Once in the EC2 dashboard, on the left-hand side of the screen, scroll all the way down until you see “Auto Scaling”. Click the drop-down arrow and select “Auto Scaling groups”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W1IiIk-sUlBbF9WegWWzBQ.png" /></figure><p>Give your auto scaling group a name and under launch template, select the drop-down to find the launch template we just created. Click Next.</p><p>Under network, click the drop-down under VPC to locate the VPC we created earlier. Under Availability Zones and subnets, select all the public cloud subnets listed under this VPC. Scroll down and click next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*cvVCQr74Ira2LgSoP8HD-Q.png" /></figure><p>On the next page we will select a load balancer. Start by selecting Attach a new load balancer.</p><p>This section is somewhat straight forward. Select “Application Load Balancer”. After selecting the load balancer, AWS will automatically populate a load balancer name for you. For the “Load balancer scheme” select “Internet- facing”.</p><p>Under VPC, you should notice your availability zones. For each availability zone, select the drop down and select the public subnet for each zone.</p><p>Select the drop-down menu for “Default routing”</p><p>Select “Create a target group”</p><p>Upon selecting this, a new target group name will automatically be generated for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*7Z1XoHuWOqZbaGJDPBIOcg.png" /></figure><p>Scroll down to the bottom labeled “Additional Settings” and select the check box to enable “AWS CloudWatch” for monitoring. Click next.</p><p>We are now configuring our group size for our policies.</p><p>Input the desired capacities you would like for your ASG.</p><p>Scroll down to “Scaling policies” and select “Target Tracking Scaling policy”</p><p>Give your policy a name and click “Next”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*RieXoDhFaD0IaiNC3uvsWw.png" /></figure><p>Click next to skip “Add notifications”</p><p>Click next to skip “Add tags”</p><p>Verify the setting to make sure all the information is typed correctly on the preview page. After doing that, click “Create Auto Scaling group”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/258/1*9V-KLkwY5keEa_n00fJ_0w.png" /></figure><p>Now let’s verify that all our hard work has paid off!</p><p>Navigate back to the EC2 dashboard. You should notice the EC2 instance you created are running and labeled green showing it is in a health state.</p><p>Select one the public Ip address and put into your web browser</p><p>http://” your public Ipv4 address”</p><p>You should receive a web page showing the Apache web server is active!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-OlgES3EjYX7LTPMr25fjQ.png" /></figure><p>Now, let&#39;s perform a simple stress test to confirm that our load balancer is functioning properly.</p><p>Navigate back to the EC2 dashboard, click one of the EC2 instances and select connect.</p><p>Select connect on the “EC2 Instance connect” to establish connection to the terminal.</p><p>*Quick note* When stress testing the CPU, the timeout numbers are input in seconds. So, depending on the number of minutes you are wanting to check, you will have to calculate how many seconds that will be for the stress test. For this demo, I will run a stress test for 6 minutes and 30 seconds.</p><p>Once in the terminal, input the following command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/271/1*w73Qha0sYFGAmxplYgyWVg.png" /></figure><p>After about 6 1/2 minutes, you should receive a confirmation stating that the stress test was successful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*PaPZYN2ldo5cyXgIq56Blg.png" /></figure><p>And just like that, we’re done!</p><p>Thank you once again for visiting my blog.</p><p>Stay tuned for more projects in the upcoming weeks!</p><p>Stay safe and have a Happy Halloween!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbbf5f1707b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using the #!/she/bang to install Nginx webserver on AWS Linux server]]></title>
            <link>https://medium.com/@roland.c.adams/using-the-she-bang-to-install-nginx-webserver-on-aws-linux-webserver-83f2c67b462a?source=rss-7d028a7e6a79------2</link>
            <guid isPermaLink="false">https://medium.com/p/83f2c67b462a</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[bash]]></category>
            <dc:creator><![CDATA[Roland Adams]]></dc:creator>
            <pubDate>Sat, 22 Oct 2022 22:17:28 GMT</pubDate>
            <atom:updated>2022-10-24T02:21:51.862Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*s1yFCVJI_jlhqRJePnjQcA.png" /></figure><p>Hello everyone, and welcome back to my blog. For this week’s project we are going to use the shebang to deploy an AWS EC2 while automating the installation of Nginx on an AWS Linux ami.</p><p>Now, you may be asking, why is he using bash so much? Well, it’s not so much the tool that is being used. It is simply for the purpose of time saving automation. Automation is key during any workday, of anyone working in the cloud. Ask any Cloud Engineer, Site Reliability Engineer or DevOPS engineer what is one of the most important factors in being productive daily and I’m fairly certain they’ll say eliminating <a href="https://sre.google/sre-book/eliminating-toil/">toil</a>. So, let’s think about automation as a tool for hiring our own secretary to handle the small things, that way we can put our focus toward more important tasks.</p><p>So, what are you waiting for? Boot up that AWS portal and let’s create our own secretary using a small shebang script.</p><p>First thing we will do is from the AWS dashboard, in the search bar, search for and select EC2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i887xb9fopnKmJ3YJHjV6w.png" /></figure><p>If you need to or want to add EC2 to your favorites, you can do so, by clicking the star next to the EC2 name.</p><p>Once in the EC2 dashboard, select “Launch Instance”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*nwlUHw7H3Ho2CH7Cf7FEUg.png" /></figure><p>Let&#39;s give our instance a name. You can do this by typing in the search bar under “Name and tags”.</p><p>Scroll down until you see “Application and OS images”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*LSWjfORqxKQIsPjuUU_DBw.png" /></figure><p>For this project I will name my instance LUIT-Nginx since I will be using Nginx as my webserver for this project.</p><p>Select AWS Linux. Next, make sure that the server selected is “Free tier eligible”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*E0QfhRFGEj1hlJdNXxirjA.png" /></figure><p>Under Instance type, verify the “t2.micro” is selected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*xT6xY-aH6_YxW6fIUK7fLw.png" /></figure><p>Under “Key pair”, select “Create new Key pair”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*4QiMh9NW6szwnLt4KxZVJw.png" /></figure><p>After your new key pair has been created, make sure to hang on to it. We will need this later on in our project.</p><p>Continue to scroll down to “Network Settings”. Notice that “Allow SSH traffic from” is already pre-selected for you. Keep the default selection. On the right, you should see a drop-down menu labeled “Anywhere”. Click the drop-down box to select “My IP” and then check box to “Allow HTTP traffic from the internet”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*QVllSPS_4lD5oVQkivuv2g.png" /></figure><p>With our EC2 Instance now configured, let’s hire our secretary to complete the rest for us.</p><p>At the very bottom, you should see advanced details. Select “Advanced details”</p><p>Then scroll down to the “User data” text box. This is where we will input our script.</p><p>Input the following commands into the text box.</p><p><strong>#!/bin/bash</strong>- Bash Shebang script*</p><p><strong>sudo yum update -y</strong>- *Updates AWS Linux Server*</p><p><strong>sudo amazon-linux-extras install nginx1 -y</strong> -*Installs Nginx AWS server*</p><p><strong>sudo systemctl enable nginx</strong>- *Enables NGINX webserver*</p><p><strong>sudo systemctl start nginx</strong>- *starts NGINX webserver*</p><p>Your “User data” text box should look like this after inputting all commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*c8Ts1Ao2ZEqkhgxSCxK5yQ.png" /></figure><p>Verify all commands have been typed correctly and click “Launch Instance”</p><p>You should receive a green check showing that the EC2 instance has been deployed successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*gHBqsO3ZdxA4p5GRkLu5Vw.png" /></figure><p>Select “View all instances” in the bottom right of the screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/209/1*S5zooCb_7p4rY_fLdYwOmQ.png" /></figure><p>You should now be able to see the web server in the running state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*gHBqsO3ZdxA4p5GRkLu5Vw.png" /></figure><p>Now we will connect to our EC2 instance using an SSH client. The ssh client I’ve decided to use for this is Putty. If you need to download putty, you may do so by <a href="https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html">clicking here</a>. You can use any ssh client you want, but keep in mind that directions to log into your EC2 may be different depending on what you decide to use.</p><p>There are a few steps we will need to take to make this work.</p><p>First thing we will need to do here is to locate our saved key pair. We will need to convert our key pair into a .ppk format that is specific to Putty.</p><p>We will do this by using the Putty Key Generator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*Ur5oVymA51u_vFtOhygl0g.png" /></figure><p>With the Key Generator open, click “File” from the top left and then select “Load Private Key”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/215/1*jKRFbHOH4TmBlL1L_v9itA.png" /></figure><p>Now at this point you will need to navigate to the location where you saved your “pem” key. The documents folder will automatically default to search for ppk files. Click the drop-down arrow and select “All files”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/214/1*N_2tQGz0pflUdjMYxg6Whg.png" /></figure><p>Select your key and click “Open”.</p><p>Once the key has been uploaded, you will receive a status message showing the key has been successfully uploaded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*P-tM68O1PlCV5c_vyD9Flw.png" /></figure><p>Select “Save Private key” at the bottom, and select yes on the warning message.</p><p>Give your new ppk file a name and save it to the desktop as we will need it shortly.</p><p>We can now close the key Generator.</p><p>Next, open your putty ssh console.</p><p>We will now input the new credentials into the configuration console to connect to our EC2 instance.</p><p>Go to your AWS console and locate your IPV4 public Ip address. Copy the Ipv4 address and input “ec2-user@your ipv4 address” under the host name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/281/1*224DPoklopEHNa0aroKrCQ.png" /></figure><p>Give your session a name and click “Save”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/285/1*On9G3nhoNCOM5Pkl3fdPIA.png" /></figure><p>Next, we will need to reference our ppk file to the session.</p><p>On the left-hand side of the console, click “connection,” then click plus sign next to “SSH”, and then select “Auth”. Select “Browse” and then navigate to where you saved your generated ppk file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/253/1*Z74Cd8D5jl_0tlKHs-0INg.png" /></figure><p>Go back to “Session” at the top of the console, select your session name and click save to store your ppk file for this session.</p><p>Load your EC2 session, and then select “Yes” on the warning message.</p><p>For those who know and watch basketball, let me tap into my inner Mike Breen and say “BANG!!!!”. You should now be logged into your AWS EC2 instance using putty!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*njVakuDM1zx7qSG3ibzA6w.png" /></figure><p>Now, let&#39;s check on the status of our Nginx webserver using the following command, “ sudo systemctl status nginx”.</p><p>Notice that your Nginx webserver is running and in a healthy state notated in green.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*wvgQ2BvTelQBiee9hchZgw.png" /></figure><p>Let’s make one last check in the web browser before we conclude this project.</p><p>Go back to you AWS console and copy your public IPv4 address.</p><p>In your web browser, type “http://your Ipv4 address to render the nginx web page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_ib2Mw-0t-ILeyv1HkSRPw.png" /></figure><p>And just like that we have completed this project!</p><p>Thank you for visiting my blog. Please stay tuned for more projects to come!</p><p>Happy automating!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83f2c67b462a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating an AWS EC2 instance to host a website, while adding a user using a Bash Script.]]></title>
            <link>https://medium.com/@roland.c.adams/creating-an-aws-ec2-instance-to-host-a-website-while-adding-a-user-using-a-bash-script-f8dca33bae16?source=rss-7d028a7e6a79------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8dca33bae16</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[apache]]></category>
            <dc:creator><![CDATA[Roland Adams]]></dc:creator>
            <pubDate>Mon, 17 Oct 2022 14:48:59 GMT</pubDate>
            <atom:updated>2022-10-22T02:44:04.995Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*8MC7vAEedGmz_QIR60-qDQ.png" /></figure><p>Hello and Welcome back to my blog. For this week’s project we are going to create an AWS EC2 instance to host a web server using Apache.</p><p>The tools we will be using for this project will be:</p><ol><li>An <a href="https://signin.aws.amazon.com/signin?redirect_uri=https%3A%2F%2Faws.amazon.com%2Fmarketplace%2Fmanagement%2Fsignin%3Fstate%3DhashArgs%2523%26isauthcode%3Dtrue&amp;client_id=arn%3Aaws%3Aiam%3A%3A015428540659%3Auser%2Faws-mp-seller-management-portal&amp;forceMobileApp=0&amp;code_challenge=Lwb0q7iI6nTdqdye67H7BABpcTnmrLAgkXoJygf7OuM&amp;code_challenge_method=SHA-256">AWS</a> account. You can sign up for the free tier using any email address of your choice.</li><li>We will also be using a <a href="https://github.com/">GitHub</a> account for user account automation that will be explained later in this post.</li></ol><p>If you haven&#39;t already, create your accounts and let&#39;s get started!</p><p>The first thing we will do is provision an AWS EC2 instance. Amazon’s EC2 instance by definition is a virtual server in Amazon’s Elastic Compute Cloud (EC2) for running applications on the Amazon Web Services (AWS) infrastructure.</p><p>You can search for and find any tool needed in the AWS platform by using the search bar at the top.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4hvugsFIUUZCcQGycrNl5A.png" /></figure><p>Notice the star next to EC2 in menu. By selecting the star, you can add any option to your favorites. This will save you time later on by allowing you to avoid having to search through Amazon’s vast library of tools, if and when you would need the EC2 option again.</p><p>Search for EC2 in the search bar and select EC2.</p><p>Once in the EC2 dashboard, scan your screen until you locate “Launch Instance”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*x2MUnFbOoSEvmRz_V7Qmcw.png" /></figure><p>Select “Launch Instance”.</p><p>Once inside Launch Instance, let&#39;s start by giving our instance a name. You can do this by typing in the search bar under “Name and tags”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*jxZK5DupQN7jK7g-NZG1Ww.png" /></figure><p>I will name my EC2 “LUITwebserver”</p><p>Next scroll down until you see “Application and OS images”</p><p>For this lab I will be using Amazon Linux. You can also use Ubuntu or Red Hat Linux as well but be aware that the commands may change depending on the operating system you select.</p><p>Select Amazon Linux. Next make sure that the server selected is “Free tier eligible”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*n-EkDaDxetl4R6EjQejSEg.png" /></figure><p>Under Instance type, verify the “t2.micro” is selected.</p><p>Under “Key pair”, select “Create new Key pair”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*fxTanhLfuC4rILQ7O8iccw.png" /></figure><p>Give your key pair a name and keep the default settings for Key pair type and Private Key file format. “RSA” and “.pem”. Click “Create key pair”. Be sure to keep your key pair in a safe location as you will not be able to access this file again.</p><p>Next, scroll down to “Network Settings”. Notice that “Allow SSH traffic from” is already pre-selected for you. Keep the default selection. To the right, you should see a drop-down menu labeled “Anywhere”. Click the drop-down box to select “My IP” and then check box to “Allow HTTP traffic from the internet”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*RCHxGUxr8SAtK7-LN0K8XA.png" /></figure><p>At this point everything for the EC2 instance is configured.</p><p>We will now input our bash script to install and update our Apache web server.</p><p>At the very bottom, you should see advanced details. Select “Advanced details”</p><p>Then scroll down to the “User data” text box, where we will input our script.</p><p>Input the Following commands into the text box.</p><p>#!/bin/bash- *She-bang script*<br>sudo yum update -y — *updates Amazon Linux Server*<br>sudo yum install -y httpd — *installs Apache on the Web Server*<br>sudo systemctl start httpd- *Starts Apache web server*<br>sudo echo “&lt;h1&gt; “Your website heading” &lt;/h1&gt;”&gt;/var/www/html/index.html- *webpage heading*</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*l6hRJq3BoQhCnrSozTYL-Q.png" /></figure><p>Verify all commands have been typed correctly and click “Launch Instance”</p><p>If everything has been set up correctly you will receive a green check mark with “Success” on the next page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*6V1USdhhxDI2yJKfpR6-_g.png" /></figure><p>Select “View all instances” in the bottom right of the screen.</p><p>You should now be able to see the web server in the running state.</p><p>Select the check box to the left of your server&#39;s name and then click connect.</p><p>You should now be able to see the AWS shell terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*UThtKLFqkqA16X65_trAZg.png" /></figure><p>Close the terminal and go back to the details page of your EC2 instance.</p><p>Copy the Public Ipv4 address and go to your browser.</p><p>In the browser type http:// “your IP address”</p><p>You should now be able to see your Apache server running in the Web browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*d9xFRCqthr7MRBdcD_R05w.png" /></figure><p>Now on to Part 2 of our project!</p><p>Here we will use our<a href="https://github.com/"> GitHub</a> account to move our script over to our repository.</p><p>After logging in, find the section titles “Start a new repository”</p><p>Give your new repository a name of your choice and then click “Create a new repository”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*kjyUqWdVos5bGwBzArVAWA.png" /></figure><p>Select the check box beside the EC2 instance you created and click connect.</p><p>Once inside the terminal we will create the directory for our new repository.</p><p>Type the following command:</p><p>mkdir “your directory name” then “cd or “change directory” in the newly created directory to make sure you are in the correct folder.</p><p>Now we will need to install Git on our virtual machine.</p><p>Type the following command: “sudo yum install git”</p><p>Next type the following commands:</p><p>sudo git config — -global user.name “Your GitHub Username”</p><p>sudo git config — -global user.email “Your GitHub Email”</p><p>sudo git config — system core.editor vim</p><p>Now we will clone our repo with the following command:</p><p>git clone “Your Script Repository URL”</p><p>For now, the shell will most likely show there is nothing inside the newly created repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*RaIBr-yM1oSybJrfVbCmSA.png" /></figure><p>Type the command “ls” and verify that the repository is showing inside the directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*THBBg_2cs3s9nRD-i_WRpw.png" /></figure><p>This is the final step where we will add the script to our repository.</p><p>In the AWS shell, type the following command: “vim “Your script name”.sh</p><p>Type “i” for insert.</p><p>Next, copy and paste your script into the vim editor</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*Z2D2g5j2kxZhkvDE7oLfgw.png" /></figure><p>Press the “ESC” key, followed by “:wq” to save and exit the editor.</p><p>You should now be back at the terminal screen.</p><p>Type git add “Your script name.sh”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*wIOBx_ukcftOYG-_xe2raA.png" /></figure><p>Then type “git status” to verify that the correct changes are being made to the repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*Bl_H5RnYSBcKBisoR9nCtQ.png" /></figure><p>Next, we need to type out your commit message to let other users know that changes have been made to the repository. We can do this by using the following command “git commit -m Changes were made to Scripts for Bashed web server”.</p><p>You should now get a confirmation message letting you the changes have been made.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*EfXk97ByonBWt1O2X_7ekg.png" /></figure><p>Last but not least, we can finally push everything we have completed here to our GitHub repository using the following code: “git push -u origin”</p><ul><li>Note* The password for pushing into your new repository will have to be generated using the “Personal access token”. Click <a href="https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token">here</a> for supporting documentation on creating a Personal access token.</li></ul><p>You should now have confirmation that the file was pushed into your repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*HZfCFtuh9WdrVlOIA3Be0g.png" /></figure><p>Let&#39;s take one final check into our repository to make sure the file is there. Go to your repository on GitHub. Click on the name of the newly created repository to see the script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*kJBb2CfgJ_SkfE4q0kqWrA.png" /></figure><p>We did it!!! Thank you for visiting my blog once again. Stay tuned for more projects in the coming weeks. Be sure to shut down or terminate your virtual machines on your AWS portal. Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8dca33bae16" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GitHub Tutorial: How to Fork, Push, and Pull a Repository.]]></title>
            <link>https://medium.com/@roland.c.adams/github-tutorial-how-to-fork-push-and-pull-a-repository-beab8b097c67?source=rss-7d028a7e6a79------2</link>
            <guid isPermaLink="false">https://medium.com/p/beab8b097c67</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Roland Adams]]></dc:creator>
            <pubDate>Mon, 10 Oct 2022 12:54:45 GMT</pubDate>
            <atom:updated>2022-10-10T12:54:45.788Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*YXR6y8tX2ADUXGS-9d4oaQ.png" /></figure><p>Hello and welcome back to my blog. For this week’s project we will cover a few basics about GitHub. The topics we will cover here will consist of forking, pushing, and pulling from a repository.</p><p>Now as you read you may be wondering, what are the differences between Git and GitHub? Well to put it simply, Git is a version control system that lets you manage and keep track of your source code history, while GitHub is a cloud-based hosting service that lets you manage Git repositories. Git is also a free and open source. GitHub on the other hand is owned by Microsoft.</p><p>Now, let’s get started.</p><p>The only tools that will be needed for this project will be a GitHub account and a sandbox cloud server in Linode. The Linode server will be spun up using Centos 7.</p><p>The server itself will be hosted in Dallas, TX with a shared CPU of Linode 4 GB.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gNZVcwWTxB2mloFIzlheeg.png" /></figure><p>Next, if you have not done so already, create a <a href="https://github.com/">GitHub</a> account using the link provided.</p><p>Once you have your account created the first thing, what we will do is to create a Fork. A Fork allows you to copy and make changes to a repository without affecting the original repository.</p><p>For this project, I have my own repository along with the repository provided by <a href="https://github.com/LevelUpInTech/LevelUpTeam">Level Up In Tech</a>.</p><p>Once you have identified the repository you want to copy, you can create a fork by clicking the fork icon at the top right of the screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*2Xrw0sd7hUABuqrsJSv8jw.png" /></figure><p>You should now be able to see the Create a new fork home page.</p><p>One quick task we will do here before creating the fork, is to generate a PAT or Personal access token. Personal access tokens (PATs) are an alternative to using passwords for authentication to GitHub when using the <a href="https://docs.github.com/en/rest/overview/other-authentication-methods#via-oauth-and-personal-access-tokens">GitHub API</a> or the <a href="https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#using-a-token-on-the-command-line">command line</a>.</p><p>To create a token, click the drop-down arrow next to your username in the top right corner of the screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*Yo-i7Is8lFkKtbt2_JQFBw.png" /></figure><p>Once the drop-down is open, scroll down and click on settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/171/1*hP-0dFjqTi4qV6KZnzoxBw.png" /></figure><p>From here, look over to the left side of the screen and click on “Developer Settings”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/293/1*5ObGxxedah7m7UZqkKvnSg.png" /></figure><p>Then click on “Personal access Tokens” and select “Generate new token”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*IZBe3_JfQ6dqqPonABzruA.png" /></figure><p>Make sure to note what the PAT is being used for, then select what permissions you want to give the token from the menu available. Select Generate token.</p><p>After generating the token, you should notice a green check mark letting you know that your fork is ready to go. Be sure to copy the token. We will need it shortly.</p><p>Next, let&#39;s move back over to the ubuntu server that we provisioned in linode.</p><p>From the linode tab on the top right of the screen, select “Launch LISH Console”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jcaoOloQfZHWxWpPlzLA0g.png" /></figure><p>To log into the linode console, type root and input your password.</p><p>Now the fun part begins!</p><p>The first sudo command we will type in will install Git.</p><p>In your console, type the following command “sudo yum install git”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*omMzMVawjyh3nr5FFsLp8w.png" /></figure><p>Next, lets create a directory with to for our project. You can create a directory by using the “mkdir” command followed by whatever name you decide to use for your project. ex: ( mkdir “your directory name”)</p><p>Once you have your folder created, use the “cd” command to change directory into the folder you created. ex: (cd &quot;your directory name”)</p><p>Now is where we will use the Git commands to update and make changes to the linux.sh file.</p><p>Normally you would need to change to root to use these commands, but since we are using Linode for this project we have already logged in using the root command.</p><p>Type the following command into your server: “git config — — global user.name “your GitHub Username”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*P1ax7-7_5s4nefJeBjbFxQ.png" /></figure><p>Next, type “git config — — global user.email “your user email”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*9at9hlOX-bS0cKX9hjNpvQ.png" /></figure><p>Finally, type “git config — — system core.editor vim”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/1*_G25mWuFM67Urdhauq-5fA.png" /></figure><p>Next, we need the URL from our GitHub account to copy the repository from the GitHub account we want to clone.</p><p>To do this, go back to you GitHub account, go to the repository you created and find “code.” Make sure “HTTPS” is selected and copy your repository URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*OCDe_x5Ll7pZiaHbDuNoHw.png" /></figure><p>From here switch back to your terminal and type the following command: “git clone (The repository you want to clone)”</p><p>You should now be able to see the files located in your repository by typing the “ls” command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/372/1*uaFkMZEvdPB5Ab9b8uQQqQ.png" /></figure><p>For these next steps we will need the PAT or Personal access token we copied earlier.</p><p>We will type the “echo” command with the copied access token into the terminal:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/1*iI2elw6iRfyE--kT3ayvhQ.png" /></figure><p>Next, create a test file by using the touch command. You can name this file anything you want by typing the following command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*MeFhgAimGUuY2_pDQoa4Pw.png" /></figure><p>You can verify this file was created by using the “git status” or “ls” command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*2KeKWbtcPkjnrdb2xqpmlA.png" /></figure><p>Next, use the command “git add” to add the test file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/1*VGaw7WtqkB14BBy6yjiXZg.png" /></figure><p>You can verify the file was added by using the “git status” command.</p><p>Next, we will commit the file to the repository by using the “git commit” command. Use the following command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*bSUPvli-9B-KHq2xWPVc0Q.png" /></figure><p>Lastly, we will put the test file into our repository by using the “git push” command.</p><p>You should not be able to see the files being push into your repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*b5vAhF7wb176if0lv0V7rQ.png" /></figure><p>Now that your test file is showing inside the repository you cloned, we will edit a file inside the repository using vim. The file we will edit will be the “linux.sh” file.</p><p>Input the following command: “vim linux.sh”. Then type “i” to make changes to the file you want to make changes to.</p><p>Once the files have been edited. Press the escape key to exit the insert label. Followed by “:wq” to save and exit.</p><p>We will now add the file to the repository by inputting the following command: “git add” (The file you selected to edit)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*VaAL1SM8V8v4AGxwvFzu8Q.png" /></figure><p>We will not commit the file with the “git commit” command with a note letting anyone else know of the changes made to the updated file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/1*v6LeYjFPJGq-77FYfVnWoA.png" /></figure><p>Now we will push the commands using git push.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*-z6dgjHwhUrLYy1Qz4BT4w.png" /></figure><p>You can now go to GitHub and select the file to verify that the changes were made.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*8F9l45YWWSRTkG4Qh-MinQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*Fhebxn6RedbPxCWzlFUpgA.png" /></figure><p>Finally, we will create a pull request to send the files to our own repository.</p><p>Select “contribute”, from the drop-down menu and select “Open pull request”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*TQt0unwEGIT-R8dKUvCSIw.png" /></figure><p>Give the pull request a name followed by a message if needed. Click create pull request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*HaOd4kuvWOlsq6n9ue6Gwg.png" /></figure><p>You should now be able to verify the pull request was successful!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*3k8D57p9JVL7Xlqj83EK5A.png" /></figure><p>And just like that, this project is completed!!</p><p>Thank you for following along. Stay tuned for more projects in the coming weeks. Thank you for visiting my blog.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=beab8b097c67" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Installing a NGINX web server on Ubuntu 18.04 using a Bash Script.]]></title>
            <link>https://medium.com/@roland.c.adams/installing-a-nginx-web-server-on-ubuntu-18-04-using-a-bash-script-90eebf24d2f3?source=rss-7d028a7e6a79------2</link>
            <guid isPermaLink="false">https://medium.com/p/90eebf24d2f3</guid>
            <category><![CDATA[scripting]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[nginx]]></category>
            <dc:creator><![CDATA[Roland Adams]]></dc:creator>
            <pubDate>Fri, 23 Sep 2022 01:54:33 GMT</pubDate>
            <atom:updated>2022-09-25T19:49:47.943Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello and welcome to my page. For this project I will briefly walk through the process for installing a Nginx web server on Ubuntu 18.04 LTS server. Linux can be tedious to use especially while using it in the shell, but I will demonstrate how your workload can be simplified with this simple automation process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*k2ajyCl_B5SbBBcy19pSDg.png" /></figure><p>Before we get started, I would like to notate that the tool used to put together this project can be found on A Cloud Guru. I used cloud playground to deploy a simple cloud server using Ubuntu 18.04 LTS. The server is deployed as a medium server with 2 virtual CPUs with 4gbs of memory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*_7vEbQf0JSbTqz1dpo_6SA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*JZcdfEfeO2Dk8u0bOuxfJw.png" /></figure><p>The server itself takes about 5 minutes or so to deploy. So, without further or do, let&#39;s get these servers deployed!</p><p>While we are waiting for the servers to provision, I will outline the task list used to create the web server.</p><p>The instructions for this project are as follows:</p><p>Using an Ubuntu 18.04 LTS Server</p><ol><li>Update all packages on the server</li><li>Install a NGINX Web Server</li><li>Enable the NGINX Web Server</li><li>Grab the public IP of your server and send it to your coach to verify if we can access that test webpage over the internet!</li></ol><ul><li>Create and execute a bash script that does all of this to automate the process*</li></ul><p>Once the server has been provisioned, there will be a couple of things to notate here. All the information necessary to log into the shell can be found by clicking the drop-down arrow under the open terminal link.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/1*e4OgtVsaqmHkJwMBilvenw.png" /></figure><p>From here you can find all the information needed to log into the shell. For this project we will only be needing the username, temporary password and the public IPv4 address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*Wsfm9AEcvl-MXx5amT0JRA.png" /></figure><p>Once you have notated this information, feel free to click on the “Open Terminal” button to begin.</p><p>After opening the terminal copy and paste the credentials to log into the shell.</p><p>*Note* If the server you are working on is newly created you may be prompted to change the password for security purposes. If the password is typed incorrectly the server will time out and you will have to reconnect.</p><p>Let’s start by creating an update file. All commands in this project will be ran using the “super user do” or “sudo” commands which will allow us to temporarily elevate the current user account to have root privileges. In conjunction with the sudo command we will also be using the “touch” command to create a file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/1*H-O6k_nLu2WOYDgMkqTbGA.png" /></figure><p>*Quick note* Notice that after running the command we have been prompted to input the password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/439/1*2qy32iRhjgl9uLfSC2fkgA.png" /></figure><p>This shows the user that root privileges have been established. Once the password has been entered, we will no longer have to enter the password for verification.</p><p>After the correct password is entered lets now enter the command line text editor to build the script. There are several different kinds of text editors that can be used with Linux, but for this project we will be using nano. Type out the following command and press enter to run the text editor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*9_Y70kfBAtUkRulG8JkpSw.png" /></figure><p>Now is where the fun begins!!!</p><p>Inside the nano filing system is where all the magic happens. The type of magic we are using here is called the “shebang”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/106/1*eU-3PM5PcX_vcs8q5tdQ5g.png" /></figure><p>The “shebang” tells the bash interpreter what to do with the commands that we will be inputting into the text editor.</p><p>Now let’s input the commands one by one into the text editor to build the script.</p><p>The first two commands we will be inputting into the text editor are the update and upgrade commands. The commands make sure that our ubuntu server is up to date with the latest firmware and software.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/155/1*nIpnWtJCpRTLqAKLpuyuig.png" /></figure><p>Next, we will add an auto remove command to remove anything from the server that is not needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/181/1*EhRUzfEj9WWA1UlxN9bEwg.png" /></figure><p>The next two commands will be used to install Nginx onto the Ubuntu server, while allowing us to establish an HTTP connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/219/1*CE_wgLxHjUPL23kVe6UIEQ.png" /></figure><p>Notice the “ufw” command used for allowing HTTP. “ufw” stands for uncomplicated firewall which aims to make firewall configuration easy for this type of set up.</p><p>The next two commands we will type into the nano will allow us to check the status of our Nginx server to make sure that it is running properly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/187/1*6o5Eh57N8G0zlsupSxrQIw.png" /></figure><p>The last and final command we will type into the editor will allow us to curl the server to be able to obtain the IP address in the command line. “Curl” which stands for “client URL” is a developer tool used to transfer data to and from a server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/180/1*LPoFHa3AzqfhSMLCUYXE2g.png" /></figure><p>After inputting all commands into the text editor, double check all commands to make sure everything was typed correctly. Once this is done you can now close the text editor by pressing “CTRL + x”. The control function in the editor is notated by the up arrows next to the letters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/18/1*9QJDfS2CZRnN_FKmUFvryA.png" /></figure><p>After pressing ctrl + X, press “y” or yes to save the changes, followed by enter to exit the nano editor.</p><p>You should now be back as the main command line screen.</p><p>The last command we will type will update the permissions of the file. Type the following command into the command prompt:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*aAWJol3t_KqbH651YLVX_A.png" /></figure><p>You will be prompted to input your password because we are now changing the permissions from root, which means we will no longer be using “sudo” from here on out.</p><p>From here a simple “update” command will run the script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/265/1*5rUF9dC0oHzXS9ZQjW_oXQ.png" /></figure><p>Press enter and sit back and watch all your hard work and magic pay off!!</p><p>Once the script has finished running, you should notice the nginx server notated in green. This tells us that the server is up and running and in a healthy state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*tdR4GaKE-Rbivaf6L7163w.png" /></figure><p>At the very bottom of the screen, you will notice an IP address. Take note of the IP address and open your web browser.</p><p>Once you are in the web browser you can type “http://your_server_ip” to verify that your nginx server is running.</p><p>*Note “Your_server_ip” is the Ip address at the bottom of the screen in you command line*.</p><p>You should now be able to see the nginx server running in your browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*ukAESmzQGK68zlqlxSDYIQ.png" /></figure><p>Congratulations! You have successfully used a bash script to automate a nginx web server onto an Ubuntu 18.04 LTS server.</p><p>I really hope you have enjoyed this tutorial. Stay tuned for more projects to come in the coming weeks. Thank you for visiting.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90eebf24d2f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>