leeno7786-coder/nanoagent/setting-up-terraform

Claude Code and agent skill by leeno7786-coder/nanoagent

Trust tier 3
  • community
Source check pending

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

Set up Terraform infrastructure-as-code for cloud resources, including provider configuration, modules, state management, and CI integration.

Install

npx vskill@latest install leeno7786-coder/nanoagent/setting-up-terraform

SKILL.md

The same SKILL.md was published earlier as spencerpauly/awesome-cursor-skills/setting-up-terraform.

Setup Terraform

Use this skill when the user asks to set up Terraform, infrastructure as code, cloud provisioning, or IaC.

Steps

  1. Initialize the project structure

`` infra/ ├── main.tf ├── variables.tf ├── outputs.tf ├── terraform.tfvars # (gitignored) ├── providers.tf └── modules/ ``

  1. Configure the provider — in providers.tf:

```hcl terraform { required_version = ">= 1.5" required_providers { aws = { source = "hashicorp/aws" version = "~> 5.0" } } backend "s3" { bucket = "my-terraform-state" key = "prod/terraform.tfstate" region = "us-east-1" } }

provider "aws" { region = var.aws_region } ```

Adapt the provider for the user's cloud (AWS, GCP, Azure).

  1. Define variables — in variables.tf, define inputs with types, descriptions, and defaults:

```hcl variable "aws_region" { type = string default = "us-east-1" description = "AWS region for resources" }

variable "environment" { type = string description = "Deployment environment (dev, staging, prod)" } ```

  1. Create resources — in main.tf, define the infrastructure the user needs (VPC, RDS, ECS, S3, Lambda, etc.). Extract reusable patterns into modules under modules/.
  1. Configure remote state — use an S3 bucket (AWS), GCS bucket (GCP), or Azure Storage for state. Enable state locking with DynamoDB (AWS).
  1. Add to `.gitignore`

`` *.tfstate *.tfstate.* .terraform/ terraform.tfvars *.tfvars ``

  1. Add CI pipeline — create a GitHub Actions workflow that runs terraform fmt -check, terraform validate, and terraform plan on PRs, with terraform apply on merge to main (with approval gate).

Notes

  • Never commit state files or .tfvars with secrets.
  • Use workspaces or separate state files for dev/staging/prod.
  • Pin provider versions to avoid breaking changes.
  • Run terraform fmt before committing.

Security

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

Quality evaluation

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

Source

Popularity

Repository stars
4
7-day trend score
13

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

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

  • Claude Code
  • Grok Build (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/leeno7786-coder/nanoagent/setting-up-terraform/badge)](https://verified-skill.com/skills/leeno7786-coder/nanoagent/setting-up-terraform)

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