docs/cost-control.md
# Cost Control Plan
## Main Principle
Home server is always-on. Cloud environments are temporary.
## Cloud Usage Pattern
```text
terraform apply
run deployment or DR test
capture proof/screenshots
terraform destroy
```
## Rules
1. Do not leave AWS/Azure/GCP test infrastructure running overnight.
2. Use small VM sizes only.
3. Add budget alerts in all clouds.
4. Prefer VM-based K3s over expensive managed clusters for labs.
5. Use Terraform destroy workflows.
6. Add tags to every resource.
7. Keep a cost log in docs.
## Required Tags
```text
project=astracloud-idp
environment=dr-demo
owner=lakshay
managed-by=terraform
auto-destroy=true
```
## Budget Targets
| Environment | Target |
|---|---|
| Home server | ₹0 cloud cost |
| AWS DR demo | temporary only |
| Azure DR demo | temporary only |
| GCP DR demo | temporary only |
## Future Cost Gate
Use Infracost later to block pull requests if estimated cost is above a threshold.