Skip to content

Commit e77b00f

Browse files
authored
Merge pull request #30 from NgaNaNa/cleanup/readme
remove url as we've destroyed EKS cluster
2 parents 2c8b30f + fd118e2 commit e77b00f

File tree

2 files changed

+12
-28
lines changed

2 files changed

+12
-28
lines changed

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
# TypeScript Node.js API → Docker → Amazon EKS (GitHub CICD for Infra) -> k8s
1+
# TypeScript Node.js API → Docker → Amazon EKS (GitHub CICD for Infra) -> k8s manifest
22
*(Kubernetes Deployment, Service, Ingress resources are deployed from local at the moment. GitHub CI/CD in future)*
33

4-
Public url to see the 'very basic' node.js api app deployed on EKS:
5-
http://ad1a9f084ef53444c8cdc00db8ecba84-a7930b60602a3012.elb.ap-southeast-2.amazonaws.com/ping
6-
74
This repo containerises a simple Node.js API (Local Build), pushes the image to Docker Hub (From local), and provisions the infrastructure on **Amazon EKS (EC2 capacity)** with **Terraform** and **GitHub CI/CD**.
85

9-
The VPC, Public Subnets, and Terraform remote-state bucket (S3 + DynamoDB) are assumed to exist already.
6+
The VPC, Public Subnets, Route table, IGW and Terraform remote-state bucket (S3 + DynamoDB) are assumed to exist already.
107

118
## Prerequisites
129

@@ -17,7 +14,7 @@ The VPC, Public Subnets, and Terraform remote-state bucket (S3 + DynamoDB) are a
1714
| **Docker v20.10.18+** | Buildx enabled (comes pre‑installed) |
1815
| **Docker Hub account** | Public repo: `nrampling/demo-node-app` |
1916

20-
## 1 · Initialise Terraform (one‑time per env)
17+
## 1 · Initialise Terraform (one‑time per env) - From Local
2118

2219
```bash
2320
cd infra/eks
@@ -33,7 +30,7 @@ docker buildx build --platform linux/amd64,linux/arm64 -t nrampling/demo-node-ap
3330
Update the image tag in `infra/eks/envs/dev.tfvars`
3431

3532

36-
## 3 · Deploy with Terraform from directory infra/eks/
33+
## 3 · For local Deploy with Terraform from directory infra/eks/ (CI/CD option is explained further down)
3734

3835
```bash
3936
AWS_PROFILE=node-app-terraform-dev terraform plan -var-file=../envs/dev.tfvars
@@ -74,9 +71,15 @@ kubectl -n ingress-nginx get svc
7471
This GitHub Actions workflow automates the infrastructure provisioning lifecycle for the demo Node.js app using Terraform.
7572

7673
### Workflow Triggers
77-
Pull Requests to main: Run CI checks (format, validate, plan).
74+
Upon changes to the files from the following path:
75+
- 'infra/eks/**'
76+
- 'infra/envs/**'
77+
- '.github/workflows/eks_terraform.yaml'
7878

79-
Push to main: Auto-applies Terraform to deploy infrastructure in dev.
79+
and upon the following GitHub actions:
80+
- Pull Requests to main: Run CI checks (format, validate, plan).
81+
82+
- Push to main: Auto-applies Terraform to deploy infrastructure in dev.
8083

8184
### Job: terraform-dev
8285
- Runs inside the infra/ directory

infra/eks/.terraform.lock.hcl

Lines changed: 0 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)