Build an immutable release system for a Go API on AWS: Packer, Ansible and goss build a tested AMI per commit, a self-hosted GitLab CE pipeline promotes it from staging to production, an Auto Scaling instance refresh with alarms rolls bad releases back by itself, and Vault issues every AWS and database credential.
DevOps Engineer. Advanced.
For DevOps engineers who know Linux, Git, shell scripts and AWS basics, and want to release servers the immutable way: tested machine images from every commit, a self-hosted GitLab pipeline, credentials issued by Vault instead of stored, and rolling releases that roll themselves back.
Brackwater's release system has three parts that you build in order and that live for different lengths of time:
This lesson does two things. It checks that your workstation and your AWS account are ready for the lab, and it refreshes five ideas that the later lessons use without stopping to explain them: AWS roles and temporary credentials, security groups, JSON Web Tokens, certificate authorities, and systemd units. If you use all five at work, skim the boxes and run the checks.
Brackwater's two servers were set up by hand two years ago. Since then each one has had packages upgraded, a cron job added, a configuration file edited in a hurry during an incident. Nobody can rebuild either from scratch, and nobody can say exactly how they differ. This lesson explains the alternative the rest of the project builds: servers that are never changed after they start.
The image job turns one Go binary into an Amazon Machine Image that boots straight into a working Lockers server. Two tools share the work: Packer creates and tears down everything on AWS, and Ansible configures the machine in between. This lesson follows one build from the CI job to the AMI ID, and explains each part of image/lockers.pkr.hcl and the playbook.
An image is code: if it is wrong, every server started from it is wrong in the same way. This lesson covers the two things that happen on the builder after Ansible: tests that stop the build before an AMI exists, and the hardening that those tests check.
A pipeline is more than a list of commands. It decides what runs for a merge request and what runs for main, which job may start which other job, what passes between jobs, which jobs touch an environment and when two of them must wait for each other. This lesson reads Brackwater's .gitlab-ci.yml and ci/*.yml with those questions.
Brackwater keeps its source code and build logs in its own AWS account, so GitLab and the machine that runs CI jobs are its own too. This lesson explains the management host: how GitLab and GitLab Runner are installed, how CI jobs reach GitLab and Vault, and the decisions that keep a CI job (which runs whatever is in the repository) from becoming a way into AWS.
Every credential in this project comes from HashiCorp Vault. Before the next two lessons show how CI jobs and servers get theirs, this one explains how Vault itself works on the management host: how it protects its data, how a client proves who it is, what it may then do, and why every secret it hands out has an expiry.
Brackwater's old CI held an IAM user's access keys as a CI variable, and they leaked into a job log. This lesson replaces stored keys with workload identity: a CI job proves which project, branch and environment it belongs to with a token GitLab signs for that job, and Vault turns that proof into AWS credentials that expire within the hour.
Brackwater's old database password sat in a file on both servers, was shared with three engineers and never changed. In this project no database password is stored anywhere. Vault creates a PostgreSQL user for each server and each migration, with a lease; Vault Agent on the server keeps the current user in a file; the API switches to a new user without restarting; and Vault drops each user when its lease ends.
The infrastructure is not one Terraform configuration. It is three, because the pieces change at different speeds, are changed by different people or jobs, and need different permissions. This lesson explains how they are cut, where each keeps its state, and how they hand values to each other without reading each other's state.
A release replaces every server of an environment with servers from the new image. This lesson explains the Auto Scaling group that holds the servers, the instance refresh that replaces them in a controlled order, and the alarms that make a bad release roll itself back, using a rollback that happened for real during the lab's acceptance run.
During every rollout, old and new servers serve traffic at the same time against one database, and the migration runs before the first new server starts. If the rollout rolls back, the old version keeps running against the new schema indefinitely. So every migration must keep the previous release working. This lesson explains the rule, how the project enforces it, and the two-release change the drills walk through.
A release system is only finished when someone can run it day to day: notice when reality drifts from the code, keep images from piling up, answer "who did what" after the fact, know what it costs, and remove all of it cleanly. This lesson covers those routines and the production gaps the lab leaves open on purpose.
Starting point: a copy of the project source, a terminal, Docker and an AWS account you control. Finishing point: every tool answers, your AWS sign-in names the account you intend to use, the vCPU quota has room, and port 8929 is free.
Starting point: workstation checks passed. Finishing point: infra/foundation/terraform.tfvars holds your prefix, region and public address, and scripts/static-checks.sh ends with STATIC CHECKS PASSED.
Starting point: settings written and static checks passed. Finishing point: about 126 resources exist in your account, all named with your prefix: the network, security groups, IAM roles, two PostgreSQL databases, Vault's KMS key, the SSM parameters and the management host.
Starting point: the foundation applied. Finishing point: the host reports ready, Vault is initialised and unsealed by KMS, and you are signed in to GitLab at http://localhost:8929.
Starting point: the management host is ready. Finishing point: the project brackwater/lockers exists with its rules, variables and runner; each database has its group roles and Vault's administrator; Vault has its auth methods, roles, policies and secrets engines (28 resources).
Starting point: GitLab, the databases and Vault are set up. Finishing point: the first pipeline built an image and deployed it to staging, you deployed the same image to production, and both load balancers answer /version with that image and commit.
Starting point: both environments run the first release. Finishing point: a merge request showed plans and passed the boundary checks; after the merge, an instance refresh replaced every server with no failed request, and the database has schema version 3.
Starting point: both environments run the expand release. Finishing point: a release that passed every test rolled itself back in staging without anyone intervening, production stayed untouched, the revert is released, and two concurrent pipelines deployed one after the other.
Starting point: staging is deployed and healthy. Finishing point: you saw each server change database users without a failed request, the API kept serving while Vault was stopped and Vault unsealed itself on start, a hand-made change was detected as drift, and the audit log and CloudTrail name the job behind each credential.
Starting point: any state of the lab, including a failed step. Finishing point: nothing tagged with your prefix remains except Vault's KMS key, which is pending deletion for seven days.
Learning Access: INR 199 plus 18% GST. Source Pack: INR 399 plus 18% GST. 90 days of online access. No auto-renewal.
Runs in your own AWS account and costs money while it runs: about 0.36 USD per hour in ap-south-1 with everything up, mostly the management host, plus a few cents per image build. Charges start with the foundation and stop only after cleanup; the KMS key is scheduled for deletion and waits seven days. Use an account you control and run the cleanup step when you finish.
Vectametric Project Source Licence (2026-09-27): personal learning, modification/deployment and attributed portfolio/interview demonstrations are permitted. Lawfully obtained copies remain usable after online access expires. Do not redistribute original source or the Source Pack; commercial/client production use requires separate permission. Third-party terms remain separate. See included LICENSE.txt and the Project Source Licence section of the site Terms.
You can read the project material without deploying it. Running a cloud build requires the accounts, permissions and tools listed in that project's prerequisites. Deployment runs in your environment, not in a hosted Vectametric lab.
Yes. Learning Access includes the online source-file browser and explanations. The Source Pack adds the downloadable reference repository where available. The project's licence governs use of the source.
No. Cloud and CI usage are separate. Read the project's cost notice, set a budget and stop deadline, and follow its destruction and leftover-resource checks.
The project curriculum lists the available scenarios and interview topics. These focus on understanding the architecture and explaining decisions; they are not a promise of particular interview questions or a job.
The project page and checkout show the online access period for your selected plan. Access does not auto-renew. Downloaded source remains subject to its licence; future releases are not automatically included.
Review the Terms and No-Refund Policy before confirming access. All sales are final; Vectametric does not offer refunds.
Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy