Build Sweeper, a set of AWS Lambda functions that find wasted spend every day across Regions (unattached EBS volumes, unassociated Elastic IP addresses, stopped and idle EC2 instances, untagged resources), record who created each new resource from CloudTrail events, clean up only after a warning, a grace period, a fresh re-check and a kept snapshot, and report list-price savings estimates to S3, Slack, CloudWatch and optionally Datadog.
FinOps Engineer. Intermediate.
This project builds Sweeper, a small system that finds wasted AWS spend, records who created each resource, cleans up safely and reports what the waste costs. Along the way it teaches each service as it is used. This page says what you should bring, what is taught here, and the small amount of AWS and Terraform you need before the first lesson: accounts and Regions, how AWS decides who may do what, how the command line signs in, and how Terraform keeps track of what it create
This project builds Sweeper, a small set of AWS Lambda functions (which AWS's documentation now calls Lambda Event Functions) that find wasted spend in an AWS account, record who created each resource, clean up waste safely, and report what it found and what it estimates the waste costs. This page explains how the pieces fit together, follows a daily scan, a creator tag and a cleanup action through them, and shows where every number in a report comes from. Each technology has
Every finding Sweeper reports rests on one claim: this resource costs money and does nothing useful for it. This lesson makes that claim precise. It starts with how AWS bills the four things Sweeper looks at (instances, volumes, snapshots and public IPv4 addresses), moves on to where a price comes from and how to read one, and ends with how Sweeper turns a price into an estimate that a finance reviewer can check and that never pretends to know more than it does.
Sweeper has no server. Its three jobs, scanning, cleaning up and tagging, are AWS Lambda functions that exist only while they run: a schedule starts two of them every morning, and a stream of events starts the third whenever someone creates a resource. This lesson explains what a Lambda function is, how one package becomes three functions, the two ways a function can be started and what each means when something fails, and why the scanner and actor are limited to one copy at
A cost tool is only as good as what it sees. One that reads the first page of results, or judges an instance idle because its metrics are missing, or reports "no waste" for a Region it could not read, produces a confident and wrong report. This lesson follows the scanner's reading half: how it lists every volume, address and instance in each Region, how it decides from CloudWatch history that a running instance is idle, how each detector decides a resource is waste and how ol
Fernhill's waste grew because nobody could say whose anything was, and the one volume someone deleted on a guess held a client's only copy of a dataset. Finding waste is half the problem; the other half is finding the person who can decide what to do with it. On AWS that person is recorded, if at all, in tags. This lesson teaches how tags work and where they fail, then follows the four ways Sweeper uses them: to report resources nobody owns, to name an owner for every finding
A scan on its own is a snapshot: it knows what is unused this morning, not how long it has been unused, whether someone was warned last week, or whether yesterday's run already took the snapshot it was about to take. Sweeper's decisions depend on all of that, so it keeps a record of every finding in a DynamoDB table. This lesson teaches the parts of DynamoDB the project uses, why the table's keys are shaped the way they are, how a finding moves through its states, and how con
Sweeper's code checks ten things before it deletes a volume. Code can have bugs, though, and a cleanup tool with a bug and broad permissions is exactly what Fernhill was afraid of. So the same rules are enforced a second time, by AWS itself, in the IAM policies of the roles Sweeper works through. This lesson builds on the IAM basics from the prerequisites: how roles are assumed across a trust boundary, how policies are evaluated, how conditions on tags, Regions and request co
The two mistakes a cleanup tool can make are not equal. Leaving an unused volume for another week wastes a few dollars. Deleting the wrong one, as happened at Fernhill, can cost a client. So Sweeper's cleanup is built to fail closed: whenever anything is uncertain, it refuses, says why, and tries again tomorrow. This lesson follows a finding through enforcement: the warning and the wait, the ten checks in front of every action, the fresh look at the resource just before actin
A finding with an owner gets fixed; a finding marked "owner unknown" gets argued about. The best moment to record who is responsible for a resource is the moment it is created, while AWS still knows who asked. This lesson follows a create call from the person who makes it to the tag that names them: how CloudTrail records API calls, how EventBridge turns those records into events and routes them, how one function serves every Region, and what happens, and what does not, when
A finding nobody hears about saves nothing. Sweeper's scans end by telling four audiences what they found, each in the form that audience uses: a complete JSON report for a finance reviewer or an auditor, a short Slack summary for the team, CloudWatch metrics, a dashboard and alarms for whoever runs it, and, optionally, the same metrics in Datadog for a company that already watches everything there. This lesson follows a scan's results out of the function, explains why they l
Everything Sweeper is, from the findings table to the action role's conditions, is written down in Terraform and Python, and every change travels the same path: a commit, the same checks on your machine and in CI, a reproducible package, a plan someone reads, and an apply. This lesson teaches the Terraform the project uses, beyond the one page in the prerequisites: modules and roots, remote state and locking, version pins, one provider for several Regions, guards that stop an
Before building a cost tool, a FinOps engineer should be able to answer a manager's first question: "Doesn't AWS already do this?" Partly, yes. AWS has services that find idle resources, consolidate savings recommendations across accounts, check accounts against best practices, flag unattached volumes as non-compliant, and even delete them automatically. This lesson surveys those services, what each finds, what it costs, what it needs switched on, and where each one stops, so
This guide takes you from the source pack to a running Sweeper in your own AWS account, creates a small set of wasted resources on purpose, watches Sweeper find, price and report them, and shows how a later change reaches the functions. Cleanup removes everything afterwards; keep it open, because the resources here cost money until they are gone.
Almost every problem in Sweeper shows up as something wrong with a finding, or with its absence: a resource that should be reported is not, one that is reported has no owner or no price, a cleanup that should have happened did not, or one that did left something behind. The first useful question is always what does the record say? Sweeper is built so that for any resource you can find what the scanner saw, what the actor decided and why, and the scenarios practise doing it. S
Building the project is half of being able to talk about it. The other half is explaining why each piece is there, what it costs and what it does not protect against, to someone who will push on every claim, and who may well open with "doesn't AWS already do this?" The question list is organised by topic: the architecture as a whole, finding and pricing waste, safe cleanup, identity and tagging, and operations and delivery.
Everything the deployment created keeps costing money until it is removed: the instance, the public IPv4 addresses and the volumes by the hour, the dashboard and custom metrics by the month. This page removes it in an order that leaves nothing behind, explains why the order matters, and says what to do when a step fails.
Before anything is created in AWS, two questions need firm answers: does the code work, and exactly where will it run? The local checks answer the first without an account. The input file and the guard answer the second, and keep answering it before every later step.
Terraform must remember what it creates, or it cannot change or remove it later. This milestone creates the place where that memory lives for the rest of the lab: one S3 bucket, holding the state of the platform and the lab fixtures.
This milestone creates Sweeper itself: the three functions from one package, the findings table and report bucket, the parameters, schedules, alarms and dashboard of the home part, and the roles, tagger, rules and Recycle Bin rule of the target part. Optionally, it stores the Slack webhook as a secret.
Sweeper needs something to find. This milestone creates waste on purpose, every item tagged as a lab fixture: an idle and a stopped instance, unattached volumes with and without owner tags, and an unassociated address, plus one more volume and address in a second Region if you use one. Then it watches the first part of Sweeper that works without being asked: the creator tags.
This milestone runs the scanner by hand, three times, and reads the result the way a finance reviewer would. It is where the lab's waste turns into findings, prices and a report.
Two ways the running system changes: switching enforcement on, which lets Sweeper act on the lab fixtures, and shipping any change to code or policy, which reaches the functions as a new package. Both travel the same path. The rehearsal deletes lab resources, so it needs its own approval; the change and its rollback do not.
The run ends when nothing remains, not when the last check passes. Three Terraform roots hold most of what was created, but not all of it: a volume made by hand, Sweeper's snapshots and the volumes waiting in the Recycle Bin are in no state file. The order below removes all of it and proves it.
Learning Access: INR 199 plus 18% GST. Source Pack: INR 399 plus 18% GST. 90 days of online access. No auto-renewal.
AWS usage is separate from project access. While the lab's resources exist they cost a few US cents an hour at list prices, mostly the unassociated public IPv4 addresses, a small instance and CloudWatch's dashboard and custom metrics; left running for a month they would come to roughly USD 20, until the cleanup procedure removes them. The local checks cost nothing. This is a learning reference, not a hosted lab or a production-readiness guarantee.
Vectametric Project Source Licence (2026-09-27): lawfully obtained source may be copied, modified and deployed for personal learning and interview preparation, including personal portfolio demonstrations with attribution. These permissions continue after online access expires. Do not resell or redistribute the Source Pack or its original source files, unchanged or modified. Commercial or client production use requires separate written permission. Third-party components, such as boto3, moto, pytest, ruff and the Terraform AWS provider, retain their own licences. See LICENSE.txt and the Project Source Licence section of the site Terms for the full rules.
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