/azure-cloud-development:azure-terraform-terratest-module-testingfrom azure-cloud-development
Creates, repairs, and runs scoped Terratest coverage for Terraform modules under tests/terraform. Selects between static, plan, and Azure integration testing modes.
Ships in azure-cloud-development. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Test one Terraform module with the least expensive and least mutating mode that can prove the requested behavior.
tests/terraform/modules/.tests/terraform/go.modtests/terraform/README.mdtests/terraform/modules/*_test.go.github/workflows/terraform-test.ymlterraform/modules/<name>/Inspect these anchors before authoring a test. Do not assume the README, workflow labels, and test build tags are perfectly aligned; derive the runnable selector from the current Go files.
| Mode | Approval | Allowed behavior |
|---|---|---|
static | Default | Compile tests, inspect files, and run checks that do not plan, apply, destroy, authenticate to Azure, or contact a remote backend. |
plan | Explicit mode selection | Initialize with backend disabled, validate, and run a focused plan without applying. Stop if credentials, a remote backend, or provider API access was not approved. |
integration | Exact environment approval | Create only uniquely named test resources through OIDC, enforce cost and timeout limits, and clean up only resources created by that test. |
Resolve one test file and its corresponding Terraform module. Read module inputs, outputs, validations, provider requirements, and nearby test patterns.
Select static unless the acceptance criterion requires a plan. Select integration only when
the environment, OIDC identity, subscription, region, expected cost, unique resource-group
identity, timeout, and cleanup are all explicitly approved.
Use terraform.WithDefaultRetryableErrors for operations affected by transient provider
failures. Keep retry behavior bounded and do not convert deterministic validation failures into
retries.
Prefer Terratest *E APIs such as InitAndValidateE, PlanE, or DestroyE when an error is an
expected result or cleanup evidence must be reported. Assert the specific failure contract
instead of accepting any error.
Keep static tests free of Azure credentials and resource changes. A compile-only baseline is:
cd tests/terraform
go test -run '^$' ./...
In plan mode, use a focused test selector, backend-disabled initialization, deterministic variables, and no saved plan unless the caller requested one. Do not assume a plan is offline; providers may query remote APIs.
In integration mode, generate a collision-resistant resource-group name owned by the test,
register scoped cleanup immediately with t.Cleanup, and use OIDC (ARM_USE_OIDC=true).
Cleanup may destroy only the Terraform resources or exact resource group created by that test.
Never list and delete resource groups by a shared substring, prefix, tag, or subscription-wide query. Existing broad cleanup elsewhere is not a pattern to copy.
Run the smallest selected test from tests/terraform, for example:
go test -v -run '^TestExactName$' -timeout 30m ./modules
Add -tags=integration, the approved timeout, and approved OIDC environment only for integration
mode.
Report mode, selector, module, credentials used or not used, resource identity, timeout, cleanup result, test evidence, and residual resources.
## Terratest result
**Status:** completed | blocked
**Mode:** static | plan | integration
**Module/test:** <terraform module> / <exact Go test>
### Safety context
- Backend: disabled | <approved isolated backend>
- Azure/OIDC: not used | <approved environment and identity>
- Cost/timeout: <not applicable | approved bounds>
- Resource group: <not created | exact unique name>
- Cleanup: <not required | registered and verified | failed>
### Changes
- `<tests/terraform/...>`: <coverage added or repaired>
### Validation
- `<exact command>`: PASS | FAIL | NOT RUN - <evidence>
### Residual resources
- <none | exact resource and owner>
terraform apply or destroy outside the test's approved integration lifecycle.tests/terraform/go.mod.*E APIs and assert a specific error.What SKILL.md sets; muted values are Claude Code's defaults
12 skills in this plugin
/az-cost-optimizeAnalyze Azure IaC files and deployed Azure resources for evidence-based cost optimization, validate current costs, calculate priority scores, and draft GitHub issues. Use when asked to "azure cost optimize", "reduce Azure spend", "find Azure cost savings", "right-size Azure resources", or "create cost optimization issues"./azure-cliAzure CLI operations run az commands for cloud resource discovery, subscription context, identity, AKS, ACR, Key Vault, RBAC, managed identity, and federated credential workflows. Use this skill when working with az login, az account, az aks, az acr, az keyvault, resource group checks, or Azure day-2 operations./azure-computeRoute Azure virtual machine and scale set work, including size and image selection, pricing comparison, autoscale and orchestration modes, capacity reservation groups, and Essential Machine Management. Use when the user asks to create, provision, deploy, or spin up a VM, recommend a VM size or family, compare VM pricing, work with VMSS, scale sets, autoscale, burstable or GPU sizes, plan HPC, machine learning, or dev/test workloads, estimate compute cost, or reserve and guarantee capacity./azure-enterprise-infra-plannerArchitect and provision enterprise Azure infrastructure from workload descriptions for cloud architects and platform engineers, covering networking, identity, security, compliance, and multi-resource topologies with Well-Architected alignment, and generating Bicep or Terraform directly without azd. Use when the user asks to plan Azure infrastructure, architect a landing zone, design a hub-spoke network, plan a multi-region disaster recovery topology, set up virtual networks, firewalls, and private endpoints, run a subscription-scope Bicep deployment, or configure Azure Backup for VM workloads./azure-infrastructureAzure infrastructure patterns guide landing-zone, networking, identity, naming, tagging, and private connectivity decisions. Use this skill when designing hub-spoke networks, private endpoint patterns, Workload Identity, naming conventions, tag strategies, AKS architecture, Key Vault access, or secure PaaS topology./azure-pricingFetch live Azure Retail Prices API data and estimate Azure service, SKU, region, reservation, savings plan, spot, and Copilot Studio credit costs. Use when the user asks about Azure pricing, Azure costs, Azure billing, workload estimates, SKU comparison, Copilot Credits, Copilot Studio pricing, or agent usage estimation.npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin azure-cloud-developmentOther plugins' skills for the same job