nais/pilot/nais-terraform

Claude Code and agent skill by nais/pilot

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

The OpenTofu and Atlantis setup behind Nais infrastructure — per-tenant roots, shared modules, and what a change touches

Install

npx vskill@latest install nais/pilot/nais-terraform

SKILL.md

Nais infrastructure as code

OpenTofu, not Terraform. The binary is tofu. Plans and applies run through Atlantis from pull requests, never from a laptop.

Two internal repos: nais/nais-terraform-modules (per tenant) and nais/nais-io-terraform-modules (the nais.io infrastructure). A 404 means missing org access, not a missing repo.

Layout

tenants/<tenant>/ one standalone root per tenant
modules/ shared modules the roots compose
atlantis.yaml the projects Atlantis knows

Modules: tenant, management, onprem, aiven, cnpg, loadbalancer, naisdevice-controlplane, naisdevice-gateway, github_tenant_auth.

Each root has its own state and service account:

hcl
backend "gcs" {
bucket = "nais-tf-state-dev-nais"
impersonate_service_account = "nais-tf-dev-nais@nais-io.iam.gserviceaccount.com"
}

Pattern: nais-tf-state-<tenant>, nais-tf-<tenant>@nais-io.iam.gserviceaccount.com.

Module sources are relative local paths: source = "../../modules/tenant". Nothing is published to registry.terraform.io.

Blast radius

Answer this before proposing an edit.

  • tenants/<tenant>/: that tenant.
  • modules/: every root that composes it, usually all of them. Check the callers.

Read the plan Atlantis posts. It is the only thing that reports the real radius rather than the predicted one.

Finding things

bash
gh api repos/nais/nais-terraform-modules/contents/tenants --jq '.[].name'
gh api repos/nais/nais-terraform-modules/contents/modules --jq '.[].name'

GitHub rate limits code search to roughly ten requests per minute and caps results. Beyond a spot check, clone and grep.

Traps

  • Saying "terraform" when the tool is tofu.
  • Proposing a local apply. Applies go through Atlantis on a PR.
  • Editing a shared module for one tenant's need is a fleet-wide change. Use the tenant root or a variable.
  • Looking for module versions. Sources are local paths; main is what every tenant gets.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/nais/pilot/nais-terraform/badge)](https://verified-skill.com/skills/nais/pilot/nais-terraform)

Something wrong with this skill or its page? Tell us.