deploy-test

A guided command for deploying and testing one or more rad-modules modules using Terraform, a tool that creates and manages cloud infrastructure.

In plain words
What is it for?
Use it to run deployment and test campaigns for selected modules or every deployable module in the project.
Why use it?
It gathers missing settings, checks prerequisites, confirms the deployment, and keeps Terraform state in a Google Cloud Storage bucket instead of the repository.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/techequitycloud/rad-modules/deploy-test
Clone the repo
git clone --depth 1 https://github.com/techequitycloud/rad-modules

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 933 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00933
Opus 5 $0.00000 $0.00466
Sonnet 5 $0.00000 $0.00187
Haiku 4.5 $0.00000 $0.00093

Measured yesterday against content hash 5f6f08ee866e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

deploy-test scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- For an exposed endpoint, curl the ingress IP for an HTTP 200 where applicable.
.claude/commands/deploy-test.md · 99 lines

What it actually says

Guided deployment and test campaign for one or more rad-modules modules: $ARGUMENTS

$ARGUMENTS is a comma/space-separated list of module names (e.g. "Istio_GKE", "Bank_GKE EKS_GKE"). If empty, include every deployable module under modules/.

Deployments go through rad-launcher (rad-launcher/radlab.py), which stores Terraform state in a GCS bucket — state is never kept in the repo.


PHASE 1 — CONFIGURE

Resolve campaign parameters from the environment, prompting for anything missing:

export PROJECT_ID="${RAD_PROJECT_ID:-$(gcloud config get-value project 2>/dev/null)}"
export STATE_BUCKET="${RAD_STATE_BUCKET:-${PROJECT_ID}-radlab-tfstate}"
export RESOURCE_CREATOR_IDENTITY="${RESOURCE_CREATOR_IDENTITY:-}"

Display the resolved values and confirm before continuing:

Campaign parameters
  Project:       $PROJECT_ID
  State bucket:  $STATE_BUCKET   (must exist; create with: gcloud storage buckets create gs://$STATE_BUCKET)
  Creator SA:    $RESOURCE_CREATOR_IDENTITY (blank = caller ADC)

Confirm prerequisites are installed once: cd rad-launcher && python3 installer_prereq.py. It must run from inside rad-launcher/ — it invokes requirements.txt, opentofu_installer.py and cloudsdk_kubectl_installer.py by CWD-relative path.


PHASE 2 — RESOLVE MODULE LIST

Scan modules/ for deployable directories (has main.tf/variables.tf). Apply the $ARGUMENTS filter; report "Unknown module: " for any token without a directory.

For each selected module, read variables.tf for REQUIRED inputs (declared type, no default) beyond the standard set, and for any cloud credentials it needs:

  • AKS_GKE: Azure client_id, client_secret, azure_tenant_id, subscription_id (via tfvars or ARM_* env vars — never hardcode).
  • EKS_GKE: AWS aws_access_key / aws_secret_key; Migration_Center: aws_access_key_id / aws_secret_access_key (via tfvars or AWS_* env vars). For each module, prepare a minimal tfvars file capturing project_id, deployment_id (optional), and any required inputs. Report any input you cannot fill so the user can supply it.

PHASE 3 — DEPLOY (one module at a time)

Deploy modules SERIALLY — each GKE-based module provisions a cluster and post-provisioning installers; running several at once contends on cluster operations. For each module:

python3 rad-launcher/radlab.py \
  -m <Module> -a create \
  -p "$PROJECT_ID" -b "$STATE_BUCKET" \
  -f /path/to/<module>.tfvars

Stream the output. On failure, capture the error, classify it (auth/quota/API/timeout vs a real module bug), and report — do not silently retry destructive operations.


PHASE 4 — VERIFY

After a successful create, sanity-check the deployment:

  • Read the module outputs (deployment_id, project_id, and any endpoint output).
  • For GKE modules, fetch credentials and confirm core workloads are Ready (kubectl get pods -A), e.g. Bank of Anthos frontend, Istio ingressgateway.
  • For an exposed endpoint, curl the ingress IP for an HTTP 200 where applicable. Record PASS/FAIL per module with the evidence (the failing pod, the HTTP status).

PHASE 5 — DESTROY (if this is a create→destroy test)

python3 rad-launcher/radlab.py \
  -m <Module> -a delete \
  -p "$PROJECT_ID" -b "$STATE_BUCKET" \
  -f /path/to/<module>.tfvars

Confirm destroy completes cleanly (best-effort destroy provisioners may print warnings — that is expected). Verify no orphaned clusters/networks remain.


REPORT

Per module: deploy result, verify result (with evidence), destroy result, and any bug found with a concrete fix suggestion. Summarise as a table at the end.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 99 lines · 0 tokens per session scan A 5f6f08ee866e

Subscribe to this mod's changes

deploy-test is a command published in the GitHub repository techequitycloud/rad-modules (2 stars, last pushed 8d ago), licensed MPL-2.0. It costs nothing until one of its globs matches a file; then it loads 933 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.