<?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 Naz Bilgic on Medium]]></title>
        <description><![CDATA[Stories by Naz Bilgic on Medium]]></description>
        <link>https://medium.com/@cloudofnaz?source=rss-67e7ebc93d91------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Ue120suNkDx6rEQL</url>
            <title>Stories by Naz Bilgic on Medium</title>
            <link>https://medium.com/@cloudofnaz?source=rss-67e7ebc93d91------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 01:25:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cloudofnaz/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[# How I Built and Deployed a Netflix-Inspired App Using Jenkins, Docker, and AWS]]></title>
            <link>https://medium.com/@cloudofnaz/how-i-built-and-deployed-a-netflix-inspired-app-using-jenkins-docker-and-aws-b89b58124570?source=rss-67e7ebc93d91------2</link>
            <guid isPermaLink="false">https://medium.com/p/b89b58124570</guid>
            <dc:creator><![CDATA[Naz Bilgic]]></dc:creator>
            <pubDate>Tue, 17 Jun 2025 18:40:41 GMT</pubDate>
            <atom:updated>2025-06-17T18:44:06.649Z</atom:updated>
            <content:encoded><![CDATA[<p><strong># How I Built and Deployed a Netflix-Inspired App Using Jenkins, Docker, and AWS</strong></p><p>As a DevOps engineer diving into the world of CI/CD, containerization, and cloud deployments, I wanted to build something that reflects a real-world use case. That’s how this Netflix-inspired DevOps project was born.</p><p>The idea was simple: clone the basic structure of a Netflix UI, connect it to real movie data using the TMDB API, and deploy the whole thing to AWS with full automation and monitoring.</p><p><strong>## Tech Stack Overview</strong></p><p>Here’s a quick look at the tools and services I used:</p><p>- <strong>**Frontend**</strong>: React</p><p>- <strong>**Backend**</strong>: Node.js + Express</p><p>- <strong>**External API**</strong>: TMDB (The Movie Database)</p><p>- <strong>**CI/CD**</strong>: Jenkins + GitHub Webhook</p><p>- <strong>**Containerization**</strong>: Docker + Docker Compose</p><p>- <strong>**Monitoring**</strong>: Prometheus + Grafana</p><ul><li><strong>**Cloud Hosting**</strong>: AWS EC2</li></ul><p><strong>## CI/CD Pipeline with Jenkins &amp; GitHub</strong></p><p>One of the key goals of this project was to automate everything. I connected my GitHub repository to Jenkins using a webhook, so every push would automatically trigger a pipeline.</p><p>The pipeline built Docker images for both frontend and backend, then deployed them on my EC2 instance using Docker Compose.</p><p><strong>## Docker &amp; Docker Compose</strong></p><p>Everything is containerized. My `docker-compose.yml` file defines services for the backend, frontend, Prometheus, and Grafana. This setup allows me to start the entire stack with a single command.</p><p><strong>## Application UI — React Frontend &amp; TMDB API</strong></p><p>The frontend fetches data from my Node.js backend, which in turn connects to the TMDB API to retrieve trending and popular movies.</p><p>I styled the UI to resemble Netflix, including a hero section featuring the show <em>*Suits*</em> and a grid layout of popular movies.</p><p><strong>## Monitoring with Prometheus &amp; Grafana</strong></p><p>The backend exposes a `/metrics` endpoint that Prometheus scrapes. I configured Grafana to visualize custom metrics like HTTP 500 error counts.</p><p>This gave me real-time observability into how my backend is performing.</p><p><strong>## Deployment on AWS EC2</strong></p><p>I deployed the full stack to an AWS EC2 instance. While the app currently runs over HTTP, I noted that TLS/HTTPS can be easily added using NGINX and Let’s Encrypt.</p><p><strong>## 📦 Project Structure</strong></p><p>netflix-devOps/</p><p>├── backend/ # Node.js + Express backend</p><p>│ └── server.js</p><p>├── frontend/ # React frontend</p><p>│ └── src/</p><p>├── prometheus/ # Prometheus config</p><p>│ └── prometheus.yml</p><p>├── grafana/ # Grafana config &amp; dashboards</p><p>├── docker-compose.yml # All services defined here</p><p>├── jenkins/ # Jenkins pipeline files</p><p>└── README.md</p><p><strong>## 🌐 Port Mapping</strong></p><p>| Service | Port (Container) | Port (Host) | Description |</p><p>| Frontend | 3000 | 3000 | React app |</p><p>| Backend | 5000 | 5000 | Node.js API |</p><p>| Prometheus | 9090 | 9090 | Prometheus web UI |</p><p>| Grafana | 3001 | 3001 | Grafana dashboard |</p><p>| Jenkins | 8080 | 8080 | Jenkins UI |</p><p><strong>## Lessons Learned</strong></p><p>- Docker Compose makes local and cloud deployment predictable</p><p>- Jenkins + Webhooks = smooth automation</p><p>- Prometheus + Grafana is a powerful combo for DevOps monitoring</p><ul><li>Even demo projects deserve clean code, logging, and structure</li></ul><p><strong>## GitHub Repository</strong></p><p>Check out the full source code here:</p><p>🔗 <a href="https://github.com/NazBilgic/netflix-devops.git">https://github.com/NazBilgic/netflix-devops.git</a></p><p><strong>## Final Note</strong></p><p>This project wasn’t just about building an app. It was about building a <strong>**DevOps pipeline**</strong> that reflects real-world practices — automation, containerization, observability, and cloud deployment.</p><p>Built with ☕, patience, and a lot of `docker-compose down &amp;&amp; up — build`.</p><p>Thanks for reading! Let me know what you think or if you’re building something similar.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b89b58124570" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating My Spotify Playlist with AWS Lambda & Terraform ]]></title>
            <link>https://medium.com/@cloudofnaz/automating-my-spotify-playlist-with-aws-lambda-terraform-1e209f2ef08f?source=rss-67e7ebc93d91------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e209f2ef08f</guid>
            <dc:creator><![CDATA[Naz Bilgic]]></dc:creator>
            <pubDate>Thu, 29 May 2025 18:41:46 GMT</pubDate>
            <atom:updated>2025-05-29T23:27:56.133Z</atom:updated>
            <content:encoded><![CDATA[<p>I found it very cool to manage my Spotify playlist with Terraform.<br>While exploring serverless tools and Infrastructure as Code, I thought — why not bring a bit of music into the mix?<br>So, I built a fun little automation project using AWS Lambda, EventBridge, and the Spotify API.</p><p>Here’s how I did it (and how you can too!).</p><h3>The Idea</h3><p>I listen to music while working, coding, walking, and even when debugging Terraform errors. So I thought — what if I automate a playlist that adds my current favorite tracks every day?</p><p>I wanted to:</p><ul><li>Build something serverless</li><li>Use Infrastructure as Code (because I Love Terraform)</li><li>Learn more about the Spotify API</li></ul><p>The Tech Stack</p><ul><li><strong>Terraform</strong> — for managing and deploying AWS resources</li><li><strong>AWS Lambda</strong> — to run my playlist update logic</li><li><strong>EventBridge</strong> — to trigger the Lambda daily</li><li><strong>Spotify Developer API</strong> — to add tracks to a playlist</li><li><strong>Python (requests)</strong> — for making API calls</li></ul><h3>Project Structure</h3><pre>terraform-spotify-lambda/<br>├── lambda/                  # Python script for Lambda<br>│   └── main.py              # Adds songs to playlist<br>├── terraform/              # Terraform config files<br>│   ├── main.tf<br>│   ├── variables.tf<br>│   ├── outputs.tf<br>│   └── terraform.tfvars    # Your secrets (not pushed!)<br>├── get_refresh_token.py    # Script to get Spotify refresh token<br>├── requirements.txt        # Python packages<br>├── lambda_package.zip      # Lambda deployment package<br>└── README.md</pre><h3>🪜 Step-by-Step Setup</h3><h4>1. Create a Spotify Developer App</h4><ul><li>Go to <a href="https://developer.spotify.com/dashboard">Spotify Developer Dashboard</a></li><li>Create an app → get your <em>Client ID</em> and <em>Client Secret</em></li></ul><h4>2. Set Redirect URI</h4><pre>http://localhost:8888/callback</pre><h4>3. Generate Refresh Token</h4><p>Run this local script once:</p><pre>python get_refresh_token.py</pre><p>Copy the refresh token. We’ll use this in Terraform.</p><h4>4. Find Your Playlist ID</h4><ul><li>Open your Spotify playlist</li><li>Copy the last part of the URL:</li></ul><pre>https://open.spotify.com/playlist/0000000000000<br>→ Playlist ID = 0000000000</pre><h4>5. Configure terraform.tfvars</h4><pre>aws_region            = &quot;eu-west-1&quot;<br>spotify_client_id     = &quot;your-client-id&quot;<br>spotify_client_secret = &quot;your-client-secret&quot;<br>spotify_refresh_token = &quot;your-refresh-token&quot;<br>spotify_playlist_id   = &quot;your-playlist-id&quot;</pre><h4>6. Package and Deploy</h4><pre>pip install -r requirements.txt -t lambda/<br>cd lambda<br>zip -r9 ../lambda_package.zip .<br>cd ../terraform<br>terraform init<br>terraform apply</pre><h3>⚙️ How It Works</h3><ul><li>EventBridge triggers the Lambda function daily</li><li>Lambda uses the refresh token to fetch an access token</li><li>It then adds a hardcoded list of track URIs to your playlist</li></ul><p>Want to change the songs? Just update this part in main.py:</p><pre>&quot;uris&quot;: [<br>  &quot;spotify:track:...&quot;,<br>  &quot;spotify:track:...&quot;<br>]</pre><p>You can get Spotify URIs from <a href="https://developer.spotify.com/console/post-playlist-tracks/">Spotify Console</a>.</p><h3>Explore the Code on GitHub</h3><p>If you’d like to explore the code or deploy it yourself, the full project is available here:</p><p>🔗 GitHub: <a href="https://github.com/NazBilgic/terraform-spotify-lambda">github.com/NazBilgic/terraform-spotify-lambda</a></p><h3>Why I Loved This Project</h3><p>✅ Fun way to learn about APIs, auth flows, and Lambda packaging<br>✅ A real use case to show in interviews<br>✅ The perfect blend of music + DevOps</p><p>Also, it’s pretty satisfying to see songs show up on your playlist like magic 🎩🎶</p><h3>Final Thoughts</h3><p>If you’re learning cloud or DevOps, personal projects like this are gold. It’s not just about knowing the tools, but using them creatively.</p><p>Thanks for reading! If you build your version — tag me, I’d love to see it!</p><p>Until next time, <strong>Naz</strong> ☁️</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*75OvMqT3HMJtN_RrrTVXkg@2x.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e209f2ef08f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[☁️ How to Host Your Portfolio on AWS (for Almost Free)]]></title>
            <link>https://medium.com/@cloudofnaz/%EF%B8%8F-how-to-host-your-portfolio-on-aws-for-almost-free-5e092b4f5b96?source=rss-67e7ebc93d91------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e092b4f5b96</guid>
            <dc:creator><![CDATA[Naz Bilgic]]></dc:creator>
            <pubDate>Tue, 27 May 2025 14:06:09 GMT</pubDate>
            <atom:updated>2025-05-27T14:26:11.239Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Read time: 4–5 minutes</em></p><p>Hi friends, welcome to my cloud space!</p><p>Want to host your own portfolio website — fast, secure, and almost free?</p><p>In this post, I’ll show you how to build a static portfolio website on AWS using Free Tier services like:</p><ul><li>S3</li><li>Route 53</li><li>CloudFront</li><li>Certificate Manager</li></ul><p><strong>Spoiler:</strong> It’s easier than it sounds.</p><h3>✅ What We’re Building</h3><p>A simple, secure personal website with:</p><ul><li>Custom domain</li><li>HTTPS (SSL)</li><li>Fast delivery with CDN</li><li>Fully serverless architecture</li></ul><p><strong>🛠️ Tools Used</strong></p><ul><li><strong>S3</strong> — to host your static files</li><li><strong>Route 53</strong> — for DNS and domain registration</li><li><strong>Certificate Manager</strong> — to get free SSL</li><li><strong>CloudFront</strong> — to serve your website securely and quickly</li><li><strong>IAM</strong> — to manage permissions</li></ul><h3>🔧 Step-by-Step Instructions</h3><p><strong>1. Create an S3 Bucket</strong></p><ul><li>Name your bucket exactly like your domain (e.g. nazportfolio.com)</li><li>Enable static website hosting</li><li>Upload your index.html and other files</li></ul><p>🧩 Here’s a simple index.html file you can use. Just upload this to your S3 bucket to get started:</p><p>&lt;pre&gt; ```html &lt;!DOCTYPE html&gt; &lt;html lang=”en”&gt; &lt;head&gt; &lt;meta charset=”UTF-8&quot; /&gt; &lt;meta name=”viewport” content=”width=device-width, initial-scale=1.0&quot; /&gt; &lt;title&gt;Naz | Cloud DevOps Engineer&lt;/title&gt; &lt;style&gt; body { font-family: Arial, sans-serif; background-color: #f3f4f6; color: #111827; text-align: center; padding: 50px; } h1 { color: #2563eb; } a { color: #2563eb; text-decoration: none; font-weight: bold; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;h1&gt;Hi, I’m Naz 👋&lt;/h1&gt; &lt;p&gt;Cloud DevOps Engineer | AWS &amp; Terraform Enthusiast&lt;/p&gt; &lt;p&gt;This is my portfolio site hosted on AWS using S3, Route 53 &amp; CloudFront.&lt;/p&gt; &lt;p&gt;Check out my work on &lt;a href=”https://github.com/cloudofnaz” target=”_blank”&gt;GitHub&lt;/a&gt;&lt;/p&gt; &lt;/body&gt; &lt;/html&gt; ``` &lt;/pre&gt;Set public read access</p><p><strong>2. Register a Domain with Route 53</strong></p><ul><li>Buy a domain (like nazportfolio.com)</li><li>Create a Hosted Zone</li><li>Later, use it to point DNS to CloudFront</li></ul><p><strong>3. Get an SSL Certificate</strong></p><ul><li>Use AWS Certificate Manager</li><li>Request a certificate for your domain</li><li>Choose DNS validation</li><li>Add the DNS record to Route 53 and wait for approval</li></ul><p><strong>4. Set Up CloudFront</strong></p><ul><li>Set your S3 bucket as the origin</li><li>Attach your SSL certificate</li><li>Set index.html as the default root object</li><li>Update your Route 53 DNS records to point to CloudFront</li></ul><h3>💡 What You’ll Learn</h3><ul><li>How different AWS services connect together</li><li>How to configure DNS and SSL</li><li>Static website hosting using only Free Tier resources</li><li>A mini real-world infrastructure project</li></ul><h3>📌 Quick Summary</h3><ul><li>Hosting: S3</li><li>Domain &amp; DNS: Route 53</li><li>SSL: AWS Certificate Manager</li><li>CDN &amp; HTTPS: CloudFront</li><li>Level: Beginner</li><li>Time: ~1 hour</li><li>Cost: Free (domain ~$12/year)</li></ul><h3>🌱 Final Thoughts</h3><p>This is a great first AWS project — simple yet very practical.<br> Once you see your portfolio running securely with your custom domain, you’ll feel like a true cloud builder. 🙌</p><p>Thanks for reading! If you try it, I’d love to hear how it goes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e092b4f5b96" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Containerized Sports API Management with AWS]]></title>
            <link>https://medium.com/@cloudofnaz/containerized-sports-api-management-with-aws-9daa37eb618f?source=rss-67e7ebc93d91------2</link>
            <guid isPermaLink="false">https://medium.com/p/9daa37eb618f</guid>
            <dc:creator><![CDATA[Naz Bilgic]]></dc:creator>
            <pubDate>Mon, 27 Jan 2025 15:47:06 GMT</pubDate>
            <atom:updated>2025-01-27T17:46:57.496Z</atom:updated>
            <content:encoded><![CDATA[<h4><a href="https://www.linkedin.com/feed/hashtag/?keywords=30daysofdevopsallstarschallenge&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7283448174520807426">#30DaysOfDevOpsAllStarsChallenge</a> ☁️</h4><p>Hi everyone! Here’s another great project I worked on as part of the #30DaysOfDevOpsAllStarsChallenge ☁️</p><p>I find this project truly exciting! Working with tools like <strong>Amazon ECS</strong>, <strong>API Gateway</strong>, and Docker was fun. The opportunity to dive deeper into cloud technologies and learn new things is something I look forward to. I hope to work on more complex projects like this one and continue enhancing my skills in cloud computing and DevOps. The learning experience has been incredible so far, and I’m eager to see what’s next!</p><p>Excited to dive in!!</p><p>This project demonstrates how to build a containerized API management system for querying sports data. It utilizes Amazon ECS (Fargate) for running containers, Amazon API Gateway for exposing REST API endpoints, and an external Sports API for real-time sports data. The project showcases advanced cloud computing practices, such as API management, container orchestration, and secure AWS integrations.Containerized Sports API Management with AWS</p><h4>Features:</h4><ul><li>Exposes a REST API for querying real-time sports data</li><li>Runs a containerized backend using Amazon ECS with Fargate</li><li>Scalable and serverless architecture</li><li>API management and routing using Amazon API Gateway</li></ul><h4>Technical Architecture:</h4><p>The project architecture is designed on AWS, with <strong>Amazon ECS (Fargate)</strong> managing the containers, and <strong>API Gateway</strong>handling API requests from users. <strong>CloudWatch</strong> is used for monitoring and logging.</p><h4>Technologies Used:</h4><ul><li><strong>Cloud Provider</strong>: AWS</li><li><strong>Core Services</strong>: Amazon ECS (Fargate), API Gateway, CloudWatch</li><li><strong>Programming Language</strong>: Python 3.x</li><li><strong>Containerization</strong>: Docker</li><li><strong>Security</strong>: Custom IAM roles and policies for task execution and API Gateway access</li></ul><h4>Project Structure:</h4><pre>sports-api-management/<br>├── app.py               # Flask app for querying sports data<br>├── Dockerfile           # Dockerfile to containerize the Flask app<br>├── requirements.txt     # Python dependencies<br>├── .gitignore<br>└── README.md            # Project documentation</pre><h4>Setup Instructions:</h4><ol><li><strong>Clone the Repository:</strong></li></ol><pre>git clone https://github.com/ifeanyiro9/containerized-sports-api.git<br>cd containerized-sports-api</pre><ol><li><strong>Create an ECR Repository:</strong></li></ol><pre>aws ecr create-repository --repository-name sports-api --region us-east-1</pre><ol><li><strong>Build and Push Docker Image:</strong></li></ol><pre>aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin AWS_ID.dkr.ecr.us-east-1.amazonaws.com<br>docker build --platform linux/amd64 -t sports-api .<br>docker tag sports-api:latest AWS_ID.dkr.ecr.us-east-1.amazonaws.com/sports-api:sports-api-latest<br>docker push 430118817587.dkr.ecr.us-east-1.amazonaws.com/sports-api:sports-api-latest</pre><pre>aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin AWS_ID.dkr.ecr.us-east-1.amazonaws.com<br>docker build --platform linux/amd64 -t sports-api .<br>docker tag sports-api:latest AWS_ID.dkr.ecr.us-east-1.amazonaws.com/sports-api:sports-api-latest<br>docker push 430118817587.dkr.ecr.us-east-1.amazonaws.com/sports-api:sports-api-latest</pre><ol><li><strong>Set Up ECS Cluster with Fargate:</strong> Use the AWS Console to create the ECS Cluster, define a Task Definition, and deploy the service with an Application Load Balancer (ALB) to manage traffic.</li></ol><p>This project helped me develop my skills in <strong>API management</strong> and <strong>container orchestration</strong> on the cloud.</p><p>Feel free to check out the GitHub repository for more details!</p><p><a href="https://github.com/NazBilgic/Building-a-containerized_API_management_System-.git">GitHub - NazBilgic/Building-a-containerized_API_management_System-</a></p><p>#AWS #DevOps #CloudComputing #SportsAPI #Docker #Fargate #APIGateway #Python</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9daa37eb618f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating an NBA Data Lake with AWS]]></title>
            <link>https://medium.com/@cloudofnaz/automating-an-nba-data-lake-with-aws-bf85bef48e46?source=rss-67e7ebc93d91------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf85bef48e46</guid>
            <dc:creator><![CDATA[Naz Bilgic]]></dc:creator>
            <pubDate>Fri, 10 Jan 2025 11:11:29 GMT</pubDate>
            <atom:updated>2025-01-10T11:13:37.823Z</atom:updated>
            <content:encoded><![CDATA[<p>Automating an NBA Data Lake with AWS</p><p>Day 3 of the 30 Days of DevOps Challenge✨</p><p>On Day 3 of the DevOps Challenge, I focused on automating the creation of an NBA Data Lake using AWS services. In this post, I’ll walk you through how to efficiently store, process, and query NBA-related data using Amazon S3, AWS Glue, and Amazon Athena.</p><p>The end result is NBADataLake, a fully automated system that pulls data from an external API, stores it in S3, processes it with AWS Glue, and queries it with Athena.</p><p>When I began this project, my goal was straightforward: create a data lake that would provide easy access to NBA data for analytics. However, as I dove deeper, I found myself working with AWS services like AWS Glue and Athena, which was an exciting learning experience. The concept of a data lake also intrigued me. Unlike traditional databases, data lakes store raw, unprocessed data, making them flexible for various types of analysis. Little did I know, this project would be a great opportunity to learn about cloud-based data solutions.</p><p>The Tech Stack</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/1*NkGPPbJuFzLSvx7ZEosKMA@2x.jpeg" /></figure><p>To build this project, I integrated several core AWS services:</p><p>•	Amazon S3: This service stores both raw and processed NBA data in JSON format.</p><p>•	AWS Glue: I used AWS Glue to organize the data, create a catalog, and make it queryable. Without it, I would be left with raw, messy data with no way to analyze it.</p><p>•	Amazon Athena: Athena allows you to run SQL queries directly on the data stored in S3, making querying quick and easy without needing to set up a separate database.</p><p>The Process</p><p>Step 1: Setting Up the Environment</p><p>I started by creating an S3 bucket to store my raw data. Afterward, I uploaded the NBA player data in JSON format. Then, I used AWS Glue to create a database and set up an external table, making the data queryable.</p><p>Step 2: Fetching NBA Data via API</p><p>Next, I connected to the Sportsdata.io API to pull the NBA player data. To streamline the process, I automated the entire workflow using the setup_nba_data_lake.py script, which also configured Athena for easy querying.</p><p>Once everything was set up, it felt amazing to see how seamlessly the services worked together!</p><p>Step 3: Running Queries</p><p>With everything in place, I ran some simple SQL queries in Amazon Athena to retrieve player data. For instance, to find out who the point guards (PG) in the NBA are, I ran this query:</p><p>SELECT FirstName, LastName, Position, Team</p><p>FROM nba_players</p><p>WHERE Position = ‘PG’;</p><p>The results were fast, and I was able to pull useful information quickly – just as expected from Athena.</p><p>Cleanup</p><p>After finishing the testing, I used the delete_resources.py script to clean up all the resources I created. The script removed the S3 bucket, the AWS Glue database and tables, and cleared the Athena configurations. This process made it easy to tear down everything without leaving any unused resources behind.</p><p>python3 delete_resources.py</p><p>Key Learnings</p><p>•	Securing AWS Services: One of the most important things I focused on was setting up the correct IAM permissions to ensure least-privilege access for all services.</p><p>•	Automation with Python: I gained more experience automating cloud infrastructure creation and management using Python scripts.</p><p>•	External API Integration: Pulling real-time NBA data from an external API and integrating it with AWS was both a challenge and a valuable learning experience.</p><p>Conclusion</p><p>This project was a fun and rewarding experience that taught me a lot about working with AWS services for data storage and analysis. I successfully set up an end-to-end automated workflow that’s scalable and easy to maintain. Going forward, I plan to expand this project by adding more data sources and incorporating advanced analytics features.</p><p>If you’d like to check out the code and see the full setup, here’s the GitHub link :</p><p><a href="https://github.com/NazBilgic/Day3_Creating_Data_Lake.git">GitHub - NazBilgic/Day3_Creating_Data_Lake</a></p><p>Let me know your thoughts, and feel free to reach out if you have any questions or suggestions! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf85bef48e46" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 2 of #DevOpsAllStarsChallenge☁️]]></title>
            <link>https://medium.com/@cloudofnaz/day-2-of-devopsallstarschallenge-99d1cef8d34c?source=rss-67e7ebc93d91------2</link>
            <guid isPermaLink="false">https://medium.com/p/99d1cef8d34c</guid>
            <dc:creator><![CDATA[Naz Bilgic]]></dc:creator>
            <pubDate>Wed, 08 Jan 2025 14:01:39 GMT</pubDate>
            <atom:updated>2025-01-08T14:10:56.037Z</atom:updated>
            <content:encoded><![CDATA[<h2>Automating NBA Game Notifications with AWS Lambda, SNS, and EventBridge</h2><p>Hi Everyone! :)</p><p>On Day 2 of #DevOpsAllStarsChallenge, I’m excited to share a project where I automated real-time NBA game notifications using AWS Lambda, SNS, and EventBridge. In this project, I built a serverless solution that fetches NBA game updates and sends them directly to your email. The project demonstrates how powerful AWS services can be when used together in a serverless architecture.</p><p>Why Automate NBA Game Notifications?</p><p>As a sports fan, keeping up with real-time updates for your favorite teams is crucial. With this project, I’ve built a system that automatically fetches and sends updates via email, eliminating the need for manual tracking. AWS allows us to build a scalable, cost-efficient system without maintaining a dedicated server.</p><p>Tools Used</p><p>•	AWS Lambda: Runs the Python script to fetch and process NBA game data from an external API. It serves as the core compute resource.</p><p>•	Amazon SNS (Simple Notification Service): Sends processed game updates to subscribers via email or SMS.</p><p>•	Amazon EventBridge: Automates the execution of the Lambda function at regular intervals (e.g., every hour).</p><p>•	IAM Policies: Ensures secure communication between AWS services.</p><ul><li>Python: Used for the Lambda function code.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ogCsPHr27MB_Y7ruLP3X3A.png" /></figure><p>Project Overview</p><p>The project structure is clean and simple, as shown below:</p><p>game-day-notifications/</p><p>├── policies/</p><p>│. ├── gd_sns_policy.json. # SNS publishing permissions.</p><p>├── src/</p><p>│. └── gd_notifications.py. # Lambda function code.</p><p>├── .gitignore.</p><p>└── README.md. # Project documentation.</p><p>You can explore the full source code on GitHub: https://github.com/NazBilgic/Day2-Game-Day-Notification.git</p><p>Step-by-Step Implementation</p><p>1.	Clone the Repository</p><p>First, clone the repository to your local machine:</p><p>git clone <a href="https://github.com/ifeanyiro9/game-day-notifications.git">https://github.com/ifeanyiro9/game-day-notifications.git</a></p><p>cd Day2-Game-Day-Notification.</p><p>2.	Create an SNS Topic and Subscription</p><p>•	Navigate to Amazon SNS in the AWS Console.</p><p>•	Create a new topic (choose Standard) and name it.</p><p>•	Add a subscription and choose Email as the protocol.</p><p>3.	Configure IAM Policies</p><p>•	Use the JSON from gd_sns_policy.json to create an IAM policy.</p><p>4.	Deploy the Lambda Function</p><p>•	Go to AWS Lambda Console and create a new function.</p><p>•	Choose Python as the runtime.</p><p>•	Paste the code from gd_notifications.py into the Lambda editor.</p><p>•	Add environment variables for NBA_API_KEY and SNS_TOPIC_ARN.</p><p>5.	Test the Lambda Function</p><p>•	Create a test event to simulate the function execution.</p><p>•	If successful, you will receive NBA game updates via email.</p><p>6.	Automate with EventBridge</p><p>•	Create a rule in EventBridge to trigger the Lambda function on a schedule (e.g., every hour).</p><p>What You’ll Learn</p><p>•	How to integrate external APIs with AWS services.</p><p>•	Best practices for securing AWS resources with IAM policies.</p><p>•	Automating workflows using EventBridge.</p><p>•	Building scalable, serverless systems.</p><p>Conclusion</p><p>This project was an excellent opportunity to apply AWS services in a real-world scenario and explore how serverless technologies can simplify the development of cost-effective systems.</p><p>If you’re interested in checking out the code or contributing, feel free to visit the GitHub repository: <a href="https://github.com/NazBilgic/Day2-Game-Day-Notification.git">https://github.com/NazBilgic/Day2-Game-Day-Notification.git</a></p><p>Let’s connect : <a href="http://linkedin.com/in/naz-bilgic">http://linkedin.com/in/naz-bilgic</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99d1cef8d34c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Embarking on the 30 Days DevOps Challenge ☁️]]></title>
            <link>https://medium.com/@cloudofnaz/embarking-on-the-30-days-devops-challenge-%EF%B8%8F-44a9cc700980?source=rss-67e7ebc93d91------2</link>
            <guid isPermaLink="false">https://medium.com/p/44a9cc700980</guid>
            <dc:creator><![CDATA[Naz Bilgic]]></dc:creator>
            <pubDate>Tue, 07 Jan 2025 19:43:22 GMT</pubDate>
            <atom:updated>2025-01-13T21:44:29.703Z</atom:updated>
            <content:encoded><![CDATA[<h3>Day 1 of #DevOpsAllStarsChallenge Let’s get started! ☁️</h3><p>Hi There! :)</p><p>Welcome to my journey into the exciting world of DevOps.</p><p>As someone who is passionate about technology, automation, and continuous learning, I’ve decided to challenge myself with a 30 Days DevOps Challenge. Over the next month, I’ll be sharing my progress, projects, and key learnings as I explore various tools and practices essential for modern DevOps workflows.</p><p>This challenge is not just about honing technical skills but also about documenting my growth and sharing valuable insights with others who are on the same path. Whether you’re new to DevOps or a seasoned professional, I hope these posts inspire you or provide helpful tips along the way.</p><p>So, let’s kick off Day 1 with my first project:</p><p>Day 1: Building a Weather Data Collection System using AWS S3 and OpenWeather API 🌦️</p><p>Challenge: To build a system that collects and stores real-time weather data using AWS S3 and OpenWeather API as JSON files.</p><p>What I Built:</p><p>I created a Weather Data Collection System with the following features:</p><p>✅ External API Integration – Fetching real-time weather data from the OpenWeather API.</p><p>✅ Cloud Storage – Storing historical weather data in AWS S3.</p><p>✅ Python Backend – Handling API interactions and data processing.</p><p>✅ Version Control – Using Git for code versioning and collaboration.</p><p>Before we start we need to :</p><ul><li>Familiarity with AWS services like S3 and IAM</li><li>An AWS account (with access key and secret access key configured)</li><li>An OpenWeather API key (sign up on their website if you don’t have one!)</li><li>A code editor</li><li>Basic bash scripting knowledge for setup</li><li>A GitHub account for version control</li></ul><p>📦 Dependencies:</p><p>•	boto3 – AWS SDK for Python.</p><p>•	requests – For API calls to OpenWeather.</p><p>•	python-dotenv – For managing environment variables securely.</p><h3>For Project Folder Setup</h3><p>First, we need to creat a clean and organized project structure with these steps:</p><pre>mkdir weather-dashboard<br>cd weather-dashboard<br>mkdir src<br>touch src/__init__.py src/weather_dashboard.py</pre><p>Then, we need these essential files:</p><pre>touch requirements.txt README.md .env<br>echo &quot;.env&quot; &gt;&gt; .gitignore<br>echo &quot;.zip&quot; &gt;&gt; .gitignore<br>echo &quot;__pycache__/&quot; &gt;&gt; .gitignore</pre><p>This setup gives us a neat workspace to keep everything in its place.</p><h3>Dependencies: Tools and Libraries</h3><p>Next, we need to install the necessary Python libraries by creating a requirements.txt file:</p><pre>echo &quot;boto3==1.26.137&quot; &gt;&gt; requirements.txt<br>echo &quot;python-dotenv==1.0.0&quot; &gt;&gt; requirements.txt<br>echo &quot;requests==2.28.2&quot; &gt;&gt; requirements.txt<br>pip install -r requirements.txt</pre><h3>Key Dependencies:</h3><ol><li><strong>boto3</strong>: AWS SDK for Python to interact with AWS services.</li><li><strong>python-dotenv</strong>: For managing environment variables securely.</li><li><strong>requests</strong>: To fetch real-time weather data from the OpenWeather API.</li></ol><h3>⚙ Configuring the Environment</h3><ol><li><strong>AWS Credentials:</strong> We will use the aws configure command to set up our AWS access key and secret access key:</li></ol><pre>aws configure</pre><p><strong>2. Environment Variables:</strong>We need to add the OpenWeather API key and S3 bucket name to the .env file:</p><pre>echo &quot;OPENWEATHER_API_KEY=&lt;Your-Weather-Key&gt;&quot; &gt;&gt; .env<br>echo &quot;AWS_BUCKET_NAME=&lt;your-bucket-name&gt;&quot; &gt;&gt; .env</pre><p>Pro tip: Always use IAM users for AWS tasks, not the root account, for better security.</p><h3>🏃 Running the Script: Fetching Weather Data</h3><p>With everything set up, we can ran the Python script to fetch weather data and store it in our S3 bucket:</p><pre>python3 src/weather_dashboard.py</pre><p>Yes!! Our S3 bucket is up and running, and live weather data start flowing in. 🌬Seeing it all come together is incredibly satisfying.</p><p>🎓 Key Takeaways:</p><p>•	Learned how to create and manage AWS S3 buckets programmatically using boto3.</p><p>•	Gained experience in integrating external APIs like OpenWeather into a Python application.</p><p>•	Enhanced my skills in managing sensitive credentials securely using environment variables.</p><p>•	Practiced using Git for source code versioning and collaboration.</p><p>📂 Check out my project on GitHub:</p><p><a href="https://github.com/NazBilgic/Weather-Dashboard.git">GitHub - NazBilgic/Weather-Dashboard</a></p><p>Let’s see what tomorrow brings! Stay tuned for Day 2 of my 30 Days DevOps Challenge.</p><p>#30daysdevops #aws #devopsjourney #medium</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44a9cc700980" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>