Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      June 1, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      June 1, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      June 1, 2025

      How To Prevent WordPress SQL Injection Attacks

      June 1, 2025

      7 MagSafe accessories that I recommend every iPhone user should have

      June 1, 2025

      I replaced my Kindle with an iPad Mini as my ebook reader – 8 reasons why I don’t regret it

      June 1, 2025

      Windows 11 version 25H2: Everything you need to know about Microsoft’s next OS release

      May 31, 2025

      Elden Ring Nightreign already has a duos Seamless Co-op mod from the creator of the beloved original, and it’ll be “expanded on in the future”

      May 31, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Student Record Android App using SQLite

      June 1, 2025
      Recent

      Student Record Android App using SQLite

      June 1, 2025

      When Array uses less memory than Uint8Array (in V8)

      June 1, 2025

      Laravel 12 Starter Kits: Definite Guide Which to Choose

      June 1, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Photobooth is photobooth software for the Raspberry Pi and PC

      June 1, 2025
      Recent

      Photobooth is photobooth software for the Raspberry Pi and PC

      June 1, 2025

      Le notizie minori del mondo GNU/Linux e dintorni della settimana nr 22/2025

      June 1, 2025

      Rilasciata PorteuX 2.1: Novità e Approfondimenti sulla Distribuzione GNU/Linux Portatile Basata su Slackware

      June 1, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»CI-CD Deployment On AWS EKS by GitHub Actions

    CI-CD Deployment On AWS EKS by GitHub Actions

    January 30, 2025

    GitHub Actions is an open-source CI-CD tool that is an extended feature of GitHub. It automates software workflows with world-class CI-CD. Build, Test, and deploy your code from GitHub.

    How GitHub Actions Work

    • Workflows: Workflows are automated processes defined in the YAML file and triggered on an event like Push.
    • Events: Events are operations that change the repository, like Pull Operations and Push Operations.
    • Jobs: Within Workflow, we can define one or more Jobs, such as a Build, Test, or Deploy Job.
    • Actions: Actions define the Workflow’s inputs, outputs, and main entry points.

    Kubernetes is an Open Source Container Orchestration tool that automates Containerized Applications’ deployment, scaling, and management. Kubernetes was invented by Google in 2013 and was handed over to CNCF (Cloud Native Computing Foundation), which is a part of the Linux Foundation. However, Kubernetes is not handled by a single entity; instead, it is a contribution from a worldwide community or developers.

    EKS is a fully managed AWS Kubernetes Service that allows you to run your application on serverless infrastructures. It requires installing and operating the Kubernetes Cluster, which can be time-consuming and complex. Instead of configuring the Kubernetes Cluster, EKS lets you focus on deploying the application.

    What Problems are Solved by Container Orchestration Tool

    • Manual Deployment: Manual Deployment of Applications across multiple Environments, Infrastructure Monitoring, and Network Configuration can be Solved by Container Orchestration Tools.
    • Scaling: Kubernetes supports auto-scaling, which scales out Infrastructure Properties like CPU RAM, etc.
    • Application Lifecycle Management: Handling application updates, rollouts, rollbacks, and failure recovery in a reliable, consistent, and efficient manner.
    • Monitoring And Troubleshooting: The Container Orchestration tool allows you to monitor the application’s health and troubleshoot the debugging failures.

    How Kubernetes Solves These Issues

    • Configuration: Declarative Configuration can easily allow the user to define the desired state of the Application through the YAML File.
    • Container Orchestration: Automates the Deployment, Scaling, and health check of Containers, which means K8s automates the lifecycle of Containers.
    • Self-Healing Mechanisms: K8s also have a property like self-healing, which means that suppose one of the containers fails for any reason. Automatically, a new container can start in place of a failed container.
    • Scalability: It enables the horizontal scaling of the application by adding or removing the pods based on application demand.

    Architecture Diagram
    Arch Dia

    In this Architecture Diagram, we have set up Git Repository and uploaded the application data along with the .github/workflow folder.

    • .github/Workflow: in this folder, we have mentioned our CI-CD workflow in yaml file(GitHub-actions-ci.yml )
      When we push changes to the main branch, the GitHub Actions workflow triggers and executes all the commands mentioned in the Workflow.
    • IAM Access: We have provided access to GitHub Actions, which will connect AWS Cloud, mainly AWS ECR and AWS EKS services.
    • Amazon ECR: It is a Container Registry service. When workflow triggers, the Docker Image is stored in the ECR Repository.
    • Amazon EKS: EKS Cluster has been created in Amazon EKS service, a Compute service. EKS pulls the docker image from ECR and Deploys it on the EKS Cluster.

    We received the email notification for the successful completion of the workflow.

    Installations Steps

    Step 1: Create an EKS Cluster

    To create a Cluster, we must Launch EC2 Instance in the us-east-2 region.
    Dia 1
    To create a cluster and provide access, follow the instructions in the link below:
    https://github.com/prafulitankar/github-action-eks/blob/main/.github/workflows/eks-cluster-setup.mdDia 2

    Step 2: Create an IAM User

    Create an IAM User and provide the ECR and EKS Access to the User, which is communicated to GitHub and AWS Cloud.

    Generate an Access Key and Secret key for that Particular User, and don’t forget to store it somewhere.Dia 4

     

    Step 3: Create an ECR Repo in us-east-2

    Remember, this is where we stored Docker Images.

    Dia 5

    Step 4: Create a GitHub Repository

    You can clone my GitHub Repository: https://github.com/prafulitankar/github-action-eks.git

    Dia 6

    Step 5: Set up Repository Secrets

    The IAM user’s Access Key and Secret Key will communicate between GitHub Action and AWS Cloud.

    Dia 7

    Step 6: Enable Email Notifications

    We will receive an email notification on every Push in the main branch at the mentioned email address.

    Dia 8

    Step 7: Deploy the Application

    Deployment of application trigger once code pushed into the main branch.Dia 9
    Some IAM Access is given at the Cluster Level.
    Dia 10
    Once we have successfully deployed the Application on EKS Cluster, we will get an email notification.

    Output:
    Dia 11

    Conclusion

    GitHub is a CVS that allows us to store Source Code and GitHub Actions, an extended feature of GitHub that provides the CI-CD feature for application deployment. We have deployed the source code on EKS with the help of GitHub Actions.

    Source: Read More 

    Hostinger
    Facebook Twitter Reddit Email Copy Link
    Previous ArticleLaravel Livewire: Simplifying Dynamic Interfaces
    Next Article Suspense in Action: Simplifying Async Data Fetching in React

    Related Posts

    Artificial Intelligence

    Markus Buehler receives 2025 Washington Award

    June 1, 2025
    Artificial Intelligence

    LWiAI Podcast #201 – GPT 4.5, Sonnet 3.7, Grok 3, Phi 4

    June 1, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    CVE-2025-1706 – Adobe Flash Use-After-Free Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Meta SAM 2.1 is now available in Amazon SageMaker JumpStart

    Machine Learning

    Full exposure: A practical approach to handling sensitive data leaks

    News & Updates

    The best free web hosting services of 2025: Expert tested

    News & Updates
    GetResponse

    Highlights

    Development

    10 Amazing Web Developer Resume Examples for Different Web Dev Specializations

    August 14, 2024

    Explore 10 tailored web developer resume examples for various specializations and career levels. Learn how…

    lscoltui lets you change the colours of ls

    May 23, 2025

    Palo Alto Networks Outlines Remediation for Critical PAN-OS Flaw Under Attack

    April 26, 2024

    CVE-2025-4158 – PCMan FTP Server Buffer Overflow Vulnerability

    May 1, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.