Giter Club home page Giter Club logo

eks-saas-gitops's Introduction

GitOps SaaS for Multi-Tenancy

This repository offers a sample pattern to manage multi-tenancy in a Kubernetes cluster using GitOps with Flux. The provided CloudFormation template automates the deployment of necessary AWS resources and sets up an environment ready for GitOps practices.

๐Ÿ›  Pre-requisites

  • AWS CLI: Ensure you have the AWS CLI installed and configured with the necessary permissions.
  • Git: Make sure Git is installed for cloning this repository.

๐Ÿš€ Deployment Steps

Step 1: Clone the Repository

Clone this repository to your local machine to get the CloudFormation template and other helper scripts.

git clone https://github.com/aws-samples/eks-saas-gitops.git

Step 2: Navigate to the Directory

Open your terminal and navigate to the directory where your CloudFormation template is saved.

cd eks-saas-gitops/

Step 3: Create the CloudFormation Stack

Execute the following AWS CLI command to deploy the stack. Make sure to replace placeholders accordingly.

aws cloudformation create-stack \
--stack-name eks-saas-gitops \
--template-body file://helpers/saas-gitops-cloudformation.yaml \
--parameters ParameterKey=C9EnvType,ParameterValue=self \
--capabilities "CAPABILITY_IAM" "CAPABILITY_NAMED_IAM"
  • YOUR_CHOICE_HERE: Use either self or event-engine based on your specific installation requirement.

Step 4: Verify Stack Creation

Once the command is executed, navigate to the AWS CloudFormation Console to monitor the stack's status.

โณ Wait for Environment Setup

Post stack deployment, it might take a few minutes for the environment to become operational. This is mainly because the Terraform setup includes provisioning a Cloud9 instance and running the install.sh script. To check the progress, you can visit the SSM Run Command Console.

Note: Make sure you're operating in the region where the stack was deployed.

๐Ÿ–ฅ Accessing Cloud9

To access your newly created Cloud9 environment:

  1. Go to the AWS Cloud9 Console.
  2. Find your Cloud9 instance listed under "Your environments."
  3. Click "Open IDE" to start working in your Cloud9 environment.

Removing the stack

To remove the resources that have been created for this workshop, execute the following AWS CLI command:

aws cloudformation delete-stack --stack-name "eks-saas-gitops"

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

eks-saas-gitops's People

Contributors

amazon-auto avatar dependabot[bot] avatar lusoal avatar rodrigobersa avatar somensi-aws avatar tiagoreichert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

eks-saas-gitops's Issues

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.