Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cevheri/terraform-eks
Terraform Amazon EKS Cluster
https://github.com/cevheri/terraform-eks
eks-cluster ks8 kubernetes terraform terraform-module terraform-modules
Last synced: 29 days ago
JSON representation
Terraform Amazon EKS Cluster
- Host: GitHub
- URL: https://github.com/cevheri/terraform-eks
- Owner: cevheri
- Created: 2024-07-09T11:48:13.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-09T13:21:03.000Z (4 months ago)
- Last Synced: 2024-09-27T18:42:54.700Z (about 1 month ago)
- Topics: eks-cluster, ks8, kubernetes, terraform, terraform-module, terraform-modules
- Language: HCL
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform Amazon EKS Cluster
## Description
This project creates an EKS cluster with a VPC, RDS, MSK, and AWS Load Balancer Controller.## Prerequisites
* [AWS account](https://signin.aws.amazon.com/signup?request_type=register)
* [AWS profile configured](https://aws.amazon.com/cli/)
* [Terraform](https://www.terraform.io/)
* [kubectl](https://kubernetes.io/docs/tasks/tools/)---
## Project Structure
Project structure is as follows:
* [main.tf](main.tf) - Main Terraform configuration file
* [variables.tf](variables.tf) - Variables file
* [outputs.tf](outputs.tf) - Outputs file### Modules:
* [vpc](modules/vpc) - VPC module (Virtual Private Cloud)
* [eks](modules/eks) - EKS module (Elastic Kubernetes Service)
* [rds](modules/rds) - RDS module (Amazon Managed PostgreSQL)
* [msk](modules/msk) - MSK module (AWS Managed Kafka)
* [alb](modules/lb) - AWS Load Balancer Controller module
* [s3](modules/s3) - S3 module (Simple Storage Service)
* [security_group](modules/security-groups) - Security Group module---
## How to Run
* Update main.tf, variables.tf files (do not forget "sasl_password" in main.tf)
* aws configure
* init
```bash
terraform init
```* plan
```bash
terraform plan
```* apply
```bash
terraform apply
```---
## References
* [Provision an EKS cluster (AWS)](https://developer.hashicorp.com/terraform/tutorials/kubernetes/eks)
* [Resource: aws_rds_cluster](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/rds_cluster.html)
* [Resource: aws_msk_cluster](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/msk_cluster)
* [Deploy an high available Kubernetes (k8s) cluster on Amazon AWS](https://github.com/garutilorenzo/k8s-aws-terraform-cluster)