GithubHelp home page GithubHelp logo

eks-terraform's Introduction

Simple Microservice

A terraform project to setup Elastic Kubernetes Service on AWS


Requirements

For this project, you will AWS Account, Terraform installed on your local machine, access to a terminal.

AWS

  • AWS Account Creation

    1. go on AWS website and signup for an account

    2. Setup IAM permissions listed on the EKS module documentation

    3. Download AWS CLI to configure your machine with your AWS credentials. Folow the instructions here.

    4. Install kubectl. This will be used to access your clusters after it has been deployed. Follow instructions here

  • TERRAFORM INSTALLATION

Folllow the instructions here to install terraform

PROJECT SETUP

  1. Clone this github repository git clone https://github.com/Lordwales/eks-terraform.git

  2. cd into the eks-terraform directory.

  3. On your terminal while in the root of the repository, run the following commands in sequence:

terraform init       #this will initialize the terrafom project and download the required plugins and create a local backend.

terraform plan       #this will display all the resources that are planed to be deployed on AWS.

terraform apply      # this will run our terraform code and deploy those resources to AWS.

ADD CLUSTER TO KUBECONFIG

aws eks update-kubeconfig --region us-east-1 --name terraformEKScluster

VERIFY DEPLOYMENT

Visit the Elastic Kubernetes Service section in your AWS Console to view the details of the newly created cluster.

IMPROVEMENT

This project can be further improved dby using S3 as backend to store the state of the infrastructure especially in a Team scenerio. Also we can use Terraform Cloud to run the project. This gives more flexibilty, manages our secrets and build, can manage our workspaces too.

eks-terraform's People

Contributors

lordwales 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.