Skip to content

Pradipbabar/eks-terraform

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Amazon EKS with Terraform

This repository provides Terraform scripts to deploy an Amazon EKS cluster along with base infrastructure and platform-specific infrastructure.

Folder Structure

The repository is organized into the following folders:

  1. base_infra: Contains Terraform scripts for setting up the base infrastructure, including VPC, subnets, and security groups.

  2. platform_infra: Contains Terraform scripts for setting up the EKS cluster and nodes, as well as any additional resources required for your platform.

Prerequisites

Workflow

Setting up Base Infrastructure

  1. Navigate to the base_infra folder:
cd base_infra
  1. Initialize Terraform with backend configuration:
terraform init -backend-config="env/baseinfra.config"
  1. Review and modify the base_infra configuration files as needed.

  2. Create an execution plan:

terraform plan
  1. Apply the changes to create base infrastructure:
terraform apply

Setting up Platform Infrastructure (EKS Cluster)

  1. Navigate to the platform_infra folder:
cd platform_infra
  1. Initialize Terraform with backend configuration:
terraform init -backend-config="env/platforminfra.config"
  1. Review and modify the platform_infra configuration files as needed.

  2. Create an execution plan:

terraform plan
  1. Apply the changes to create the EKS cluster and associated resources:
terraform apply

Cleanup

To tear down the infrastructure when no longer needed:

  1. Navigate to each folder and run:
terraform destroy

Notes

  • Replace placeholders like env/baseinfra.config and env/platforminfra.config with the actual paths to your backend configurations.

  • Make sure to review and adjust security group rules, IAM policies, and configurations as needed.

About

Building EKS cluster with Terraform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HCL 100.0%