Ephemeral
One command creates the Azure stack. A TTL makes sure it knows when to leave.
View repository ↗
because not everything
needs to live forever.
I was tired of rebuilding the same Azure setup and relying on somebody to remember the cleanup. So I wrapped the Terraform in one Bash interface: name the environment, choose its lifetime, add only the services you need, and write the deletion time at creation.
- Use it for
- Feature branches, demos, proofs of concept and temporary staging.
- Do not use it for
- Anything you plan to explain with “we’ll delete it later.”
- 01CreateName it, choose a TTL, pick the optional services.
./create-env.sh --name demo --ttl 4 - 02TagOwner, cost centre and deletion time travel with every resource.
DestroyAfter=+4h - 03LeaveThe cleanup job finds expired stacks and removes them.
./cleanup-expired.sh --force
3 resources · approx. €0.14 · deletion scheduled at creation
$
./create-env.sh --name portfolio-demo --ttl 4 --with-database▮
The command is real enough to inspect.
The infrastructure is simulated here because this is a portfolio, not your Azure bill.
The shortcut is small. The stack is not.
AlwaysResource groupVNet + subnetsNetwork securityPrivate DNS
OptionalPostgreSQLLinux App ServiceContainer registryCost export
Every time1–168 hour TTL7 tracking tagsCron-ready cleanupTerraform outputs