Git Product home page Git Product logo

terraform-eks's Introduction

Landmark Technologies, Ontario, Canada.

Contacts: +1437 215 2483
WebSite : http://mylandmarktech.com/

Terraform Installation And Setup In AWS EC2 Redhat Instnace.

Prerequisite
  • AWS Acccount.
  • Create Redhat EC2 Instnace.
  • Create IAM Role With Required Polocies.
    • VPCFullAccess
    • EC2FullAcces
    • S3FullAccess ..etc
  • Attach IAM Role to EC2 Instance.

Install Terraform version 0.12.26

$ sudo yum install wget unzip -y
$ wget https://releases.hashicorp.com/terraform/0.12.26/terraform_0.12.26_linux_amd64.zip
$ sudo unzip terraform_0.12.26_linux_amd64.zip -d /usr/local/bin/
# Export terraform binary path temporally
$ export PATH=$PATH:/usr/local/bin
# Add path permanently for current user.By Exporting path in .bashrc file at end of file.
$ vi .bashrc
   export PATH="$PATH:/usr/local/bin"
# Source .bashrc to reflect for current session
$ source ~/.bashrc   

Install Terraform version 1.0.11

wget https://releases.hashicorp.com/terraform/1.0.11/terraform_1.0.11_linux_amd64.zip 
sudo unzip terraform_1.0.11_linux_amd64.zip -d /usr/local/bin/
export PATH=$PATH:/usr/local/bin
# Add path permanently for current user.By Exporting path in .bashrc file at end of file.
  vi .bashrc
   export PATH="$PATH:/usr/local/bin"
 Source .bashrc to reflect for current session
 source ~/.bashrc   

Clone terraform scripts

$ git clone https://github.com/LandmakTechnology/terraform-eks
$ cd Terraform_Scripts

Update Your Key Name in variables.tf file before executing terraform script.

Infrastructure As A Code

Create an EKS Kubernetes Cluster (VPC,Subnets,Route Tables, EKS Cluster, EKS NodeGroup, IAM, etc) As A Code Using Terraform Scripts

# Initialise to install plugins
 cd /terraform-eks/EKS
 terraform init 
# Validate teffaform scripts
 terraform validate 
# Plan terraform scripts which will list resources which is going  be created.
 terraform plan 
# Apply to create resources
 terraform apply --auto-approve 
 
 ##  Destroy Infrastructure after...  
```sh
$ terraform destroy --auto-approve 
#### Create Infrastructure(VPC,Subnets,Route Tables,EC2 Instnaces ..etc) As A Code Using Terraform Scripts
``` sh
# Initialise to install plugins
$ terraform init VPC/
# Validate teffaform scripts
$ terraform validate VPC/
# Plan terraform scripts which will list resources which is going  be created.
$ terraform plan VPC/
# Apply to create resources
$ terraform apply --auto-approve VPC/

Destroy Infrastructure

$ terraform destroy --auto-approve VPC/

terraform-eks's People

Contributors

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