Giter Club home page Giter Club logo

ci-cd-for-deploying-go-app-on-aws's Introduction

End-to-end-DevOps | Go Application

This repository contains scripts and Kubernetes manifests for deploying the Go application on an AWS EKS cluster with an accompanying ECR repository and EBS volumes. The deployment includes setting up an Ingress controller, monitoring with Prometheus and Grafana, and a continuous deployment pipeline.

Before you run the script

Update Script Variables:

The build.sh script contains a set of variables that you need to customize according to your AWS environment and deployment requirements. Here's how you can update them:

  1. Open the build.sh script in a text editor of your choice.

  2. Update the variables at the top of the script with your specific configurations:

    cluster_name="YOUR_EKS_CLUSTER_NAME"
    region="YOUR_AWS_REGION"
    aws_id="YOUR_AWS_ACCOUNT_ID"
    repo_name="YOUR_REPO_NAME"
    domain="YOUR_DOMAIN.com"
    namespace="go-survey"
  3. Save the changes to the build.sh script.

Update application domain

  1. Navigate to terraform/monitoring.tf
  2. Update applications host with your domain
  3. Do the same in k8s/app.yaml
    grafana:
      adminUser: admin
      adminPassword: admin
      enabled: true
      ingress:
        enabled: true
        ingressClassName: nginx
        annotations:
          cert-manager.io/cluster-issuer: letsencrypt-production
        hosts:
          - grafana.[YOUR_DOMAIN]
        tls:
          - secretName: grafana-tls
            hosts:
              - grafana.[YOUR_DOMAIN]

IMPORTANT: Ensure you have updated the domain for all the services, Grafana, Alertmanager and Prometheus

How to Run

  1. Clone the repository and navigate to the root directory.

  2. Make the deployment script executable:

    chmod +x build.sh
  3. Run the deployment script:

    ./build.sh
  4. Follow the post-deployment steps printed by the script to update your DNS records with the provided Ingress URL.

ci-cd-for-deploying-go-app-on-aws's People

Contributors

ziyadmoneep avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.