https://github.com/z0mbix/eks
Simple EKS Cluster built with Terraform
https://github.com/z0mbix/eks
Last synced: 5 months ago
JSON representation
Simple EKS Cluster built with Terraform
- Host: GitHub
- URL: https://github.com/z0mbix/eks
- Owner: z0mbix
- Created: 2019-01-25T23:40:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-25T23:41:14.000Z (over 7 years ago)
- Last Synced: 2025-10-06T13:43:03.908Z (9 months ago)
- Language: HCL
- Size: 5.86 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EKS Cluster
This repo creates a simple EKS cluster using the following resources:
* VPC
* Public/Private subnets
* Internet gateway
* NAT gateway
* IAM roles/policies
* Bastion host in public subnet (ASG)
* Kubernetes control plane (cluster)
* Kubernetes worker nodes in private subnets (ASG)
## Prerequisites
* Install curl (See below, re. administrator IP)
* Set your remote state bucket, region and S3 state key in `vars/[env]-backend.tfvars`
* Set your region in `vars/[env].tfvars`
## Create the Cluster
```
make ENV=test eks-cluster
```
If you need to ssh to any of the worker nodes, you need to go via the bastion:
```
make ENV=test ssh-bastion
```
## Destroy it all
This will destroy all resources and locally created files
```
make ENV=test destroy-cluster
```
## Administrator Public IP
To lock down the bastion security group and cluster API, the following command is used within terraform to obtain the public IP, and may not work for you depending on your network:
```
$ curl -s 'https://api.ipify.org?format=json'
{"ip":"85.255.234.28"}
```