labagent
Provision, audit and safely tear down ephemeral AWS sandboxes for workshops, bootcamps and shared training accounts.
pip install labagent # Python 3.9+; Terraform or OpenTofu >= 1.11 for the cohort IAM layer
labagent --version
Commands
| Command | What it does |
|---|---|
provision |
Terraform creates a cohort's IAM users, group, sandbox policy and Lambda role. Passwords are issued afterwards and returned encrypted to your public key, so state holds no secrets |
inventory, sweep |
List and delete what learners created. Plan first, then apply exactly that reviewed plan |
reset, offboard |
Rotate a learner's password; destroy a cohort (refuses while resources remain) |
audit, cleanup |
Clean an untagged, long-lived account from an explicit ruleset (docs) |
Safety
- Plan, then apply: the plan is bound to the account, its items, an age limit and the hash a human approved.
- Only a
deleterule can delete.keeprules always win; anything unmatched is reported, never removed. - Refuses to run in an account that is not on your allow-list. Re-running is always safe.
- No plaintext secrets or emails in output or logs, and no PII in this repo (enforced by tests).
Use
cp examples/config.example.json lab.json # set allowed_account_ids and the S3 state backend
labagent --config lab.json run --job job.json --output result.json
Job and result formats: docs/job-contract.md. State and secrets: docs/state-and-secrets.md.
Run it from a private CI repo with GitHub OIDC (examples in docs/examples), never from a public one.
Keep real configs, rosters, rulesets and job/result files out of this repo; .gitignore blocks the usual names.
Early release (v0.1), tested against mocked AWS: try a throwaway account first. Apache-2.0; see SECURITY.md and CONTRIBUTING.md.
Metadata
Release files for labagent 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| labagent-0.1.0.tar.gz | 68.2 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| labagent-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 115.6 kB
Release files / labagent-0.1.0.tar.gz
| Download URL | labagent-0.1.0.tar.gz |
|---|---|
| Size | 68.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2eb8952dd42419e87bbde26e01e17655ccc73a4ff5e0821e61f36a3776dc48a4
|
|
BLAKE2b-256 checksum How to use checksums |
178747e6b425da9bb56fd28bec9349a82b0fa212355c844e6598bd58308eaae5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / labagent-0.1.0-py3-none-any.whl
| Download URL | labagent-0.1.0-py3-none-any.whl |
|---|---|
| Size | 47.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bfe7b8afcdaf46d2b32302eb6b04355cd7194ad8958e8a34a26e01a354ef8595
|
|
BLAKE2b-256 checksum How to use checksums |
d0dd2b547f0a5a6edd7812b4a18ff27eb4d0a15d7382a60e09a82d93b809542e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logSecurity for labagent 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for labagent-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.