<?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 Larry Wright on Medium]]></title>
        <description><![CDATA[Stories by Larry Wright on Medium]]></description>
        <link>https://medium.com/@wrijlarr?source=rss-b4078549c4bf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*XFZzPReVcTJfKYpt_hDjPA.jpeg</url>
            <title>Stories by Larry Wright on Medium</title>
            <link>https://medium.com/@wrijlarr?source=rss-b4078549c4bf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 09:32:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@wrijlarr/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[Building Production-Ready Image Pipelines: AWS Rekognition Meets GitHub Actions]]></title>
            <link>https://medium.com/@wrijlarr/building-production-ready-image-pipelines-aws-rekognition-meets-github-actions-4ce40e5bb00f?source=rss-b4078549c4bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ce40e5bb00f</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[amazon-rekognition]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[dynamodb]]></category>
            <dc:creator><![CDATA[Larry Wright]]></dc:creator>
            <pubDate>Tue, 02 Dec 2025 20:09:23 GMT</pubDate>
            <atom:updated>2025-12-02T20:09:23.558Z</atom:updated>
            <content:encoded><![CDATA[<p>A hands-on guide to creating a cloud-native CI/CD pipeline that automatically labels images using AI</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XUSgAGANAEyWk3vY.png" /></figure><h3>Introduction</h3><p>In today’s cloud-first world, automating repetitive tasks isn’t just convenient , it’s essential. Whether you’re managing a photo library, building a content moderation system, or analyzing visual data at scale, manual image labeling quickly becomes a bottleneck.</p><p>In this tutorial, I’ll walk you through building an <strong>automated image analysis pipeline</strong> that uses <strong>Amazon Rekognition</strong>, <strong>DynamoDB</strong>, and <strong>GitHub Actions</strong> to detect and label objects in images completely hands-free.</p><p>By the end of this guide, you’ll have a production-ready pipeline that:</p><ul><li>Automatically analyzes images when you push them to GitHub</li><li>Stores labeled results in DynamoDB with confidence scores</li><li>Separates beta and production environments for safe testing</li><li>Follows DevSecOps best practices with secure credential management</li></ul><p><strong>What makes this project special?</strong> It demonstrates real-world CI/CD patterns, cloud-native architecture, and infrastructure automation, skills that are highly valued in modern software engineering roles.</p><h3>What We’re Building</h3><p>Our pipeline follows a simple but powerful workflow:</p><ol><li><strong>Developer adds images</strong> to the images/ folder and creates a pull request</li><li><strong>Beta workflow triggers</strong> automatically, analyzing images in a test environment</li><li><strong>Results are stored</strong> in a beta DynamoDB table for review</li><li><strong>After PR approval</strong>, merging triggers the production workflow</li><li><strong>Production analysis</strong> runs and stores final results in a separate table</li></ol><p>This separation of environments ensures that experimental changes don’t affect production data, a critical practice in professional development.</p><h3>Architecture Overview</h3><p>Here’s how the components work together:</p><pre>GitHub Repository (images/)  <br>    ↓  <br>GitHub Actions Workflow (Beta/Production)  <br>    ↓  <br>Amazon S3 (Image Storage)  <br>    ↓  <br>Amazon Rekognition (AI Analysis)  <br>    ↓  <br>Amazon DynamoDB (Results Storage)</pre><p><strong>Key AWS Services:</strong></p><ul><li><strong>S3</strong>: Stores uploaded images</li><li><strong>Rekognition</strong>: AI-powered image analysis (detects objects, scenes, text)</li><li><strong>DynamoDB</strong>: NoSQL database for storing labels and metadata</li><li><strong>IAM</strong>: Secure access management</li></ul><p><strong>CI/CD Tool:</strong></p><ul><li><strong>GitHub Actions</strong>: Automates the entire workflow</li></ul><h3>Step 1: Setting Up AWS Resources</h3><h3>Create an S3 Bucket</h3><pre>aws s3 mb s3://rekognition-images-js-2025 --region us-east-1</pre><h3>Create DynamoDB Tables</h3><pre># Beta table  <br>aws dynamodb create-table \  <br>    --table-name beta_results \  <br>    --attribute-definitions AttributeName=filename,AttributeType=S \  <br>    --key-schema AttributeName=filename,KeyType=HASH \  <br>    --billing-mode PAY_PER_REQUEST \  <br>    --region us-east-1  <br>  <br># Production table  <br>aws dynamodb create-table \  <br>    --table-name prod_results \  <br>    --attribute-definitions AttributeName=filename,AttributeType=S \  <br>    --key-schema AttributeName=filename,KeyType=HASH \  <br>    --billing-mode PAY_PER_REQUEST \  <br>    --region us-east-1</pre><h3>Create an IAM User</h3><pre># Create user  <br>aws iam create-user --user-name rekognition-pipeline-user  <br>  <br># Attach required policies  <br>aws iam attach-user-policy --user-name rekognition-pipeline-user --policy-arn arn:aws:iam::aws:policy/AmazonS3FullAccess  <br>aws iam attach-user-policy --user-name rekognition-pipeline-user --policy-arn arn:aws:iam::aws:policy/AmazonRekognitionFullAccess  <br>aws iam attach-user-policy --user-name rekognition-pipeline-user --policy-arn arn:aws:iam::aws:policy/AmazonDynamoDBFullAccess  <br>  <br># Generate access keys  <br>aws iam create-access-key --user-name rekognition-pipeline-user</pre><p><strong>Important:</strong> Save the AccessKeyId and SecretAccessKeyyou&#39;ll need them for GitHub Secrets.</p><h3>Step 2: Building the Python Script</h3><p>The core of our pipeline is analyze_image.py, which handles:</p><ul><li>Uploading images to S3</li><li>Analyzing them with Rekognition</li><li>Storing results in DynamoDB</li></ul><p>Key features:</p><ul><li>Environment validation</li><li>Error handling</li><li>Confidence threshold filtering (70%)</li><li>Timestamped results with branch tracking</li></ul><h3>Step 3: Creating GitHub Actions Workflows</h3><h3>Beta Workflow</h3><p>Triggers on pull requests to test changes safely before production.</p><h3>Production Workflow</h3><p>Triggers on merge to main, processing images in the production environment.</p><p>Both workflows:</p><ul><li>Check out code</li><li>Set up Python environment</li><li>Install dependencies</li><li>Configure AWS credentials</li><li>Run the analysis script</li></ul><h3>Step 4: Configuring GitHub Secrets</h3><p>Navigate to: <strong>Settings → Secrets and variables → Actions</strong></p><p>Add these 6 secrets:</p><p>Secret NameValueAWS_ACCESS_KEY_IDYour IAM access key IDAWS_SECRET_ACCESS_KEYYour IAM secret access keyS3_BUCKETrekognition-images-####-AWS_REGIONus-east-1DYNAMODB_TABLE_BETAbeta_resultsDYNAMODB_TABLE_PRODprod_results</p><h3>Step 5: Testing the Pipeline</h3><h3>Beta Test</h3><pre># Create branch  <br>git checkout -b feature/add-test-images  <br>  <br># Add images  <br>cp ~/Downloads/my-photo.jpg images/  <br>  <br># Commit and push  <br>git add images/  <br>git commit -m &quot;feat: add test images for analysis&quot;  <br>git push origin feature/add-test-images</pre><p>Create a pull request and watch the beta workflow run.</p><h3>Production Test</h3><p>Merge the pull request to trigger the production workflow.</p><h3>Step 6: Verifying Results</h3><pre># View production results  <br>aws dynamodb scan --table-name prod_results --region us-east-1 --output json | jq &#39;.Items&#39;</pre><h3>Example Output</h3><pre>{  <br>  &quot;filename&quot;: &quot;rekognition-input/DevOps.jpg&quot;,  <br>  &quot;branch&quot;: &quot;main&quot;,  <br>  &quot;labels&quot;: &quot;[{\&quot;Name\&quot;: \&quot;Hand\&quot;, \&quot;Confidence\&quot;: 99.97}, {\&quot;Name\&quot;: \&quot;Person\&quot;, \&quot;Confidence\&quot;: 99.97}]&quot;,  <br>  &quot;timestamp&quot;: &quot;2025-12-02T19:21:28.459260Z&quot;  <br>}</pre><h3>Key Takeaways</h3><p>This project demonstrates:</p><ol><li><strong>CI/CD Automation</strong>: GitHub Actions automates the entire workflow</li><li><strong>Cloud-Native Architecture</strong>: Fully serverless using AWS managed services</li><li><strong>Environment Separation</strong>: Beta and production environments prevent data corruption</li><li><strong>DevSecOps</strong>: Secure credential management with GitHub Secrets</li><li><strong>Infrastructure as Code</strong>: All resources defined in code for reproducibility</li></ol><h3>Real-World Applications</h3><p>This pipeline pattern can be adapted for:</p><ul><li><strong>Content moderation</strong>: Automatically flag inappropriate images</li><li><strong>E-commerce</strong>: Auto-tag product images for search</li><li><strong>Medical imaging</strong>: Detect anomalies in X-rays or scans</li><li><strong>Security</strong>: Analyze surveillance footage for objects or people</li><li><strong>Social media</strong>: Automatically generate image descriptions</li></ul><h3>Conclusion</h3><p>Building automated pipelines like this one is a valuable skill in today’s cloud-first world. You’ve learned how to integrate multiple AWS services, automate workflows with GitHub Actions, and follow DevSecOps best practices.</p><p><strong>For complete implementation details, code, and documentation</strong>, visit the <a href="https://github.com/wrijlarr1431/rekognition-image-pipeline">GitHub repository</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ce40e5bb00f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Serverless Audio Pipeline: From Text to Speech in Seconds]]></title>
            <link>https://medium.com/@wrijlarr/building-a-serverless-audio-pipeline-from-text-to-speech-in-seconds-9c0510f3c288?source=rss-b4078549c4bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c0510f3c288</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[cloud-engineering]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[s3-bucket]]></category>
            <dc:creator><![CDATA[Larry Wright]]></dc:creator>
            <pubDate>Tue, 25 Nov 2025 18:12:32 GMT</pubDate>
            <atom:updated>2025-11-25T18:12:32.649Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Jg-Caz86eckPqa8G.png" /></figure><h3>How I Automated Educational Content Delivery with AWS Polly, S3, and GitHub Actions</h3><p><em>A deep dive into creating a hands-free text-to-speech system with environment-based deployments</em></p><h3>The Challenge</h3><p>Educational content accessibility is crucial in today’s digital learning landscape. I wanted to create a system that could automatically transform written educational material into high-quality audio files without any manual intervention. The goal was simple: update text, push to GitHub, and let automation handle the rest.</p><p>This article walks through how I built a complete serverless pipeline using Amazon Polly’s Neural voice technology, S3 storage, and GitHub Actions for continuous deployment.</p><h3>The Vision</h3><p>I set out to accomplish several key objectives:</p><ul><li><strong>Eliminate manual audio generation</strong> by automating the entire text-to-speech process</li><li><strong>Create a review system</strong> where content changes generate preview audio before going live</li><li><strong>Implement proper deployment stages</strong> separating preview and production environments</li><li><strong>Maintain security standards</strong> by never exposing AWS credentials in code</li><li><strong>Build a scalable solution</strong> that leverages serverless architecture</li><li><strong>Document everything</strong> so others could replicate and extend the system</li></ul><h3>The Solution Architecture</h3><h3>The Brain: Python Automation Script</h3><p>I developed synthesize.py as the core engine of this pipeline. Rather than building a monolithic script, I focused on creating a modular, environment-aware system that adapts based on where it&#39;s running.</p><p><strong>The script handles five critical tasks:</strong></p><ol><li><strong>Environment Validation</strong> — Ensures all necessary configuration exists before proceeding</li><li><strong>Content Ingestion</strong> — Reads the text file and prepares it for synthesis</li><li><strong>Audio Generation</strong> — Communicates with Amazon Polly to create natural-sounding speech</li><li><strong>Cloud Upload</strong> — Transfers the audio file to S3 with environment-specific naming</li><li><strong>Cleanup</strong> — Removes temporary local files to keep the workspace clean</li></ol><p><strong>Design Philosophy:</strong></p><p>I built this script to be <strong>configuration-driven</strong> rather than hardcoded. Every deployment-specific detail, AWS credentials, bucket names, regions, environment types , comes from environment variables. This means the same code runs identically in local development, beta testing, and production deployment.</p><pre># The script adapts to its environment  <br>environment = os.environ.get(&#39;ENVIRONMENT&#39;, &#39;dev&#39;)  <br>bucket_name = os.environ[&#39;S3_BUCKET_NAME&#39;]  <br>region = os.environ[&#39;AWS_REGION&#39;]  <br>  <br># Dynamic file naming based on environment  <br>output_filename = f&#39;{environment}.mp3&#39;  <br>s3_path = f&#39;polly-audio/{output_filename}&#39;</pre><p>This flexibility proved invaluable during testing and deployment.</p><h3>The Automation Layer: Dual-Environment Workflows</h3><p>Rather than a single workflow, I implemented <strong>two distinct automation pipelines</strong> that trigger at different stages of the development cycle.</p><h3>Preview Pipeline: The Safety Net</h3><p><strong>Workflow File:</strong> on_pull_request.yml</p><p><strong>Activation Point:</strong> Whenever someone proposes changes to speech.txt via a Pull Request</p><p>This workflow serves as a quality gate. Before any content reaches production, the system:</p><ul><li>Spins up a fresh Ubuntu environment</li><li>Installs Python 3.11 and required dependencies</li><li>Authenticates with AWS using secured credentials</li><li>Generates a preview audio file</li><li>Uploads it as beta.mp3 to S3</li><li><strong>Posts a detailed comment directly on the Pull Request</strong> with download instructions</li></ul><p>This automated feedback loop means reviewers can actually <em>listen</em> to the changes before approving them, a game-changer for content quality control.</p><h3>Production Pipeline: The Deployment Engine</h3><p><strong>Workflow File:</strong> on_merge.yml</p><p><strong>Activation Point:</strong> When a Pull Request gets merged into the main branch</p><p>Once content passes review and merges, this workflow takes over:</p><ul><li>Executes the same setup process</li><li>Runs the synthesis script with production configuration</li><li>Uploads the final audio as prod.mp3</li><li><strong>Generates a deployment summary</strong> visible in the Actions dashboard</li></ul><p>This separation creates a clear boundary between testing and production, mirroring professional software development practices.</p><h3>Security: Doing It Right</h3><p>One of my non-negotiables was <strong>zero hardcoded credentials</strong>. I’ve seen too many projects with API keys committed to repositories, and I wasn’t going to make that mistake.</p><h3>My Security Strategy:</h3><p><strong>GitHub Secrets as the Single Source of Truth</strong></p><p>Every sensitive value lives in GitHub’s encrypted secrets storage:</p><pre>AWS_ACCESS_KEY_ID       → IAM user access key  <br>AWS_SECRET_ACCESS_KEY   → IAM user secret key  <br>S3_BUCKET_NAME          → Target storage bucket  <br>AWS_REGION              → AWS region identifier</pre><p><strong>Least-Privilege IAM Configuration</strong></p><p>I created a dedicated IAM user (polly-pipeline-user) with <em>only</em> the permissions needed:</p><ul><li>Access to Amazon Polly for speech synthesis</li><li>Access to the specific S3 bucket for file uploads</li><li>Nothing more, nothing less</li></ul><p><strong>Local Development Protection</strong></p><p>My .gitignore file explicitly excludes:</p><ul><li>Virtual environment directories</li><li>Generated audio files</li><li>AWS credential files</li><li>Any temporary or sensitive data</li></ul><p>This multi-layered approach means credentials never touch version control, and the automation environment has exactly the access it needs — no more, no less.</p><h3>The AWS Foundation</h3><h3>Storage Strategy: S3 Organization</h3><p>I structured the S3 bucket with clarity in mind:</p><pre>s3://polly-audio-js-1234/  <br>└── polly-audio/  <br>    ├── beta.mp3    → Preview/review audio  <br>    ├── prod.mp3    → Live production audio  <br>    └── dev.mp3     → Local testing audio</pre><p>This folder structure makes it immediately clear which audio file serves which purpose.</p><h3>Voice Selection: Why Neural Matters</h3><p>I chose Amazon Polly’s <strong>Neural engine</strong> with the <strong>Joanna voice</strong> for a specific reason: quality. Standard TTS voices often sound robotic and monotone. Neural voices use deep learning to produce speech that sounds remarkably human — with natural intonation, breathing patterns, and emotional expression.</p><p>For educational content, this quality difference is crucial. Students are more likely to engage with content that sounds like a real instructor rather than a computer.</p><h3>Testing: Proving It Works</h3><p>I approached testing methodically, validating each layer before moving to the next.</p><h3>Local Validation First</h3><p>Before touching GitHub Actions, I ran the script on my local machine:</p><pre># Configured local environment  <br>export S3_BUCKET_NAME=&#39;polly-audio-js-1234&#39;  <br>export ENVIRONMENT=&#39;dev&#39;  <br>export AWS_REGION=&#39;us-east-1&#39;  <br>  <br># Executed the script  <br>python synthesize.py</pre><p><strong>Result:</strong> The script successfully generated audio and uploaded dev.mp3 to S3. I downloaded it, listened to it, and confirmed the quality met expectations.</p><h3>Preview Workflow Validation</h3><p>Next, I tested the Pull Request workflow:</p><ol><li>Created a feature branch with modified content</li><li>Pushed to GitHub and opened a Pull Request</li><li>Watched the workflow execute in real-time</li><li>Verified the automated PR comment appeared with correct details</li><li>Downloaded beta.mp3 from S3 and confirmed it matched the new content</li></ol><p><strong>Result:</strong> The preview system worked flawlessly, providing reviewers with immediate audio feedback.</p><h3>Production Workflow Validation</h3><p>Finally, I tested the production deployment:</p><ol><li>Merged the Pull Request to the main branch</li><li>Monitored the production workflow execution</li><li>Checked the workflow summary for deployment confirmation</li><li>Verified prod.mp3 appeared in S3 with updated content</li><li>Confirmed both beta.mp3 and prod.mp3 coexisted without conflicts</li></ol><p><strong>Result:</strong> The production pipeline deployed successfully, and the S3 bucket contained both environment versions as designed.</p><h3>What This Project Showcases</h3><h3>Cloud Architecture Skills</h3><ul><li><strong>Service Integration:</strong> Connected Polly, S3, and IAM into a cohesive system</li><li><strong>Storage Design:</strong> Created logical, scalable S3 folder structures</li><li><strong>Security Implementation:</strong> Applied least-privilege principles and secret management</li><li><strong>Serverless Architecture:</strong> Built a solution with no servers to manage</li></ul><h3>Software Development Practices</h3><ul><li><strong>Modular Code:</strong> Wrote reusable, testable Python functions</li><li><strong>Environment Awareness:</strong> Built configuration-driven code that adapts to context</li><li><strong>Error Handling:</strong> Implemented validation and graceful failure mechanisms</li><li><strong>Clean Code:</strong> Used meaningful variable names and comprehensive comments</li></ul><h3>DevOps &amp; Automation Expertise</h3><ul><li><strong>CI/CD Pipelines:</strong> Designed multi-stage deployment workflows</li><li><strong>Event-Driven Automation:</strong> Triggered actions based on repository events</li><li><strong>Infrastructure as Code:</strong> Defined workflows in version-controlled YAML</li><li><strong>Monitoring &amp; Feedback:</strong> Created automated notifications and summaries</li></ul><h3>Professional Practices</h3><ul><li><strong>Documentation:</strong> Wrote clear setup instructions and usage guides</li><li><strong>Testing Strategy:</strong> Validated locally before deploying to automation</li><li><strong>Security Consciousness:</strong> Protected credentials and followed best practices</li><li><strong>Scalability Thinking:</strong> Built a foundation that can grow with future needs</li></ul><h3>The Technical Stack</h3><p><strong>Cloud Platform:</strong></p><ul><li>Amazon Web Services (AWS)</li><li>Polly (Neural TTS with Joanna voice)</li><li>S3 (Object storage with organized prefixes)</li><li>IAM (User and permission management)</li></ul><p><strong>Automation Platform:</strong></p><ul><li>GitHub Actions (Workflow orchestration)</li><li>GitHub Secrets (Encrypted credential storage)</li></ul><p><strong>Development Tools:</strong></p><ul><li>Python 3.11 (Core scripting language)</li><li>boto3 (AWS SDK for Python)</li><li>Git (Version control)</li></ul><p><strong>Development Environment:</strong></p><ul><li>VS Code (Code editor)</li><li>Virtual environments (Dependency isolation)</li><li>AWS CLI (Local testing and verification)</li></ul><h3>Real-World Applications</h3><p>This pipeline architecture can be adapted for numerous use cases:</p><p><strong>Education &amp; Training:</strong></p><ul><li>Converting course materials to audio for accessibility</li><li>Creating audio study guides from written notes</li><li>Generating podcast-style lectures from transcripts</li></ul><p><strong>Content Creation:</strong></p><ul><li>Automatically creating audio versions of blog posts</li><li>Producing narrated versions of documentation</li><li>Building audio newsletters from written content</li></ul><p><strong>Accessibility:</strong></p><ul><li>Making written content available to visually impaired users</li><li>Providing audio alternatives for reading-challenged learners</li><li>Supporting multi-modal learning preferences</li></ul><p><strong>Business Applications:</strong></p><ul><li>Automating customer notification audio</li><li>Creating voice prompts for IVR systems</li><li>Generating audio reports from text data</li></ul><h3>Lessons Learned</h3><h3>What Worked Well:</h3><p><strong>1. Local Testing First</strong><br> Running the script locally before implementing automation saved hours of debugging. I could iterate quickly without waiting for GitHub Actions to spin up.</p><p><strong>2. Environment Variables</strong><br> Making everything configurable through environment variables meant I never had to modify code when moving between environments.</p><p><strong>3. Incremental Development</strong><br> Building the Python script first, then adding one workflow, then the second, made troubleshooting straightforward.</p><p><strong>4. Clear Documentation</strong><br> Writing the README as I built the project (rather than after) ensured I didn’t forget important setup steps.</p><h3>Challenges Overcome:</h3><p><strong>1. Workflow Trigger Specificity</strong><br> Initially, my workflows triggered on <em>any</em> file change. I refined them to only trigger when speech.txt changed, reducing unnecessary runs.</p><p><strong>2. S3 Path Consistency</strong><br> I had to ensure the script and workflows used identical S3 paths. Creating a consistent naming convention (polly-audio/{environment}.mp3) solved this.</p><p><strong>3. Secret Management</strong><br> Understanding how GitHub Secrets work and how to reference them in workflows took some experimentation, but the security benefits were worth it.</p><h3>Key Takeaways</h3><h3>Technical Insights:</h3><ol><li><strong>Serverless is Powerful</strong> — No servers to manage, automatic scaling, efficient resource usage</li><li><strong>Neural TTS is Impressive</strong> — The quality difference from standard voices is remarkable</li><li><strong>GitHub Actions is Versatile</strong> — It’s not just for code deployment; it’s for any automation</li><li><strong>AWS Integration is Smooth</strong> — boto3 makes working with AWS services straightforward</li></ol><h3>Professional Growth:</h3><ol><li><strong>Security Matters</strong> — Taking time to implement proper credential management pays dividends</li><li><strong>Documentation is Essential</strong> — Future-you (and others) will thank present-you for clear docs</li><li><strong>Testing Saves Time</strong> — Validating locally before automating prevents frustrating debugging cycles</li><li><strong>Simplicity Wins</strong> — The best solutions are often the simplest ones that solve the problem</li></ol><h3>Wrapping Up</h3><p>Building this automated text-to-speech pipeline taught me valuable lessons about cloud architecture, automation, and professional development practices. What started as a simple idea, “I want to convert text to audio automatically”, evolved into a production-ready system with proper environment separation, security controls, and deployment automation.</p><p>The beauty of this solution is its simplicity. There are no complex frameworks, no elaborate infrastructure, no expensive services. Just a Python script, two GitHub Actions workflows, and a couple of AWS services working together seamlessly.</p><p>Whether you’re building educational platforms, content automation tools, or accessibility features, this architecture provides a solid, scalable foundation. The principles apply beyond text-to-speech: environment-based deployments, secure credential management, and automated testing are universal best practices.</p><p>If you’re interested in cloud automation, DevOps, or AWS projects, I’d love to connect and discuss how these patterns can be applied to other challenges.</p><p><strong>GitHub Repository:</strong> <a href="https://github.com/wrijlarr1431/luit-nov-2025-polly-audio-pipeline">https://github.com/wrijlarr1431/luit-nov-2025-polly-audio-pipeline</a></p><p><strong>LinkedIn: </strong><a href="https://www.linkedin.com/in/larrylwright/">https://www.linkedin.com/in/larrylwright/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c0510f3c288" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Automated Repository Standards Using Python, GitHub Actions, and AWS CloudWatch]]></title>
            <link>https://medium.com/@wrijlarr/how-i-automated-repository-standards-using-python-github-actions-and-aws-cloudwatch-02ae7d281f1e?source=rss-b4078549c4bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/02ae7d281f1e</guid>
            <category><![CDATA[cloudwatch]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Larry Wright]]></dc:creator>
            <pubDate>Tue, 18 Nov 2025 19:09:40 GMT</pubDate>
            <atom:updated>2025-11-18T19:09:40.519Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gVwP_U9YMxcBaFFs.png" /></figure><h3>The Beginning: A Problem I Could Actually Solve</h3><p>The scenario: a platform team managing dozens of repositories, and developers kept forgetting the basics. README files? Missing. .gitignore files? Nowhere to be found. Someone had to manually check every single repository, every single week. Hours wasted.</p><p>The requirements were clear: “We need automation. Something that blocks bad pull requests and logs everything to CloudWatch. Beta and prod environments. Can you build it?”</p><p>I thought about my Python training from the previous month. Loops, functions, exit codes. I thought about the GitHub Actions overview we’d covered. I thought about CloudWatch, which I’d barely touched.</p><p>Then I said yes.</p><h3>Day One: Starting with What I Knew</h3><p>I opened VS Code and stared at a blank Python file. check_required_files.py. The name was straightforward enough. The script needed to do one thing: check if files exist.</p><p>I started typing. Use os.path.exists(). Loop through the list. Keep it simple.</p><pre>import os<br>import sys<br></pre><pre>def check_required_files():<br>    &quot;&quot;&quot;<br>    Checks for the presence of required files in the repository root.<br>    <br>    Returns:<br>        bool: True if all required files exist, False otherwise<br>    &quot;&quot;&quot;<br>    # Define required files<br>    required_files = [<br>        &#39;README.md&#39;,<br>        &#39;.gitignore&#39;<br>    ]<br>    <br>    # Track missing files<br>    missing_files = []<br>    <br>    # Check each required file<br>    for file in required_files:<br>        if not os.path.exists(file):<br>            missing_files.append(file)<br>    <br>    # Report results<br>    if missing_files:<br>        print(&quot;ERROR: The following required files are missing:&quot;)<br>        for file in missing_files:<br>            print(f&quot;  - {file}&quot;)<br>        return False<br>    <br>    # Pass silently if all files present<br>    return True<br></pre><pre>if __name__ == &quot;__main__&quot;:<br>    # Run the check<br>    if check_required_files():<br>        sys.exit(0)  # Success<br>    else:<br>        sys.exit(1)  # Failure</pre><p>Forty lines. That’s all it took. I tested it in my terminal.</p><pre>python3 check_required_files.py<br>echo $?</pre><p>0. Success. The files were there.</p><p>I deleted .gitignore temporarily and ran it again.</p><pre>ERROR: The following required files are missing:<br>  - .gitignore</pre><p>Exit code 1. Perfect. The script worked. I restored the file and committed my code.</p><pre>git add check_required_files.py<br>git commit -m &quot;Add Python script to check required files&quot;<br>git push</pre><p>One small win. But I wasn’t done yet.</p><h3>The Real Challenge: Making It Automatic</h3><p>A Python script that runs on my laptop isn’t automation. It’s just a tool someone has to remember to use. The real challenge was making it run automatically every time someone opened a pull request.</p><p>That meant GitHub Actions.</p><p>I’d learned the basics of GitHub Actions, but I’d never actually built a workflow from scratch. I opened the documentation and started reading. YAML syntax. Triggers. Jobs. Steps.</p><p>I created the directory structure:</p><pre>mkdir -p .github/workflows</pre><p>Then I created my first workflow: on_pull_request.yml. This would run every time someone opened a PR.</p><p>The workflow needed to:</p><ol><li>Check out the code</li><li>Set up Python</li><li>Run my validation script</li><li>If successful, log to AWS CloudWatch</li></ol><p>Here’s what I wrote:</p><pre>name: Required Files Check (Beta)</pre><pre>on:<br>  pull_request:<br>    branches:<br>      - main</pre><pre>jobs:<br>  validate-and-log:<br>    runs-on: ubuntu-latest<br>    <br>    steps:<br>      - name: Checkout code<br>        uses: actions/checkout@v4<br>      <br>      - name: Set up Python<br>        uses: actions/setup-python@v5<br>        with:<br>          python-version: &#39;3.11&#39;<br>      <br>      - name: Run required files check<br>        run: python3 check_required_files.py<br>      <br>      - name: Configure AWS credentials<br>        if: success()<br>        uses: aws-actions/configure-aws-credentials@v4<br>        with:<br>          aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}<br>          aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}<br>          aws-region: ${{ secrets.AWS_REGION }}<br>      <br>      - name: Create CloudWatch log stream<br>        if: success()<br>        run: |<br>          LOG_STREAM_NAME=$(date -u +&quot;%Y-%m-%d_%H-%M-%S&quot;)<br>          echo &quot;LOG_STREAM_NAME=$LOG_STREAM_NAME&quot; &gt;&gt; $GITHUB_ENV<br>          <br>          aws logs create-log-stream \<br>            --log-group-name /github-actions/required-files-checker/beta \<br>            --log-stream-name &quot;$LOG_STREAM_NAME&quot; \<br>            --region ${{ secrets.AWS_REGION }}<br>      <br>      - name: Send audit log to CloudWatch<br>        if: success()<br>        run: |<br>          TIMESTAMP=$(date +%s%3N)<br>          <br>          aws logs put-log-events \<br>            --log-group-name /github-actions/required-files-checker/beta \<br>            --log-stream-name &quot;$LOG_STREAM_NAME&quot; \<br>            --log-events &#39;[{&quot;timestamp&quot;:&#39;&quot;$TIMESTAMP&quot;&#39;,&quot;message&quot;:&quot;{\&quot;workflow\&quot;:\&quot;${{ github.workflow }}\&quot;,\&quot;repository\&quot;:\&quot;${{ github.repository }}\&quot;,\&quot;commit_sha\&quot;:\&quot;${{ github.sha }}\&quot;,\&quot;actor\&quot;:\&quot;${{ github.actor }}\&quot;,\&quot;event\&quot;:\&quot;${{ github.event_name }}\&quot;,\&quot;ref\&quot;:\&quot;${{ github.ref }}\&quot;,\&quot;status\&quot;:\&quot;success\&quot;}&quot;}]&#39; \<br>            --region ${{ secrets.AWS_REGION }}</pre><p>I created a second workflow for production, identical except it triggered on merges to main and logged to a different CloudWatch group.</p><p>I committed both workflows and pushed.</p><pre>git add .github/workflows/<br>git commit -m &quot;Add GitHub Actions workflows for beta and prod&quot;<br>git push</pre><p>Now came the hard part: AWS.</p><h3>Setting Up the Cloud Infrastructure</h3><p>I needed two things in AWS: CloudWatch log groups to store the audit logs, and an IAM user with permissions to write to those log groups.</p><p>First, the log groups. I opened my terminal and ran:</p><pre>aws logs create-log-group \<br>  --log-group-name /github-actions/required-files-checker/beta \<br>  --region us-east-1</pre><pre>aws logs create-log-group \<br>  --log-group-name /github-actions/required-files-checker/prod \<br>  --region us-east-1</pre><p>No output. That meant success. I verified:</p><pre>aws logs describe-log-groups \<br>  --log-group-name-prefix /github-actions/required-files-checker</pre><p>Both log groups showed up. Good.</p><p>Now for IAM. This part always made me nervous. Getting permissions wrong could either block everything or give away too much access. I needed to be precise.</p><p>I created a new IAM user:</p><pre>aws iam create-user --user-name github-actions-cloudwatch</pre><p>Then I wrote the policy. This took me a few tries to get right. I wanted the minimum permissions, only what GitHub Actions needed to create log streams and write logs.</p><p>I created cloudwatch-logs-policy.json:</p><pre>{<br>    &quot;Version&quot;: &quot;2012-10-17&quot;,<br>    &quot;Statement&quot;: [<br>        {<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Action&quot;: [<br>                &quot;logs:CreateLogStream&quot;,<br>                &quot;logs:PutLogEvents&quot;,<br>                &quot;logs:DescribeLogStreams&quot;<br>            ],<br>            &quot;Resource&quot;: [<br>                &quot;arn:aws:logs:*:*:log-group:/github-actions/required-files-checker/beta:*&quot;,<br>                &quot;arn:aws:logs:*:*:log-group:/github-actions/required-files-checker/prod:*&quot;<br>            ]<br>        }<br>    ]<br>}</pre><p>I created and attached the policy:</p><pre>aws iam create-policy \<br>  --policy-name GitHubActionsCloudWatchLogging \<br>  --policy-document file://cloudwatch-logs-policy.json</pre><pre>aws iam attach-user-policy \<br>  --user-name github-actions-cloudwatch \<br>  --policy-arn arn:aws:iam::209479277428:policy/GitHubActionsCloudWatchLogging</pre><p>Finally, I created access keys:</p><pre>aws iam create-access-key --user-name github-actions-cloudwatch</pre><p>The output gave me an Access Key ID and Secret Access Key. I copied both immediately. I wouldn’t see the secret again.</p><p>Now I just needed to get these credentials into GitHub.</p><h3>Connecting the Pieces</h3><p>I went to my GitHub repository and navigated to Settings → Secrets and variables → Actions. I clicked “New repository secret” three times:</p><ul><li>AWS_ACCESS_KEY_ID - My access key from IAM</li><li>AWS_SECRET_ACCESS_KEY - My secret key from IAM</li><li>AWS_REGION - us-east-1</li></ul><p>GitHub would inject these into my workflows at runtime. No one could see them. Not even me, once I saved them.</p><p>Everything was in place. Time to test.</p><h3>The First Test: Holding My Breath</h3><p>I created a pull request. My feature branch → main. Title: “Add automated repository validation with CloudWatch logging.”</p><p>I clicked “Create pull request” and immediately went to the Actions tab.</p><p>A yellow dot appeared next to “Required Files Check (Beta)”. Running.</p><p>I clicked on it and watched the steps execute:</p><ul><li>✅ Checkout code — 2 seconds</li><li>✅ Set up Python — 3 seconds</li><li>✅ Run required files check — 1 second</li><li>✅ Configure AWS credentials — 1 second</li><li>✅ Create CloudWatch log stream — 5 seconds</li></ul><p>Then it hit the last step: “Send audit log to CloudWatch.”</p><p>Yellow dot. Running. I held my breath.</p><p>Then: ✅ Green checkmark.</p><p>The workflow passed. I let out a breath I didn’t know I was holding.</p><p>But did it actually log to CloudWatch? I switched to my terminal:</p><pre>aws logs describe-log-streams \<br>  --log-group-name /github-actions/required-files-checker/beta \<br>  --order-by LastEventTime \<br>  --descending \<br>  --max-items 1</pre><p>There it was. A log stream. Named with today’s timestamp.</p><pre>aws logs get-log-events \<br>  --log-group-name /github-actions/required-files-checker/beta \<br>  --log-stream-name &quot;2025-11-16_14-30-45&quot;</pre><p>The JSON appeared on my screen:</p><pre>{<br>  &quot;workflow&quot;: &quot;Required Files Check (Beta)&quot;,<br>  &quot;repository&quot;: &quot;wrijlarr1431/luit-nov-2025-required-files-checker&quot;,<br>  &quot;commit_sha&quot;: &quot;927b8593b2ae491bd2f8a0f08c7c1c288f0894a2&quot;,<br>  &quot;actor&quot;: &quot;wrijlarr1431&quot;,<br>  &quot;event&quot;: &quot;pull_request&quot;,<br>  &quot;status&quot;: &quot;success&quot;<br>}</pre><p>It worked. Actually worked.</p><p>I went back to GitHub and merged the pull request.</p><h3>The Production Test</h3><p>The moment I merged, another workflow kicked off. This time: “Required Files Check (Prod).”</p><p>I watched it run through the same steps. Checkout. Python. Validation. AWS. CloudWatch.</p><p>Green checkmarks all the way down.</p><p>I checked the production logs:</p><pre>aws logs describe-log-streams \<br>  --log-group-name /github-actions/required-files-checker/prod \<br>  --order-by LastEventTime \<br>  --descending \<br>  --max-items 1</pre><p>Another log stream. Same JSON structure, different log group.</p><p>Beta and prod. Both working. Both logging automatically.</p><p>The system was complete.</p><h3>What I Actually Built</h3><p>When I step back and look at the final project, here’s what exists:</p><p><strong>A Python script</strong> that checks for required files and exits with the right code for CI/CD.</p><p><strong>Two GitHub Actions workflows</strong> that run automatically, one on pull requests (beta), one on merges (prod).</p><p><strong>CloudWatch log groups</strong> that store audit trails separately for each environment.</p><p><strong>An IAM user</strong> with minimal permissions, securing the whole pipeline.</p><p><strong>GitHub Secrets</strong> keeping credentials safe and out of my code.</p><p>The project structure is clean:</p><pre>luit-nov-2025-required-files-checker/<br>├── .github/<br>│   └── workflows/<br>│       ├── on_pull_request.yml    # Beta workflow<br>│       └── on_merge.yml            # Prod workflow<br>├── .gitignore<br>├── README.md<br>├── check_required_files.py         # Validation script<br>└── cloudwatch-logs-policy.json     # IAM policy</pre><p>About 100 lines of code total. Two hours of work. But it solved a real problem.</p><h3>What I Learned Along the Way</h3><p><strong>Exit codes are everything.</strong> That simple sys.exit(0) or sys.exit(1) controls the entire CI/CD pipeline. Zero means continue. One means stop. That&#39;s the power of conventions.</p><p><strong>CloudWatch has opinions.</strong> Log stream names can’t have colons. I learned that the hard way. 2025-11-16_14-30-45 works. 2025-11-16T14:30:45Z doesn&#39;t.</p><p><strong>IAM policies are your safety net.</strong> Give the minimum permissions needed. My policy only allows writing to two specific log groups. Nothing else. If those credentials leak, the damage is contained.</p><p><strong>GitHub Secrets are there for a reason.</strong> Never hardcode AWS keys. Ever. I’ve seen what happens when credentials get committed to public repos. It’s not pretty.</p><p><strong>Debugging CI/CD is different.</strong> You can’t just add print statements and re-run. You commit, push, wait. Check logs. Adjust. Commit again. It’s slower than local development, but that’s the reality of cloud automation.</p><h3>The Impact</h3><p>For the platform team, this automation changed their workflow:</p><p><strong>No more manual checks.</strong> The system catches missing files automatically. Every pull request. Every time.</p><p><strong>Standards are enforced.</strong> Pull requests with missing files can’t be merged. The GitHub Actions workflow blocks them.</p><p><strong>Audit trail exists.</strong> Leadership can query CloudWatch to see which repositories are compliant. Timestamps, commit hashes, actors — it’s all there.</p><p><strong>Time saved.</strong> Hours every week that were spent manually checking repositories are now free for actual engineering work.</p><p><strong>Separate environments work.</strong> Beta logs for testing. Prod logs for real deployments. Clean separation of concerns.</p><h3>Reflections</h3><p>This was my first real DevOps project. Not a tutorial. Not a sample app. A real automation pipeline solving a real problem.</p><p>I expected it to be complicated. I expected to get stuck. I expected to need help.</p><p>And yeah, I did get stuck on timestamp formats and JSON escaping and IAM permissions. But I debugged it. I read error messages. I fixed it.</p><p>The project taught me something important: DevOps isn’t about knowing everything. It’s about breaking problems into small pieces and solving them one at a time.</p><p>A Python script to check files. A GitHub workflow to run it. A CloudWatch log to record it. An IAM policy to secure it.</p><p>Small pieces. Simple tools. Real automation.</p><p>I’m a few weeks into my DevOps journey with adding python, and I’ve already built something that runs in production. That feels pretty good.</p><p><strong>Project Repository</strong>: <a href="https://github.com/wrijlarr1431/luit-nov-2025-required-files-checker">github.com/wrijlarr1431/luit-nov-2025-required-files-checker</a></p><p><strong>Technologies</strong>: Python 3.11, GitHub Actions, AWS CloudWatch, AWS IAM</p><p><strong>Time to Build</strong>: ~2 hours</p><p><strong>Key Lesson</strong>: Start simple. Build it piece by piece. Test everything. Automation doesn’t have to be complicated to be valuable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=02ae7d281f1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automated EC2 Instance Name Generator Using Python]]></title>
            <link>https://medium.com/@wrijlarr/automated-ec2-instance-name-generator-using-python-fb2e279979bf?source=rss-b4078549c4bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb2e279979bf</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[ec2-instance]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Larry Wright]]></dc:creator>
            <pubDate>Sun, 02 Nov 2025 20:52:58 GMT</pubDate>
            <atom:updated>2025-11-02T20:52:58.825Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-dnI20nvtDSJI9Ye.png" /></figure><h3>Overview</h3><p>During my cloud engineering learning journey, I developed a straightforward yet effective Python script that automatically generates unique EC2 instance names for shared AWS environments. This project helped me strengthen my understanding of Python automation, string manipulation, and random data generation, while addressing a real-world challenge that DevOps teams face daily in multi-department cloud infrastructures.</p><h3>The Problem</h3><p>In organizations where multiple departments share the same AWS account, identifying which team owns which EC2 instance can quickly become chaotic. Without a standardized naming convention, teams struggle with resource management, cost allocation, and general infrastructure organization. Manual naming is error-prone and time-consuming, automation is the answer.</p><h3>Tools and Technologies Used</h3><ul><li><strong>Python 3</strong> — for scripting and automation logic</li><li><strong>Visual Studio Code (VS Code)</strong> — for development and debugging</li><li><strong>Git &amp; GitHub</strong> — to version control and showcase the project</li><li><strong>random module</strong> — for generating unique identifiers</li><li><strong>string module</strong> — for alphanumeric character sets</li></ul><h3>Step-by-Step Process</h3><h3>Step 1: Setting Up the Environment</h3><p>I began by opening VS Code, creating a new project folder, and adding a new file named ec2_name_generator.py.</p><h3>Step 2: Planning the Naming Convention</h3><p>I decided on a clear, professional format using uppercase for visibility:</p><pre>{DEPARTMENT}-EC2-{RANDOM_8_CHARACTER_STRING}</pre><p>This structure ensures:</p><ul><li>Department identification in bold uppercase for easy scanning</li><li>EC2 service type specification</li><li>Uniqueness through random alphanumeric strings (uppercase letters + digits)</li></ul><h3>Step 3: Writing the Script</h3><p>Here’s the Python code that brings everything together:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nuVfpUETFeRC0FPPsTvDzg.png" /></figure><p><strong>Key Features:</strong></p><ul><li>Clean, user-friendly interface with a welcome screen</li><li>Dynamic input handling for department names</li><li>Uppercase formatting for professional appearance and easy readability</li><li>Scalable to any number of instances</li><li>Guaranteed unique identifiers using uppercase letters and digits</li></ul><h3>Step 4: Testing the Script</h3><p>I ran the script using the terminal in VS Code:</p><p>bash</p><pre>python ec2_name_generator.py<br>```</pre><pre>Then entered:<br>```<br>EC2 Instance Generator<br>Department Name: Finance<br>EC2 Instances to be created: 4<br>```</pre><pre>**Output Example:**<br>```<br>EC2 Names for Finance:<br>----------------------------------------<br>1.FINANCE-EC2-M4X9K2P7<br>2.FINANCE-EC2-A8N3J5W1<br>3.FINANCE-EC2-R6T2Y9H4<br>4.FINANCE-EC2-K1M8V3N7</pre><p>Each name is completely unique and instantly ready to be used when provisioning AWS EC2 instances or implementing resource tagging strategies. The uppercase format makes these names highly visible in the AWS console and easy to read in documentation.</p><h3>Step 5: Version Control with GitHub</h3><p>I pushed the project to GitHub to:</p><ul><li>Practice version control workflows</li><li>Showcase my work to potential employers</li><li>Make the code accessible to others who might find it useful</li></ul><h3>Benefits of This Approach</h3><p>Implementing an automated naming convention delivers significant advantages for cloud teams:</p><p>✅ <strong>Instant Resource Identification</strong> — Team members can immediately identify which department owns each resource without checking tags or documentation, improving visibility across the AWS console.</p><p>✅ <strong>Consistency and Standardization</strong> — Every instance follows the same naming pattern, eliminating confusion and creating visual order in multi-department cloud environments.</p><p>✅ <strong>Time and Efficiency Gains</strong> — What used to take minutes per instance now takes seconds for hundreds of instances, eliminating manual naming bottlenecks during deployments.</p><p>✅ <strong>Reduced Human Error</strong> — Automation eliminates typos, duplicate names, and inconsistent formatting that plague manual processes, ensuring reliability at scale.</p><p>✅ <strong>Foundation for Advanced Automation</strong> — This script can integrate into CI/CD pipelines, Infrastructure as Code templates, or AWS Lambda functions, serving as a building block for enterprise-level automation.</p><h3>What I Learned</h3><p>This seemingly simple project taught me valuable lessons:</p><p><strong>Technical Skills:</strong></p><ul><li>Python string manipulation and f-strings</li><li>Working with Python’s random and string modules</li><li>List comprehension for efficient code generation</li><li>User input handling and type conversion</li><li>String formatting with .upper() method</li></ul><p><strong>Cloud Concepts:</strong></p><ul><li>AWS EC2 naming best practices</li><li>Multi-tenant environment management</li><li>Resource tagging strategies</li><li>Infrastructure organization principles</li><li>Importance of naming conventions in cloud visibility</li></ul><p><strong>Development Practices:</strong></p><ul><li>Writing clean, readable code with clear comments</li><li>Organizing code into logical sections</li><li>Version control with Git</li><li>Technical documentation</li></ul><h3>Real-World Applications</h3><p>This script can evolve into more sophisticated tools:</p><p>🔹 <strong>Tagging Automation</strong> — Automatically apply tags when instances are created<br> 🔹 <strong>CI/CD Integration</strong> — Generate names during automated deployments<br> 🔹 <strong>Lambda Function</strong> — Trigger name generation via AWS Lambda<br> 🔹 <strong>CloudFormation/Terraform</strong> — Incorporate into Infrastructure as Code<br> 🔹 <strong>Compliance Reporting</strong> — Track resource ownership for audits<br> 🔹 <strong>Multi-Environment Support</strong> — Add environment prefixes (DEV, STAGING, PROD)</p><h3>Conclusion</h3><p>This project might seem simple, but it builds the foundation for automating AWS environments at scale. What started as a basic name generator demonstrates core principles used in enterprise cloud automation: standardization, uniqueness, and scalability.</p><p>The beauty of cloud automation is that even small scripts can solve big organizational problems. By investing 30 minutes in writing this tool, teams can save hours of confusion and prevent costly naming mistakes down the road.</p><p>Whether you’re just starting your cloud journey or looking to add automation to your skillset, projects like these prove that you don’t need complex architectures to deliver real value.</p><p><strong>GitHub Repository: </strong><a href="https://github.com/wrijlarr1431/ec2-random-name-generator">https://github.com/wrijlarr1431/ec2-random-name-generator</a><br> <strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/larrylwright/">https://www.linkedin.com/in/larrylwright/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb2e279979bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Automated Website Deployments with AWS CodePipeline (No More Manual Updates!)]]></title>
            <link>https://medium.com/@wrijlarr/how-i-automated-website-deployments-with-aws-codepipeline-no-more-manual-updates-8f483f51e8e0?source=rss-b4078549c4bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f483f51e8e0</guid>
            <category><![CDATA[aws-s3]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[github-repositories]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[aws-s3-static-hosting]]></category>
            <dc:creator><![CDATA[Larry Wright]]></dc:creator>
            <pubDate>Tue, 28 Oct 2025 18:16:27 GMT</pubDate>
            <atom:updated>2025-10-28T18:16:27.347Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Say goodbye to manual deployments and hello to automated CI/CD pipelines</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fTBlxduJg2zKc1gD.png" /></figure><h3>The Problem: Manual Deployment</h3><p>Picture this: Every time your development team makes a small change to your website, fixing a typo, updating content, or tweaking styles, someone has to manually:</p><ol><li>Pull the latest code</li><li>Test it locally</li><li>Connect to the server</li><li>Upload files</li><li>Verify everything works</li><li>Hope nothing broke in the process</li></ol><p>Sound familiar? This tedious process wastes valuable development time and introduces human error at every step. There had to be a better way.</p><p><strong>Spoiler alert:</strong> There is. And I’m going to show you exactly how I built a fully automated CI/CD pipeline that deploys website changes in under 3 minutes, with zero manual intervention.</p><h3>What We’re Building</h3><p>By the end of this tutorial, you’ll have:</p><ul><li>A <strong>GitHub repository</strong> containing your website code</li><li>An <strong>S3 bucket</strong> hosting your static website</li><li>An <strong>AWS CodePipeline</strong> that automatically deploys changes when you push code</li><li>A workflow where git push = automatic deployment 🚀</li></ul><p><strong>Total setup time:</strong> 30–45 minutes<br> <strong>Cost:</strong> ~$1–2/month<br> <strong>Time saved:</strong> Countless hours</p><h3>Why CI/CD Matters</h3><p>Continuous Integration and Continuous Deployment (CI/CD) isn’t just a buzzword — it’s a fundamental shift in how modern teams ship software.</p><h3>The Benefits:</h3><p><strong>Speed</strong> → Changes go live in minutes, not hours<br> <strong>Reliability</strong> → Same process every time, no human error<br> <strong>Productivity</strong> → Developers focus on coding, not deploying<br> <strong>Confidence</strong> → Every change is automatically tested and deployed<br> <strong>Transparency</strong> → Full audit trail of what was deployed and when</p><p>For our use case with a static website, we’re building a streamlined pipeline: <strong>Code → Test → Deploy</strong>. Simple, fast, and effective.</p><h3>Prerequisites</h3><p>Before we dive in, make sure you have:</p><ul><li>An AWS account (free tier works fine)</li><li>A GitHub account</li><li>Basic Git knowledge</li><li>A text editor (I’m using VS Code)</li><li>30–45 minutes of focused time</li></ul><p><strong>AWS Permissions Needed:</strong></p><ul><li>S3: Bucket creation and management</li><li>CodePipeline: Pipeline creation</li><li>IAM: Service role creation</li></ul><h3>Part 1: Setting Up Your Repository</h3><p>First things first: we need code to deploy. I’m starting with a simple but polished static website.</p><h3>Creating the Repository</h3><p>I headed to GitHub and created a new repository called cicd-static-website. Here&#39;s what I did:</p><pre># Clone the repository<br>git clone https://github.com/YOUR-USERNAME/cicd-static-website.git<br>cd cicd-static-website</pre><h3>The Website Code</h3><p>Instead of testing with “Hello World,” I created something that actually demonstrates the CI/CD workflow. The HTML file I created includes:</p><p><strong>Visual Design:</strong></p><ul><li>A modern, professional layout with a purple gradient background</li><li>A centered white container with rounded corners and shadow effects</li><li>Responsive design that works on all screen sizes</li><li>Clean, readable typography using system fonts</li></ul><p><strong>Content Elements:</strong></p><ul><li>A prominent heading “🚀 CI/CD Pipeline Demo”</li><li>A green badge displaying “✅ Deployment Successful — Version 1.0”</li><li>Welcoming text explaining the automated deployment</li><li>An informational box describing how the pipeline works</li><li>A footer with deployment metadata</li></ul><p><strong>The Key Feature:</strong> The “Version 1.0” badge is intentionally included because we’ll use it later to verify our automated deployments work. When we update this to “Version 2.0” and push the change, we’ll be able to immediately see if the pipeline successfully deployed the update.</p><p>This single HTML file demonstrates that even simple static sites can benefit from professional deployment automation.</p><h3>Pushing to GitHub</h3><pre>git add index.html<br>git commit -m &quot;Initial commit: Add index.html for CI/CD demo&quot;<br>git push origin main</pre><p><strong>✅ Step 1 complete!</strong> Our code is now in version control.</p><h3>Part 2: Configuring S3 for Static Hosting</h3><p>Now we need somewhere to host our website. S3 is perfect for static sites. It’s fast, cheap, and scales automatically.</p><h3>Creating the S3 Bucket</h3><p>I navigated to the S3 console in AWS and clicked “Create bucket.” Here’s the crucial configuration:</p><p><strong>Bucket name:</strong> cicd-demo-website-john-12345 (must be globally unique)<br> <strong>Region:</strong> us-east-1 (choose your preferred region)<br> <strong>Block Public Access:</strong> <strong>UNCHECKED</strong> ⚠️ (we need public access for a website)</p><p>This is one of the most common mistakes. People forget to allow public access and wonder why their site doesn’t work!</p><h3>Enabling Static Website Hosting</h3><p>After creating the bucket, I went to:</p><ol><li><strong>Properties</strong> tab</li><li>Scrolled to <strong>Static website hosting</strong></li><li>Clicked <strong>Edit</strong></li><li>Selected <strong>Enable</strong></li><li>Set index document to index.html</li></ol><p>AWS gave me an endpoint URL that looks like:</p><pre>http://YOUR-BUCKET-NAME.s3-website-us-east-1.amazonaws.com</pre><p>I saved this URL: it’s what we’ll give to our team later.</p><h3>Setting the Bucket Policy</h3><p>The final step for S3: adding a bucket policy to allow public reads. Under the <strong>Permissions</strong> tab, I added this policy:</p><pre>{<br>    &quot;Version&quot;: &quot;2012-10-17&quot;,<br>    &quot;Statement&quot;: [<br>        {<br>            &quot;Sid&quot;: &quot;PublicReadGetObject&quot;,<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Principal&quot;: &quot;*&quot;,<br>            &quot;Action&quot;: &quot;s3:GetObject&quot;,<br>            &quot;Resource&quot;: &quot;arn:aws:s3:::YOUR-BUCKET-NAME/*&quot;<br>        }<br>    ]<br>}</pre><p><strong>Important:</strong> Replace the bucket name with your actual bucket name!</p><p><strong>✅ Step 2 complete!</strong> Our hosting infrastructure is ready.</p><h3>Part 3: Building the CI/CD Pipeline</h3><p>This is where the magic happens. AWS CodePipeline will connect our GitHub repository to our S3 bucket and automate everything in between.</p><h3>Creating the Pipeline</h3><p>I navigated to CodePipeline in the AWS Console and clicked “Create pipeline.”</p><h4>Pipeline Settings</h4><p><strong>Pipeline name:</strong> static-website-pipeline<br> <strong>Service role:</strong> New service role (AWS auto-generates this)<br> <strong>Execution mode:</strong> Queued (default is fine)</p><p>The service role is important , it gives CodePipeline permission to access our GitHub repo and S3 bucket.</p><h4>Connecting to GitHub</h4><p>For the <strong>Source Stage</strong>, I selected <strong>GitHub (Version 2)</strong> and clicked “Connect to GitHub.”</p><p>Here’s what happened:</p><ol><li>AWS opened a connection wizard</li><li>I named the connection github-connection</li><li>GitHub asked me to authorize AWS</li><li>I selected my cicd-static-website repository</li><li>AWS confirmed the connection</li></ol><p><strong>Useful tip:</strong> GitHub (Version 2) uses OAuth connections which are more secure than the old personal access tokens. Always use Version 2 when available.</p><p>Once connected, I configured:</p><ul><li><strong>Repository:</strong> cicd-static-website</li><li><strong>Branch:</strong> main</li><li><strong>Change detection:</strong> Enabled (starts pipeline on code changes)</li></ul><h4>Skipping the Build Stage</h4><p>For a static website with just HTML/CSS/JS, we don’t need a build step. No compilation, no transpiration, no bundling, just pure, simple deployment.</p><p>I clicked <strong>Skip build stage</strong> and confirmed.</p><p><strong>Note:</strong> If you’re using React, Vue, or any framework that requires compilation, you’d add an AWS CodeBuild stage here with your build commands.</p><h4>Configuring the Deploy Stage</h4><p>This is critical. Here’s exactly what I configured:</p><p><strong>Deploy provider:</strong> Amazon S3<br> <strong>Region:</strong> us-east-1 (same as bucket)<br> <strong>Bucket:</strong> Selected my bucket from the dropdown<br> <strong>S3 object key:</strong> Left empty<br> <strong>✅ Extract file before deploy:</strong> CHECKED</p><p><strong>This checkbox is absolutely crucial!</strong> Without it, CodePipeline will deploy a zip file instead of extracting your HTML.</p><h4>Review and Create</h4><p>I reviewed all my settings one final time:</p><ul><li>✅ Source: GitHub connected to my repo</li><li>✅ Build: Skipped (not needed)</li><li>✅ Deploy: S3 with file extraction enabled</li></ul><p>Then I clicked <strong>Create pipeline</strong>.</p><p><strong>✅ Step 3 complete!</strong> The pipeline was created and immediately started its first execution.</p><h3>Part 4: Watching the Magic Happen</h3><p>As soon as I created the pipeline, it automatically started running. This is what I saw:</p><h3>First Execution</h3><p><strong>Source Stage</strong> (blue → green in ~15 seconds)</p><ul><li>CodePipeline connected to GitHub</li><li>Pulled the latest code from the main branch</li><li>Created an artifact (zip file) containing my index.html</li></ul><p><strong>Deploy Stage</strong> (blue → green in ~20 seconds)</p><ul><li>Extracted files from the artifact</li><li>Uploaded index.html to my S3 bucket</li><li>Made the file publicly accessible</li></ul><p><strong>Total time:</strong> About 40 seconds from creation to deployment! 🚀</p><h3>Verifying the Deployment</h3><p>I opened the S3 website endpoint URL in my browser and there it was — my beautiful CI/CD demo website, live on the internet!</p><p>The green “Deployment Successful — Version 1.0” badge was proudly displayed.</p><p><strong>But here’s the real test:</strong> Does it automatically deploy changes?</p><h3>Part 5: Testing Automatic Deployments</h3><p>This is the moment of truth. I went back to VS Code to make a simple change.</p><h3>Making a Code Change</h3><p>I opened index.html and changed:</p><pre>&lt;div class=&quot;badge&quot;&gt;✅ Deployment Successful - Version 1.0&lt;/div&gt;</pre><p>To:</p><pre>&lt;div class=&quot;badge&quot;&gt;✅ Deployment Successful - Version 2.0&lt;/div&gt;</pre><p>Simple, but enough to verify the automation works.</p><h3>Pushing the Change</h3><pre>git add index.html<br>git commit -m &quot;Update: Changed version to 2.0&quot;<br>git push origin main</pre><h3>Watching the Automation</h3><p>I switched back to the AWS Console and watched the CodePipeline page. Within about 90 seconds of my push:</p><ol><li><strong>Pipeline detected the change</strong> (thanks to CloudWatch Events)</li><li><strong>Source stage activated</strong> and pulled the new code</li><li><strong>Deploy stage activated</strong> and updated S3</li><li><strong>Both stages turned green</strong> ✅</li></ol><p>Total time from git push to live website: <strong>approximately 2 minutes and 30 seconds</strong>.</p><h3>Verifying the Update</h3><p>I refreshed my website (using Ctrl+F5 to bypass cache) and boom — “Version 2.0” was now displayed!</p><p><strong>The pipeline works!</strong> 🎉</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WzGt5QKC7T3Jr0GQczKZ-A.png" /><figcaption>Website updated</figcaption></figure><h3>What I Learned Along the Way</h3><h3>Common Pitfalls (And How to Avoid Them)</h3><p><strong>1. Forgetting to check “Extract file before deploy”</strong></p><p>This was my biggest mistake initially. Without this checkbox, your S3 bucket gets a zip file instead of your actual HTML. Always enable file extraction for static sites.</p><p><strong>2. Block Public Access enabled on S3</strong></p><p>If you can’t access your website, check your S3 bucket’s public access settings. For a public website, you need to explicitly allow public access and add a bucket policy.</p><p><strong>3. Wrong branch name</strong></p><p>Make sure your CodePipeline source stage is monitoring the correct branch. If you’re using master instead of main, update the pipeline configuration accordingly.</p><p><strong>4. GitHub connection expired</strong></p><p>GitHub OAuth tokens can expire. If your pipeline suddenly stops triggering, check your GitHub connection in CodePipeline settings and reconnect if necessary.</p><h3>Performance Insights</h3><p><strong>Pipeline Execution Breakdown:</strong></p><ul><li>Change detection: 60–90 seconds</li><li>Source stage: 10–30 seconds</li><li>Deploy stage: 10–30 seconds</li><li><strong>Total:</strong> ~2–3 minutes end-to-end</li></ul><p><strong>Ways to optimize:</strong></p><ul><li>Use CloudWatch Events for faster change detection (enabled by default)</li><li>Keep your repository small and focused</li><li>Consider CloudFront CDN for faster global delivery</li></ul><h3>The Results: Before vs. After</h3><h3>Before CI/CD:</h3><ul><li><strong>Deployment time:</strong> 15–30 minutes per update</li><li><strong>Manual steps:</strong> 7–10 different actions</li><li><strong>Error rate:</strong> High (forgot files, wrong server, etc.)</li><li><strong>Developer satisfaction:</strong> Low 😩</li></ul><h3>After CI/CD:</h3><ul><li><strong>Deployment time:</strong> 2–3 minutes (automatic)</li><li><strong>Manual steps:</strong> 1 (git push)</li><li><strong>Error rate:</strong> Near zero</li><li><strong>Developer satisfaction:</strong> High! 😊</li></ul><p><strong>Time saved per deployment:</strong> ~20 minutes<br> <strong>Deployments per week:</strong> ~10<br> <strong>Total time saved:</strong> ~3+ hours per week</p><p>That’s more than 150 hours per year that our team can spend building features instead of deploying code!</p><h3>What Worked Well:</h3><p>✅ <strong>Simplicity</strong> → Keeping the pipeline simple made it reliable<br> ✅ <strong>GitHub Version 2 integration</strong> → Much better than webhooks or polling<br> ✅ <strong>S3 static hosting</strong> → Fast, cheap, and scales automatically<br> ✅ <strong>Documentation</strong> → Writing down the process helped onboard others</p><h3>Conclusion: Automate All The Things!</h3><p>Building this CI/CD pipeline was one of the best investments I made in our development workflow. What started as a simple weekend project has saved countless hours and eliminated an entire class of deployment errors.</p><p>The beauty of CI/CD isn’t just the time savings , it’s the confidence. Knowing that every code push goes through the same reliable process means we can deploy fearlessly. Small fixes, big features, urgent hotfixes, they all deploy the same way, automatically and reliably.</p><h3>Resources</h3><p>Want to dive deeper? Check out:</p><ul><li><a href="https://docs.aws.amazon.com/codepipeline/">AWS CodePipeline Documentation</a></li><li><a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html">S3 Static Website Hosting Guide</a></li><li><a href="https://docs.github.com/en/actions">GitHub Actions Alternative</a> (if you want to compare approaches)</li></ul><p><em>Happy deploying! 🚀</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f483f51e8e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Locked for Writes, Open for Reads: Designing a Secure MediaCatalog on AWS]]></title>
            <link>https://medium.com/@wrijlarr/locked-for-writes-open-for-reads-designing-a-secure-mediacatalog-on-aws-e3b2dc470462?source=rss-b4078549c4bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3b2dc470462</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Larry Wright]]></dc:creator>
            <pubDate>Fri, 24 Oct 2025 20:17:23 GMT</pubDate>
            <atom:updated>2025-10-24T20:17:23.726Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-zyI0tleSUNZu2YQ.png" /></figure><ul><li>Goal: Read-only, credential-free access from EC2 to a DynamoDB table storing movie metadata.</li><li>How: Attach a least-privilege IAM role to EC2, scope permissions to a single table, and validate reads succeed while writes fail.</li><li>Why: Protect data integrity, simplify auth, and scale safely.</li></ul><h4>Overview Snapshot</h4><ul><li>Client: Let’s Go! Media Inc.</li><li>Data: Movies (Title, Genre, ReleaseDate, Rating)</li><li>Core Stack: DynamoDB + IAM Role + EC2 + AWS CLI</li><li>Security Model: Principle of Least Privilege, credential-free auth via instance profile</li><li>Outcome: Read-only access verified; write attempts denied by policy</li></ul><h4>Problem in One Sentence</h4><p>Let’s Go! Media needs EC2 instances that can read media catalog data from DynamoDB without any ability to add, change, or delete records — no access keys, no shortcuts.</p><h4>Why This Approach Works</h4><ul><li>Granular control with IAM roles enforces read-only access.</li><li>No hardcoded credentials — temporary credentials via IMDS.</li><li>DynamoDB scales seamlessly as the catalog grows.</li><li>Security is demonstrable by testing denied write ops.</li></ul><h4>Architecture at a Glance</h4><ul><li>DynamoDB table: MediaCatalog with key MovieID (String)</li><li>EC2 instance: Amazon Linux 2023, t2.micro</li><li>IAM policy: Read-only DynamoDB actions on one table</li><li>Instance profile: Grants EC2 the role at launch time</li><li>AWS CLI: Used to verify who we are, read data, deny writes</li></ul><h4>Prerequisites</h4><ul><li>AWS account/sandbox</li><li>Basic AWS knowledge</li><li>SSH or EC2 Instance Connect</li><li>JSON familiarity</li></ul><h4>Step 1 : Create the DynamoDB Table</h4><ul><li>Table: MediaCatalog</li><li>Partition key: MovieID (String)</li><li>Capacity: On-demand</li></ul><p>Attributes per item:</p><ul><li>MovieID</li><li>Title</li><li>Genre</li><li>ReleaseDate (YYYY-MM-DD)</li><li>Rating (Number)</li></ul><p>Example entry (console-friendly JSON):</p><pre>{  <br>  &quot;MovieID&quot;: &quot;MOV001&quot;,  <br>  &quot;Title&quot;: &quot;The Digital Frontier&quot;,  <br>  &quot;Genre&quot;: &quot;Sci-Fi&quot;,  <br>  &quot;ReleaseDate&quot;: &quot;2024-03-15&quot;,  <br>  &quot;Rating&quot;: 8.2  <br>}</pre><h4>Step 2 : Define the Least-Privilege Policy and Role</h4><p>Create custom policy MediaCatalogReadOnlyPolicy:</p><pre>{  <br>  &quot;Version&quot;: &quot;2012-10-17&quot;,  <br>  &quot;Statement&quot;: [  <br>    {  <br>      &quot;Effect&quot;: &quot;Allow&quot;,  <br>      &quot;Action&quot;: [  <br>        &quot;dynamodb:Scan&quot;,  <br>        &quot;dynamodb:Query&quot;,  <br>        &quot;dynamodb:GetItem&quot;,  <br>        &quot;dynamodb:BatchGetItem&quot;,  <br>        &quot;dynamodb:DescribeTable&quot;  <br>      ],  <br>      &quot;Resource&quot;: &quot;arn:aws:dynamodb:*:*:table/MediaCatalog&quot;  <br>    }  <br>  ]  <br>}</pre><p>What’s allowed:</p><ul><li>Scan, Query, GetItem, BatchGetItem, DescribeTable</li></ul><p>What’s intentionally not allowed:</p><ul><li>PutItem, UpdateItem, DeleteItem, DeleteTable</li></ul><p>Create role MediaCatalogEC2ReadRole:</p><ul><li>Trust relationship: EC2</li><li>Attach the policy above</li><li>Expose to EC2 via an instance profile</li></ul><h4>Step 3: Launch the EC2 Reader</h4><ul><li>Name: MediaCatalog-Reader</li><li>AMI: Amazon Linux 2023</li><li>Instance type: t2.micro</li><li>IAM instance profile: MediaCatalogEC2ReadRole</li><li>Security Group: Allow SSH only from your IP</li></ul><p>Attach the role at launch (Advanced details). Wait for 2/2 checks to pass.</p><h4>Step 4 : Verify Identity (No Keys Needed)</h4><p>Connect via EC2 Instance Connect and confirm the instance is assuming the role:</p><pre>aws sts get-caller-identity</pre><p>Look for assumed-role/MediaCatalogEC2ReadRole in the ARN. Set the region:</p><pre>export AWS_DEFAULT_REGION=us-east-1</pre><h4>Step 5 : Read the Catalog</h4><pre>aws dynamodb scan --table-name MediaCatalog</pre><p>Expect all items with Count matching inserted records.</p><h4>Step 6 : Prove Writes Are Blocked</h4><p>Attempt a write (which should fail):</p><pre>aws dynamodb put-item \  <br>  --table-name MediaCatalog \  <br>  --item &#39;{  <br>    &quot;MovieID&quot;: {&quot;S&quot;: &quot;MOV999&quot;},  <br>    &quot;Title&quot;: {&quot;S&quot;: &quot;Test Movie&quot;},  <br>    &quot;Genre&quot;: {&quot;S&quot;: &quot;Test&quot;},  <br>    &quot;ReleaseDate&quot;: {&quot;S&quot;: &quot;2024-12-31&quot;},  <br>    &quot;Rating&quot;: {&quot;N&quot;: &quot;5.0&quot;}  <br>  }&#39;</pre><p>Expected result: AccessDeniedException for dynamodb:PutItem. Repeat for UpdateItem and DeleteItem as needed.</p><h4>Lessons That Stick</h4><ul><li>Roles beat long-lived keys:</li><li>No local credentials to leak or rotate.</li><li>Permissions updated centrally.</li><li>Temporary credentials via IMDS are auto-rotated and scoped.</li><li>Least privilege in action:</li><li>Narrow actions, narrow resources, explicit denials by omission.</li><li>Test your boundaries:</li><li>Don’t just assume security, prove reads work and writes don’t.</li></ul><h4>Real-World Patterns This Enables</h4><ul><li>E-commerce: Read-only product catalogs for storefronts.</li><li>Healthcare: View-only patient data in specific contexts.</li><li>Finance: Reporting layers over transactional systems.</li><li>CMS: Separate read path from editorial write path.</li><li>IoT: Devices read reference data but don’t mutate history.</li></ul><h4>Pitfalls I Avoided (So You Don’t Fall In)</h4><ul><li>JSON format nuance:</li><li>Console accepts simplified JSON (great for manual inserts).</li><li>CLI expects DynamoDB JSON structure for attributes.</li><li>Role verification:</li><li>aws sts get-caller-identity is the fastest reality check.</li></ul><h4>Conclusion</h4><p>This solution delivers exactly what Let’s Go! Media needs: read-only, credential-free access to a DynamoDB-backed media catalog, enforced by a narrowly scoped IAM role. It scales, it’s auditable, and most importantly, it’s verifiably secure. Testing denied write operations turns security from a configuration checkbox into a measurable control.</p><p>Security doesn’t need to be complicated. With IAM roles, least privilege, and simple validation steps, you can safeguard data integrity while keeping teams productive.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3b2dc470462" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a Two‑Tier Joomla Travel Website on AWS: My VS Code + Terminal + Git Workflow]]></title>
            <link>https://medium.com/@wrijlarr/creating-a-two-tier-joomla-travel-website-on-aws-my-vs-code-terminal-git-workflow-55645d39fd70?source=rss-b4078549c4bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/55645d39fd70</guid>
            <category><![CDATA[two-tier-architecture]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[terminal]]></category>
            <dc:creator><![CDATA[Larry Wright]]></dc:creator>
            <pubDate>Fri, 17 Oct 2025 17:25:39 GMT</pubDate>
            <atom:updated>2025-10-17T17:25:39.535Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*scgXeeF3fIy8KmZL2l2pkA.png" /></figure><p><strong>Introduction</strong></p><p>I’ve leaned on Visual Studio Code, the macOS Terminal, and Git for years across different projects, so when I decided to build a two‑tier Joomla site on AWS, I stuck with the workflow I know best. I wanted a clean separation of concerns (web tier on EC2, database tier on RDS), a process that felt natural inside VS Code, and versioned automation in GitHub so I could reproduce everything easily.</p><p>This post is a narrative walkthrough of exactly what I did, from spinning up the infrastructure to running the Joomla installer with a simple, repeatable flow using VS Code Remote‑SSH and Git.</p><ul><li>Tech stack: Ubuntu 22.04 LTS (EC2), Apache 2.4, PHP 8.x, Joomla 4.4.x, MySQL 8 (Amazon RDS)</li><li>Tools: Visual Studio Code (Remote‑SSH), Terminal (macOS), Git/GitHub</li><li>Output: A modular scripts folder in GitHub + a working Joomla site backed by RDS</li></ul><h3>Architecture Overview</h3><p>I chose a classic two‑tier setup for clarity and scalability:</p><ul><li>Web tier: EC2 instance in a public subnet (Apache, PHP, Joomla)</li><li>Data tier: RDS MySQL in private subnets (no public access)</li><li>Security Groups:</li><li>Web SG: SSH (22) from my Mac IP; HTTP (80)/HTTPS (443) from anywhere</li><li>DB SG: MySQL (3306) only from the Web SG</li><li>Networking: VPC with public/private subnets; Internet Gateway for the public side; DB Subnet Group for RDS</li></ul><p>This keeps the database isolated while allowing me to manage the web server over SSH.</p><h3>My Workflow Mindset: VS Code + Terminal + Git</h3><p>Because I work in VS Code and Git day‑to‑day, I organized the project the same way I would any app:</p><ul><li>A GitHub repository with:</li><li>scripts/ for modular provisioning scripts</li><li>configs/ for references (e.g., DB parameters)</li><li>docs/ for setup logs and notes</li><li>Remote‑SSH in VS Code to “live” inside the EC2 box, editing, running scripts, and verifying changes without context switching</li><li>Terminal for one‑off commands, quick checks, and Git operations</li></ul><p>It felt like a normal dev repo, but the target was an EC2 server.</p><h3>Step 1: Launch the Web Tier (EC2)</h3><ul><li>AMI: Ubuntu 22.04 LTS</li><li>Instance: t2.micro</li><li>Public subnet with a route to an Internet Gateway</li><li>Web SG:</li><li>Inbound: SSH (22) from my Mac’s public IP/32; HTTP (80) and HTTPS (443) from 0.0.0.0/0</li><li>Outbound: default allow</li><li>I noted the public IPv4 address to wire into my SSH config.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bZMMZej1gOv8cOXOdzPOTQ.png" /></figure><h3>Step 2: Connect from VS Code (Remote‑SSH)</h3><p>On my Mac, I added an SSH host entry:</p><ul><li>Host adventure-works-web<br> HostName &lt;EC2_PUBLIC_IP&gt;<br> User ubuntu<br> IdentityFile ~/.ssh/aws-keys/adventure-works-key.pem<br> ServerAliveInterval 60</li></ul><p>Key hygiene:</p><ul><li>chmod 700 ~/.ssh</li><li>chmod 400 ~/.ssh/aws-keys/adventure-works-key.pem</li></ul><p>In VS Code: Remote‑SSH → Connect to Host → adventure‑works‑web. I verified I was on the instance with whoami and hostname -I. From here, everything felt like working on a local dev box, just with cloud resources behind it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mDDErXcXn4z7qzjB_fun2A.png" /></figure><h3>Step 3: Stand Up the Database Tier (RDS MySQL)</h3><p>Inside AWS:</p><ul><li>Created a DB Subnet Group spanning private subnets</li><li>DB SG: Allowed 3306 only from my Web SG</li><li>Launched RDS MySQL 8 (db.t3.micro)</li><li>Publicly accessible: No</li><li>Database: joomladb</li><li>Master user: admin</li><li>I saved the RDS endpoint and credentials securely (not in Git).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jJxSGhxttW0iuutb0FlwfQ.png" /></figure><h3>Step 4: Script the Server Build (in Git)</h3><p>I created a scripts/ directory and wrote small, focused bash scripts. This matched my usual development style: keep each unit of work small and readable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vYDiW_e2N-rTLZrnPbNoRQ.png" /></figure><ul><li>01-update-system.sh</li><li>02-install-webserver.sh</li><li>03-install-php.sh</li><li>04-install-mysql-client.sh</li><li>05-download-joomla.sh</li><li>06-configure-apache.sh</li><li>07-configure-php.sh</li><li>08-setup-database.sh</li><li>09-security-hardening.sh</li><li>install-all.sh (master orchestrator)</li></ul><p>Then:</p><ul><li>chmod +x scripts/*.sh</li><li>git add .</li><li>git commit -m “Add Joomla provisioning scripts”</li><li>git push</li></ul><p>With everything in GitHub, I could pull to EC2 and keep the server in sync with my repo, the same Git loop I use in app projects.</p><h3>Step 5: Bring Scripts to EC2 (Git‑first)</h3><p>On the EC2 box (via VS Code terminal):</p><ul><li>sudo apt update &amp;&amp; sudo apt install -y git</li><li>cd ~</li><li>git clone <a href="https://github.com/wrijlarr1431/adventure-works-joomla-two-tier/tree/main">https://github.com//adventure-works-joomla-two-tier.git</a></li><li>cd adventure-works-joomla-two-tier/scripts</li><li>chmod +x *.sh</li></ul><p>You can also use scp from your Mac, but cloning keeps the Git workflow intact for future updates.</p><h3>Step 6: Provision the Web Server</h3><p>This is where the automation paid off. One command to install and configure the web tier:</p><ul><li>cd ~/adventure-works-joomla-two-tier/scripts</li><li>./install-all.sh</li></ul><p>What it handles:</p><ul><li>System updates</li><li>Apache install + enable</li><li>PHP + needed extensions</li><li>MySQL client</li><li>Joomla download to /var/www/html/joomla</li><li>VirtualHost config + rewrite module</li><li>PHP tuning for Joomla</li></ul><p>This step is the bulk of the server setup. I designed it to be readable and safe to re‑run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pM8C6SjdArV3s4wLoYbIzg.png" /></figure><h3>Step 7: Prepare Joomla’s Database Access</h3><p>Still on EC2:</p><ul><li>./08-setup-database.sh</li><li>Enter the RDS endpoint, master user (admin), and password</li><li>The script validates connectivity, creates joomlauser, and grants privileges on joomladb</li><li>It echoes the exact DB settings to paste into Joomla’s installer.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZBZ9O6l9dc4gPUCPio3Pkw.png" /></figure><h3>Step 8: Run the Joomla Web Installer</h3><p>From my Mac:</p><ul><li>Go to http://&lt;EC2_PUBLIC_IP&gt;</li></ul><p>Wizard settings:</p><ul><li>Site: site name + admin account (username, email, strong password)</li><li>Database:</li><li>Type: MySQLi</li><li>Host: RDS endpoint</li><li>Database: joomladb</li><li>User: joomlauser</li><li>Password: the one created earlier</li><li>After installation, I immediately secured the site:</li><li>sudo rm -rf /var/www/html/joomla/installation</li></ul><p>This is Joomla’s standard post‑install hardening step.</p><h3>Step 9: Apply Server Hardening</h3><p>On EC2:</p><ul><li>./09-security-hardening.sh</li></ul><p>This script brings file permissions in line, hides server info, adds recommended Apache headers, and enables unattended security updates. It’s a quick win for ongoing maintenance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*apPs5Qs6CjvLzURwYPvT7g.png" /></figure><h3>Step 10: Verify and Start Creating</h3><ul><li>Frontend: http://&lt;EC2_PUBLIC_IP&gt;</li><li>Admin: http://&lt;EC2_PUBLIC_IP&gt;/administrator</li></ul><p>I logged in, created a sample article, and checked that media uploads and menu routing worked as expected. From here, content and design are just normal Joomla work. Also logged into the admin site to verify information and users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EPRqG8V8l0XFMba8xFguiA.png" /></figure><h3>Why This Felt Natural</h3><p>This project lined up with how I already work:</p><ul><li>VS Code Remote‑SSH made the EC2 server feel like an extension of my workspace.</li><li>Git kept all logic and configuration in one place, versioned, reviewable, and reusable.</li><li>The modular scripts were easy to tweak and re‑run, just like any codebase.</li></ul><p>The result is a repeatable playbook I can apply to future deployments.</p><h3>Closing</h3><p>Building a two‑tier Joomla site on AWS with VS Code, Terminal, and Git felt like a natural extension of my normal development flow. The separation between web and database tiers is clean, the setup is repeatable thanks to scripts in GitHub, and the entire process is manageable from a single VS Code window.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55645d39fd70" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started with AWS CloudFormation: Deploying Aurora Digital’s Foundation]]></title>
            <link>https://medium.com/@wrijlarr/getting-started-with-aws-cloudformation-deploying-aurora-digitals-foundation-7bdca81f9e2d?source=rss-b4078549c4bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/7bdca81f9e2d</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Larry Wright]]></dc:creator>
            <pubDate>Tue, 07 Oct 2025 13:46:48 GMT</pubDate>
            <atom:updated>2025-10-07T13:46:48.126Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building My First Infrastructure as Code: A Simple Yet Powerful Web Server Deployment</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Y1DRZXTG24UwljG9yc0ww.png" /></figure><h3>Overview</h3><p>Aurora Digital, an expanding online retailer specializing in luxury home goods, has decided to make the leap to AWS. As their cloud consultant, I’m helping them build a solid foundation for their cloud journey, starting with the fundamentals.</p><p>This isn’t a complex multi-tier architecture (yet). This is about learning Infrastructure as Code the right way: starting simple, understanding each component, and building confidence before scaling up.</p><h3>The Challenge</h3><p>Aurora Digital’s current situation is all too familiar: they’re running on physical servers that require manual configuration, they can’t scale quickly during sales events, and their development team wastes time recreating environments. They need to modernize, but they need to start somewhere that makes sense.</p><p>The business goals are clear:</p><ul><li><strong>Reduce manual configuration</strong> time and errors</li><li><strong>Establish repeatable deployments</strong> across environments</li><li><strong>Create a foundation</strong> that can grow with the business</li><li><strong>Start learning</strong> AWS best practices from day one</li></ul><h3>Solution Strategy</h3><p>I’m building Aurora Digital a foundational web server deployment using AWS CloudFormation. This single-server setup might seem basic, but it introduces critical concepts that will scale to more complex architectures:</p><ul><li><strong>Infrastructure as Code</strong> principles</li><li><strong>Automated resource provisioning</strong></li><li><strong>Security group configuration</strong></li><li><strong>User Data automation</strong> for software installation</li><li><strong>Template parameterization</strong> for reusability</li></ul><p>Most importantly, this foundation can be deployed in minutes, version-controlled in Git, and replicated across AWS regions or accounts with a single command.</p><h3>Pre-Requisites</h3><p>Before starting, make sure you have:</p><ul><li><strong>AWS Account</strong> with appropriate permissions</li><li><strong>Code Editor</strong> (Visual Studio Code recommended)</li><li><strong>Basic knowledge</strong> of YAML syntax</li><li><strong>EC2 Key Pair</strong> created in your target region</li><li><strong>Basic understanding</strong> of AWS CloudFormation concepts</li></ul><h3>Implementation</h3><h3>The Development Approach</h3><p>I followed an iterative development process that mirrors real-world Infrastructure as Code work:</p><ol><li>Start with the template header and parameters</li><li>Build one resource at a time</li><li>Validate and test each iteration</li><li>Fix errors immediately</li><li>Document lessons learned</li><li>Commit to version control</li></ol><p>This approach prevents the frustration of debugging a massive template with dozens of errors. Build small, test frequently, succeed consistently.</p><h3>Step 1: YAML Header and Parameters</h3><p>Every CloudFormation template starts the same way. I created the foundational structure with parameters that make the template reusable:</p><pre>AWSTemplateFormatVersion: &#39;2010-09-09&#39;<br>Description: &#39;Aurora Digital - Foundational Web Server Infrastructure with Apache&#39;</pre><pre>Parameters:<br>  KeyName:<br>    Description: Name of an existing EC2 KeyPair to enable SSH access<br>    Type: AWS::EC2::KeyPair::KeyName<br>    ConstraintDescription: Must be the name of an existing EC2 KeyPair<br>  <br>  InstanceType:<br>    Description: EC2 instance type for the web server<br>    Type: String<br>    Default: t2.micro<br>    AllowedValues:<br>      - t2.micro<br>      - t2.small<br>      - t2.medium<br>    ConstraintDescription: Must be a valid EC2 instance type<br>  <br>  LatestAmiId:<br>    Description: Latest Amazon Linux 2 AMI ID<br>    Type: AWS::SSM::Parameter::Value&lt;AWS::EC2::Image::Id&gt;<br>    Default: /aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2</pre><p><strong>Why parameters matter:</strong> They transform a single-use template into a reusable asset. The same template can deploy development, staging, and production environments with different values. No code changes required.</p><p><strong>The AMI parameter trick:</strong> Using AWS::SSM::Parameter::Value automatically fetches the latest Amazon Linux 2 AMI. No more hardcoded AMI IDs that become outdated. This is Infrastructure as Code best practice.</p><h3>Step 2: Security Group Configuration</h3><p>Security is never an afterthought. I built the security group first because the EC2 instance will reference it during creation:</p><pre>Resources:<br>  WebServerSecurityGroup:<br>    Type: AWS::EC2::SecurityGroup<br>    Properties:<br>      GroupName: aurora-digital-webserver-sg<br>      GroupDescription: Security group for Aurora Digital web server<br>      SecurityGroupIngress:<br>        # HTTP Access<br>        - IpProtocol: tcp<br>          FromPort: 80<br>          ToPort: 80<br>          CidrIp: 0.0.0.0/0<br>          Description: Allow HTTP traffic from anywhere<br>        # HTTPS Access<br>        - IpProtocol: tcp<br>          FromPort: 443<br>          ToPort: 443<br>          CidrIp: 0.0.0.0/0<br>          Description: Allow HTTPS traffic from anywhere<br>        # SSH Access<br>        - IpProtocol: tcp<br>          FromPort: 22<br>          ToPort: 22<br>          CidrIp: 0.0.0.0/0<br>          Description: Allow SSH access from anywhere<br>      Tags:<br>        - Key: Name<br>          Value: aurora-digital-webserver-sg<br>        - Key: Project<br>          Value: Aurora Digital</pre><p><strong>Important security note:</strong> In production, you’d restrict SSH access (port 22) to specific IP ranges like your office or VPN. The 0.0.0.0/0 CIDR allows access from anywhere, convenient for learning, but not production-ready.</p><h3>Step 3: Troubleshooting Error — SecurityGroupEgress Without VpcId</h3><p>When I first created the security group, I included explicit egress (outbound) rules. CloudFormation immediately rejected my template:</p><pre>Resource handler returned message: &quot;SecurityGroupEgress cannot be <br>specified without VpcId&quot; (HandlerErrorCode: InvalidRequest)</pre><p><strong>The problem:</strong> When you don’t specify a VpcId, CloudFormation creates the security group in your default VPC. But if you want to define explicit egress rules, you must explicitly reference the VPC.</p><p><strong>The solution:</strong> I removed the SecurityGroupEgress section entirely. Why? Because AWS security groups <strong>already allow all outbound traffic by default</strong>. Unless you need restrictive egress rules (uncommon for web servers), the default behavior is exactly what we want.</p><p><strong>Lesson learned:</strong> Sometimes the best code is code you don’t write. Understanding AWS defaults prevents unnecessary complexity.</p><h3>Step 4: EC2 Instance with User Data</h3><p>Now comes the magic, an EC2 instance that automatically configures itself on first boot:</p><pre>WebServerInstance:<br>    Type: AWS::EC2::Instance<br>    Properties:<br>      InstanceType: !Ref InstanceType<br>      ImageId: !Ref LatestAmiId<br>      KeyName: !Ref KeyName<br>      SecurityGroupIds:<br>        - !Ref WebServerSecurityGroup<br>      UserData:<br>        Fn::Base64: !Sub |<br>          #!/bin/bash<br>          # Update system packages<br>          yum update -y<br>          <br>          # Install Apache web server<br>          yum install -y httpd<br>          <br>          # Start Apache service<br>          systemctl start httpd<br>          <br>          # Enable Apache to start on boot<br>          systemctl enable httpd<br>          <br>          # Create custom homepage<br>          cat &gt; /var/www/html/index.html &lt;&lt; &#39;EOF&#39;<br>          &lt;!DOCTYPE html&gt;<br>          &lt;html lang=&quot;en&quot;&gt;<br>          &lt;head&gt;<br>              &lt;meta charset=&quot;UTF-8&quot;&gt;<br>              &lt;title&gt;Aurora Digital - Luxury Home Goods&lt;/title&gt;<br>              &lt;style&gt;<br>                  body {<br>                      font-family: &#39;Georgia&#39;, serif;<br>                      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);<br>                      display: flex;<br>                      justify-content: center;<br>                      align-items: center;<br>                      min-height: 100vh;<br>                  }<br>                  .container {<br>                      background: white;<br>                      padding: 50px;<br>                      border-radius: 15px;<br>                      text-align: center;<br>                  }<br>                  h1 { color: #667eea; }<br>              &lt;/style&gt;<br>          &lt;/head&gt;<br>          &lt;body&gt;<br>              &lt;div class=&quot;container&quot;&gt;<br>                  &lt;h1&gt;🌅 Aurora Digital&lt;/h1&gt;<br>                  &lt;p&gt;Welcome to our cloud-powered platform!&lt;/p&gt;<br>              &lt;/div&gt;<br>          &lt;/body&gt;<br>          &lt;/html&gt;<br>          EOF<br>      Tags:<br>        - Key: Name<br>          Value: aurora-digital-webserver</pre><p><strong>The power of User Data:</strong> This bash script runs automatically when the instance launches. No SSH required, no manual configuration, complete automation. Every instance deployed from this template will be identically configured.</p><p><strong>The intrinsic functions:</strong> CloudFormation’s !Ref function pulls parameter values dynamically. !Sub enables variable substitution. These functions make templates flexible and maintainable.</p><h3>Step 5: Outputs for Easy Access</h3><p>Outputs provide critical information after deployment without forcing users to hunt through the AWS Console:</p><pre>Outputs:<br>  WebServerPublicIP:<br>    Description: Public IP address of the web server<br>    Value: !GetAtt WebServerInstance.PublicIp<br>  <br>  WebServerPublicDNS:<br>    Description: Public DNS name of the web server<br>    Value: !GetAtt WebServerInstance.PublicDnsName<br>  <br>  WebsiteURL:<br>    Description: URL to access the Aurora Digital website<br>    Value: !Sub &#39;http://${WebServerInstance.PublicDnsName}&#39;<br>  <br>  SecurityGroupId:<br>    Description: Security Group ID for the web server<br>    Value: !Ref WebServerSecurityGroup</pre><p>After deployment, these outputs appear in the CloudFormation console. Click the website URL, and you’re instantly viewing your deployed application. No IP address hunting required.</p><h3>Deployment Process</h3><p>With the template complete, deployment is straightforward:</p><h3>Using AWS Console:</h3><ol><li>Navigate to CloudFormation → Create Stack</li><li>Upload the template file</li><li>Enter stack name: aurora-digital-production</li><li>Select your key pair from the dropdown</li><li>Review and submit</li><li>Wait 3–5 minutes for <strong>CREATE_COMPLETE</strong> status</li></ol><p>That’s it. Minutes later, you have a running web server with Apache installed, configured, and serving a custom homepage.</p><h3>Testing and Verification</h3><p>After deployment completes, I verified everything worked:</p><h3>1. Check Stack Outputs</h3><ul><li>Navigate to CloudFormation → Stacks → aurora-digital-production</li><li>Click “Outputs” tab</li><li>Copy the WebsiteURL value</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WmmZ8TtFHke-kybHcQWl_Q.png" /></figure><h3>2. Test the Website</h3><ul><li>Paste the URL into a browser</li><li>Verify the Aurora Digital homepage loads</li><li>Confirm Apache is serving content correctly</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tUTr7daS0XEo3xb8yLcv2w.png" /></figure><h3>3. Verify Security Group Configuration</h3><ul><li>Navigate to EC2 → Security Groups</li><li>Find aurora-digital-webserver-sg</li><li>Confirm inbound rules for ports 22, 80, 443</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zbp9ingZxKopYuVa4R90Fg.png" /></figure><h3>4. Test SSH Access</h3><pre>ssh -i /path/to/your-key.pem ec2-user@&lt;public-ip&gt;<br>sudo systemctl status httpd</pre><p>Everything worked perfectly. Aurora Digital now has a fully automated, repeatable deployment process.</p><h3>Common Pitfalls and Solutions</h3><h3>YAML Formatting Errors</h3><p>The most frequent issue I encountered wasn’t technical complexity, it was <strong>indentation</strong>. YAML relies on precise spacing. A single misplaced space breaks the entire template.</p><p><strong>Solution:</strong> Use Visual Studio Code with the YAML extension. It highlights syntax errors before deployment, saving significant debugging time.</p><h3>Parameter Constraints</h3><p>CloudFormation validates parameter values against constraints. If you specify allowed values for InstanceType but then try to use t3.medium, deployment fails.</p><p><strong>Solution:</strong> Design parameters with appropriate constraints but test them with actual values you’ll use.</p><h3>Resource Ordering</h3><p>CloudFormation automatically determines resource creation order based on dependencies. If Resource B references Resource A with !Ref, CloudFormation creates A first.</p><p><strong>Solution:</strong> Use !Ref and !GetAtt correctly. CloudFormation handles the rest.</p><h3>What’s Next: Scaling Aurora Digital</h3><p>This foundational deployment is just the beginning. Aurora Digital’s next evolution includes:</p><h3>Phase 2: High Availability</h3><ul><li><strong>Application Load Balancer</strong> distributing traffic</li><li><strong>Auto Scaling Group</strong> handling traffic spikes</li><li><strong>Multi-AZ deployment</strong> for fault tolerance</li></ul><h3>Phase 3: Advanced Architecture</h3><ul><li><strong>RDS database</strong> for product catalog</li><li><strong>S3 and CloudFront</strong> for static asset delivery</li><li><strong>Route 53</strong> for custom domain management</li><li><strong>AWS Certificate Manager</strong> for HTTPS</li></ul><h3>Phase 4: DevOps Maturity</h3><ul><li><strong>CI/CD pipeline</strong> for automated deployments</li><li><strong>CloudWatch alarms</strong> for proactive monitoring</li><li><strong>Parameter Store</strong> for configuration management</li><li><strong>Stack policies</strong> preventing accidental deletions</li></ul><p>Each phase builds on the Infrastructure as Code foundation we established today.</p><h3>Conclusion</h3><p>This project demonstrates that you don’t need a complex architecture to start benefiting from Infrastructure as Code. A single web server deployed via CloudFormation teaches fundamental concepts that scale to enterprise architectures:</p><ul><li><strong>Automation eliminates manual errors</strong></li><li><strong>Version control enables collaboration</strong></li><li><strong>Parameterization creates reusability</strong></li><li><strong>Outputs improve user experience</strong></li></ul><p>For Aurora Digital, this template provides immediate value: consistent environments, faster deployments, and a foundation for growth. More importantly, it introduces their team to Infrastructure as Code thinking — infrastructure isn’t something you click together, it’s something you write, test, and version.</p><p>For me, it reinforced that great cloud engineering starts with fundamentals. Master the basics, understand the errors, document the solutions. Complex architectures are just simple building blocks assembled with care.</p><p>The future of infrastructure is code. This is where that journey begins.</p><h3>Resources</h3><ul><li><strong>CloudFormation Documentation:</strong> <a href="https://docs.aws.amazon.com/cloudformation/">https://docs.aws.amazon.com/cloudformation/</a></li><li><strong>Template Reference:</strong> <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-reference.html">https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-reference.html</a></li><li><strong>Best Practices:</strong> <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html">https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7bdca81f9e2d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Banking in the Cloud: Deploying Apache with AWS VPC, ALB, and Auto Scaling]]></title>
            <link>https://medium.com/@wrijlarr/banking-in-the-cloud-deploying-apache-with-aws-vpc-alb-and-auto-scaling-28e31e255e66?source=rss-b4078549c4bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/28e31e255e66</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Larry Wright]]></dc:creator>
            <pubDate>Wed, 01 Oct 2025 15:27:05 GMT</pubDate>
            <atom:updated>2025-10-01T15:27:05.663Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9ymArZFOE4nYvEa9X-P2FQ.jpeg" /></figure><h3>Introduction</h3><p>In today’s fast-paced digital economy, banks need to provide reliable, secure, and scalable online services. The <strong>Level-Up Bank</strong> has decided to migrate its infrastructure to the cloud to achieve these goals. By leveraging <strong>Amazon Web Services (AWS)</strong>, Level-Up Bank can scale seamlessly, reduce costs, and maintain security compliance.</p><p>This project demonstrates how we build a <strong>scalable, highly available web infrastructure</strong> on AWS using:</p><ul><li>Amazon VPC (10.10.0.0/16 CIDR)</li><li>Public Subnets across Availability Zones</li><li>Application Load Balancer (ALB)</li><li>Auto Scaling Group (ASG) with EC2 instances running Apache</li><li>Security Groups for controlled access</li></ul><p>With this architecture, the bank ensures customers always have access to their online services, even during peak demand.</p><h3>Key Components:</h3><ul><li><strong>VPC (10.10.0.0/16)</strong> → forms the networking foundation.</li><li><strong>Three Public Subnets</strong> in different AZs → 10.10.1.0/24, 10.10.2.0/24, 10.10.3.0/24.</li><li><strong>Internet Gateway + Route Table</strong> → routes public traffic to subnets.</li><li><strong>Application Load Balancer (ALB)</strong> → distributes incoming HTTP traffic across multiple EC2s.</li><li><strong>Auto Scaling Group (ASG)</strong> → dynamically starts/stops Apache servers (Min=2, Max=5).</li><li><strong>Security Groups</strong> → ALB SG allows HTTP from the internet; Web Server SG only accepts ALB traffic.</li></ul><h3>Step 1: Create a VPC</h3><ul><li>Create a VPC with CIDR block 10.10.0.0/16.</li><li>Enable DNS hostnames and resolution.</li><li>This VPC will host all other resources.</li></ul><h3>Step 2: Create Subnets and Route Tables</h3><ul><li>Subnet A: 10.10.1.0/24 in <strong>us-east-1a</strong></li><li>Subnet B: 10.10.2.0/24 in <strong>us-east-1b</strong></li><li>Subnet C: 10.10.3.0/24 in <strong>us-east-1c</strong></li><li>Attach an <strong>Internet Gateway</strong> to the VPC.</li><li>Create a public route table → add route 0.0.0.0/0 pointing to IGW → associate with all subnets.</li></ul><h3>Step 3: Configure Security Groups</h3><ol><li><strong>Load Balancer Security Group</strong></li></ol><ul><li>Inbound: HTTP (80) from 0.0.0.0/0.</li><li>Outbound: all traffic.</li></ul><ol><li><strong>Web Server Security Group</strong></li></ol><ul><li>Inbound: HTTP (80) only from the <strong>ALB SG</strong>.</li><li>Outbound: all traffic.</li><li>Ensures direct public access to EC2s is blocked.</li></ul><h3>Step 4: Create Launch Template</h3><ul><li><strong>Instance Type</strong>: t2.micro</li><li><strong>AMI</strong>: Amazon Linux 2023</li><li><strong>Security Group</strong>: Web Server SG</li><li><strong>User Data Script</strong>: Installs Apache and sets up a custom web page.</li></ul><h3>Step 5: Create Target Group and ALB</h3><ul><li>Create a <strong>Target Group</strong> for EC2s on port 80.</li><li>Create an <strong>Application Load Balancer</strong>:</li><li>Internet-facing, IPv4.</li><li>Add listener HTTP 80 → forward to Target Group.</li><li>Attach <strong>ALB Security Group</strong>.</li></ul><h3>Step 6: Configure Auto Scaling Group</h3><ul><li>Based on Launch Template.</li><li>Attach to Target Group for the ALB.</li><li>Desired capacity = 2, Min = 2, Max = 5.</li><li>Subnets: all three public subnets (multi-AZ deployment).</li></ul><p>This ensures that:</p><ul><li>At least 2 Apache servers are always running.</li><li>Traffic is equally distributed across AZs.</li><li>ASG replaces failed instances automatically.</li></ul><h3>Step 7: Test the Setup</h3><ul><li>Get the <strong>DNS name</strong> of your Application Load Balancer from the AWS console.</li><li>Open it in your browser.</li><li>You should see the Apache test page with different backend server IPs as you refresh.</li><li>Terminate one EC2 manually → Auto Scaling will launch a new instance.</li></ul><h3>Benefits</h3><ol><li><strong>Scalability</strong>: Automatically handles traffic spikes by scaling EC2s.</li><li><strong>High Availability</strong>: Multi-AZ deployment ensures uptime.</li><li><strong>Security</strong>: EC2s hidden from direct internet access.</li><li><strong>Cost Efficiency</strong>: Pay-as-you-go EC2 and ALB pricing.</li><li><strong>Resilience</strong>: Fault-tolerant auto replacement of unhealthy instances.</li></ol><h3>Conclusion</h3><p>By migrating to AWS with this setup, the company gains a secure, scalable, and reliable foundation to host critical web applications. Customers benefit from uninterrupted, fast, and secure banking services while the bank reduces operational costs.</p><p>This project is a strong starting point. Further enhancements like <strong>SSL termination, CloudWatch alarms, and RDS for databases</strong> can be layered in for a full production-ready banking environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28e31e255e66" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting Up a Cloud Web Server with AWS EC2]]></title>
            <link>https://medium.com/@wrijlarr/setting-up-a-cloud-web-server-with-aws-ec2-40604b61f03e?source=rss-b4078549c4bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/40604b61f03e</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-engineering]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Larry Wright]]></dc:creator>
            <pubDate>Mon, 22 Sep 2025 19:33:27 GMT</pubDate>
            <atom:updated>2025-09-22T22:18:20.483Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cqSbTnx1Gb94IDNl.png" /></figure><h3>Introduction</h3><p>Cloud infrastructure has transformed how we deliver web applications. Instead of relying on on‑premises servers, engineers can now create scalable and cost‑effective environments in just a few clicks. To practice this process, I built a simple cloud‑based web server using <strong>AWS EC2</strong> , the foundational service for running virtual machines in the AWS ecosystem.</p><h3>The Challenge</h3><p>The objective was to quickly deploy a test web server:</p><ul><li>Hosted securely in the cloud</li><li>Accessible publicly over the internet</li><li>Built with automation so it spins up ready to use</li></ul><p>This mirrors a real‑world scenario where a development or DevOps team needs to bootstrap an environment for testing or staging.</p><h3>Solution Strategy</h3><p>To solve this, I used <strong>Amazon Linux 2</strong> as the base image, attached a <strong>user‑data script</strong> to handle Apache installation, and adjusted the security groups so the server was accessible via port 80. This ensured that within minutes of instance launch, the EC2 machine was online and serving content.</p><h3>Configuration Sequence</h3><p><strong>1. Script Configuration</strong><br> During instance creation, I included this script under <em>Advanced → User Data</em> to automate Apache setup:</p><pre>#!/bin/bash  <br>yum update -y  <br>yum install -y httpd  <br>systemctl start httpd  <br>systemctl enable httpd  <br>echo &quot;&lt;h1&gt;Hello from AWS EC2!&lt;/h1&gt;&quot; &gt; /var/www/html/index.html</pre><p><strong>2. Instance Setup</strong></p><ul><li>AMI: <strong>Amazon Linux 2</strong></li><li>Instance type: t2.micro (Free Tier eligible)</li><li>Key pair: Created for SSH access</li><li>Launch template included the script above</li></ul><p><strong>3. Security Configuration</strong></p><ul><li>Allowed <strong>HTTP (TCP 80)</strong> traffic from all IPs</li><li>Restricted <strong>SSH (TCP 22)</strong> to my own IP address for security</li></ul><p><strong>4. Verification</strong></p><ul><li>Once the instance was running, I grabbed the <strong>Public IPv4</strong> address</li><li>Opened it in a browser → confirmed Apache responded with my custom test page</li></ul><h3>Results</h3><ul><li><strong>Scalability:</strong> EC2 makes it trivial to clone or autoscale servers</li><li><strong>Security:</strong> AWS groups allow fine‑grained inbound/outbound rules</li><li><strong>Automation:</strong> Server was fully configured at boot with no manual installs</li></ul><h3>Closing Analysis</h3><p>Setting up this server proved how quickly AWS lets you prototype production‑like environments. What started as a single machine running Apache can easily be extended with:</p><ul><li>Elastic Load Balancers</li><li>Domain management (Route 53)</li><li>HTTPS configuration with ACM</li><li>CI/CD pipelines for continuous deployment</li></ul><p>This experience reinforced the principle that <em>automation first</em> is the key to modern cloud infrastructure.</p><p><strong>Tools Used</strong></p><ul><li>AWS EC2</li><li>Amazon Linux 2</li><li>Apache Web Server</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40604b61f03e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>