Skip to content

Pulumi — def-exsport-pulumi

Infrastruktur AWS sebagai kode. Tiap stack adalah project Pulumi tersendiri di bawah stacks/.

Cara halaman ini diverifikasi

Dibaca pada 2026-09-15 dari stacks/*/Pulumi.yaml, stacks/*/index.ts dan stacks/*/src/*.ts. Checkout lokal: /Volumes/xpro/erisristemena/pulumi/def-exsport-pulumi. Single-branch: main only.

Stack

Pulumi, TypeScript, @pulumi/aws + @pulumi/awsx, runtime nodejs (npm; stack webhook pakai yarn). Tidak ada Pulumi.yaml root — tiap stack adalah project terpisah.

Tujuh stack

Direktori stackProject PulumiResource AWS
webappexsport-webappTier utama: VPC; ECS cluster + 4 service + 4 task definition; ALB dengan listener, rule, 4 target group; instance RDS; ElastiCache (Redis); autoscaling; log group CloudWatch; IAM; satu bastion EC2
webhookexsport (yarn)SNS — 3 topic + 3 subscription (WMS / delivery / payment), cocok dengan repo webhook
repoexsport-repoECR — 4 repository + lifecycle policy
storageexsport-storageS3 — bucket + ACL, ownership, policy, public-access block, versioning
paramsexsport-paramsParameter SSM (config SMTP dan sejenisnya)
certexsport-certSertifikat ACM
webapp-ec2exsport-webapp-ec2Varian deployment berbasis EC2: VPC, 6 instance + security group, EIP, key pair

Config per-env ada di file Pulumi.<env>.yaml (dev / stg / prod, berbeda per stack). README hanya mendokumentasikan empat stack (repo, storage, webapp, webhook); cert, params dan webapp-ec2 juga ada di disk.

Catatan

Setup AWS ini (ECS/ALB/RDS) bukan hal yang sama dengan serving host tempat app berjalan sekarang — lihat Environments. Baca stack-nya sebelum menganggap ini jalur yang live.