leeno7786-coder/nanoagent/setting-up-terraform
Claude Code and agent skill by leeno7786-coder/nanoagent
- community
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-terraformSKILL.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
- Initialize the project structure
`` infra/ ├── main.tf ├── variables.tf ├── outputs.tf ├── terraform.tfvars # (gitignored) ├── providers.tf └── modules/ ``
- 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).
- 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)" } ```
- Create resources — in
main.tf, define the infrastructure the user needs (VPC, RDS, ECS, S3, Lambda, etc.). Extract reusable patterns into modules undermodules/.
- Configure remote state — use an S3 bucket (AWS), GCS bucket (GCP), or Azure Storage for state. Enable state locking with DynamoDB (AWS).
- Add to `.gitignore`
`` *.tfstate *.tfstate.* .terraform/ terraform.tfvars *.tfvars ``
- Add CI pipeline — create a GitHub Actions workflow that runs
terraform fmt -check,terraform validate, andterraform planon PRs, withterraform applyon merge to main (with approval gate).
Notes
- Never commit state files or
.tfvarswith secrets. - Use workspaces or separate state files for dev/staging/prod.
- Pin provider versions to avoid breaking changes.
- Run
terraform fmtbefore 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
- SKILL.md in the repositoryCheckingskills/setting-up-terraform/SKILL.md
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
[](https://verified-skill.com/skills/leeno7786-coder/nanoagent/setting-up-terraform)