मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)48k · #5965

terraform-skill

यह क्या करती है

यह टूल आपको कोड लिखने और व्यवस्थित करने में मदद करता है, ताकि सर्वर और डेटाबेस जैसे टेक्नोलॉजी इन्फ्रास्ट्रक्चर को अपने आप और सुरक्षित तरीके से मैनेज किया जा सके। यह Terraform और OpenTofu जैसे टूल्स के लिए बेस्ट प्रैक्टिस भी बताता है।

कब इस्तेमाल करें

  • ✓जब आप अपने इन्फ्रास्ट्रक्चर को मैनेज करने के लिए नई कॉन्फ़िगरेशन बना रहे हों।
  • ✓जब आप अपने इन्फ्रास्ट्रक्चर कोड के लिए टेस्ट सेट करना चाहते हों।
  • ✓जब आप कई एनवायरनमेंट के लिए या continuous integration के लिए अपने कोड का ढांचा तय कर रहे हों।

Skill का लिंक

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/terraform-skill/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/terraform-skill/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मैं एक नया Terraform मॉड्यूल बनाना चाहता हूं जो नेटवर्क रिसोर्स को मैनेज करे, और उसमें सुरक्षा और व्यवस्था के लिए बेस्ट प्रैक्टिस का पालन हो।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह आपके इन्फ्रास्ट्रक्चर कोड का विश्लेषण करता है, सुधार के सुझाव देता है, सुरक्षा जांचता है, और कोड को व्यवस्थित करने और टेस्ट करने के सबसे अच्छे तरीके चुनने में मदद करता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Terraform Skill for Claude

Comprehensive Terraform and OpenTofu guidance covering testing, modules, CI/CD, and production patterns. Based on terraform-best-practices.com and enterprise experience.

Detailed Guide

Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.

When to Use This Skill

Activate this skill when:

  • Creating new Terraform or OpenTofu configurations or modules
  • Setting up testing infrastructure for IaC code
  • Deciding between testing approaches (validate, plan, frameworks)
  • Structuring multi-environment deployments
  • Implementing CI/CD for infrastructure-as-code
  • Reviewing or refactoring existing Terraform/OpenTofu projects
  • Choosing between module patterns or state management approaches

Don't use this skill for:

  • Basic Terraform/OpenTofu syntax questions (Claude knows this)
  • Provider-specific API reference (link to docs instead)
  • Cloud platform questions unrelated to Terraform/OpenTofu

Count vs For_Each: When to Use Each

Quick Decision Guide

Scenario Use Why
Boolean condition (create or don't) count = condition ? 1 : 0 Simple on/off toggle
Simple numeric replication count = 3 Fixed number of identical resources
Items may be reordered/removed for_each = toset(list) Stable resource addresses
Reference by key for_each = map Named access to resources
Multiple named resources for_each Better maintainability

Common Patterns

Boolean conditions:

# ✅ GOOD - Boolean condition
resource "aws_nat_gateway" "this" {
  count = var.create_nat_gateway ? 1 : 0
  # ...
}

Stable addressing with for_each:

# ✅ GOOD - Removing "us-east-1b" only affects that subnet
resource "aws_subnet" "private" {
  for_each = toset(var.availability_zones)

  availability_zone = each.key
  # ...
}

# ❌ BAD - Removing middle AZ recreates all subsequent subnets
resource "aws_subnet" "private" {
  count = length(var.availability_zones)

  availability_zone = var.availability_zones[count.index]
  # ...
}

For migration guides and detailed examples, see: Code Patterns: Count vs For_Each

Security & Compliance

Essential Security Checks

# Static security scanning
trivy config .
checkov -d .

Common Issues to Avoid

❌ Don't:

  • Store secrets in variables
  • Use default VPC
  • Skip encryption
  • Open security groups to 0.0.0.0/0

✅ Do:

  • Use AWS Secrets Manager / Parameter Store
  • Create dedicated VPCs
  • Enable encryption at rest
  • Use least-privilege security groups

For detailed security guidance, see:

  • Security & Compliance Guide - Trivy/Checkov integration, secrets management, state file security, compliance testing

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
अक्सर पूछे जाने वाले सवाल

'infrastructure as code' क्या है?

यह अपने IT इन्फ्रास्ट्रक्चर को हाथ से कॉन्फ़िगर करने की जगह कोड लिखकर परिभाषित और मैनेज करने का तरीका है। इससे प्रक्रिया दोहराई जा सकती है, उसका वर्ज़न रखा जा सकता है और वह ज़्यादा भरोसेमंद बनती है।

Terraform में 'count' और 'for_each' में क्या फ़र्क है?

'count' का इस्तेमाल एक तय संख्या में एक जैसे रिसोर्स बनाने के लिए होता है, जबकि 'for_each' ज़्यादा लचीला है और लिस्ट या map के आधार पर रिसोर्स बना सकता है। इससे जब आइटम जुड़ते या हटते हैं, तो मेंटेनेंस आसान हो जाता है।

इन्फ्रास्ट्रक्चर का टेस्ट क्यों ज़रूरी है?

टेस्टिंग से पता चलता है कि आपका इन्फ्रास्ट्रक्चर वैसा ही काम कर रहा है जैसा उसे करना चाहिए, प्रोडक्शन में गलतियों से बचाव होता है, और लागू करने से पहले यह पक्का होता है कि सुरक्षा सेटिंग्स सही हैं।

जानकारी

लेखक का मूल विवरण

Terraform infrastructure as code best practices

repo: sickn33/agentic-awesome-skills

लोकप्रियता

GitHub स्टार
48k
रैंकिंग में स्थान
#5965
लाइसेंस
MIT
अपडेट की गई
15/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

00-andruia-consultant

48k

आपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।

AI और एजेंटएजेंट

007

48k

आपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।

कोडिंगसिक्योरिटी

10-andruia-skill-smith

48k

आपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।

AI और एजेंटएजेंट

20-andruia-niche-intelligence

48k

आपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।

लेखन और डॉक्यूमेंटरिसर्च

मिलती-जुलती skills