zia-skill
Installation
SKILL.md
Zscaler Internet Access (ZIA) Skill
Diagnose-first guidance for end users writing Terraform HCL that consumes the zscaler/zia provider. This skill does not cover provider Go code (Plugin SDK schema, expand/flatten, acceptance tests).
Canonical source of truth for resource/data-source schemas: https://registry.terraform.io/providers/zscaler/zia/latest/docs.
Response Contract
Every ZIA HCL response must include:
- Assumptions & version floor —
zscaler/ziaprovider version (~> 4.0minimum for OneAPI), Terraform/OpenTofu version, auth mode (ASK if not stated — provider supports both OneAPI and legacy v3 as first-class options), cloud target (only set if non-default), and whether the configuration creates or modifies any resource (which makes activation mandatory). - Risk category addressed — one or more of: auth misconfiguration, resource catalog mismatch (including data-source-only objects), rule ordering, predefined-rule mishandling, activation forgotten, drift, secret exposure.
- Chosen approach & tradeoffs.
- Validation plan —
terraform fmt -check,terraform validate,terraform plan -out=tfplan, plus azia_activation_statusstep if any resource is created/modified (changes are draft until activated). - Rollback notes — never
terraform state rma ZIA resource; for predefined rules useterraform apply -target=(see Troubleshooting).
Never recommend terraform apply against a production ZIA tenant without a reviewed plan artifact and a clear activation step.