Subscribe
Fenix

Technologies, Hacks and Games...

Latest posts

Golang Tutorial 16: Generics

Type parameters and constraints in Go, a generic Map, Filter and Reduce, a typed TTL cache, the new generic methods in Go 1.27, and when a plain interface is still the better choice. Runnable examples and an exercise.

7 min read

Deploying a Go API to ECS Fargate behind an ALB with Terraform

Part 7 of the shorty series: run the Go API on ECS Fargate (arm64) behind an Application Load Balancer with HTTPS, all in Terraform. VPC, ACM, target group health checks, the service, logs and secrets, plus checking the whole plan with terraform test and a mocked provider.

9 min read

Running Postgres on RDS for production

The RDS settings I would put in Terraform before shorty's Postgres goes live: a private subnet group, a postgres18 parameter group, Multi-AZ, 14 days of point-in-time recovery, a read replica and IAM database auth from Go. Validated locally, nothing applied.

7 min read

Securing GitHub Actions workflows

Pin actions to full commit SHAs, start every workflow with permissions: {}, keep pull_request_target away from PR code, pass untrusted input through env instead of ${{ }}, and let Dependabot bump the pins. Checked with actionlint and zizmor.

7 min read