Subscribe
Fenix

Technologies, Hacks and Games...

Latest posts

Writing a reusable Terraform module

Building a small VPC module in Terraform with inputs, validation and outputs, calling it from two root modules with different settings, and pinning it to a git tag so a change to the module can't surprise a project that didn't ask for it.

7 min read

Golang Tutorial 12: Error handling

Errors as values in Go: wrapping with %w, errors.Is, errors.As and the new errors.AsType, sentinel vs typed errors, errors.Join, when a panic is fine, and a new Go 1.27 vet check for wrapped error pointers. Runnable examples and an exercise.

10 min read

GitLab CI from zero: stages, jobs, artifacts and caches

A first .gitlab-ci.yml for shorty, the Go URL shortener: stages, jobs, workflow rules, a Postgres service, test reports and the difference between artifacts and caches. Checked locally with gitlab-ci-local and the real job commands.

7 min read