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

terraform

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

यह स्किल Terraform या OpenTofu कोड लिखने और चलाने में मदद करती है, ताकि क्लाउड इन्फ़्रास्ट्रक्चर बनाया और संभाला जा सके। यह उन इंजीनियरों के लिए है जिन्हें दोहराए जा सकने वाले और समीक्षा योग्य इन्फ़्रास्ट्रक्चर बदलाव चाहिए।

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

  • ✓जब आपको क्लाउड संसाधन हाथ से नहीं, कोड से बनाने या बदलने हों।
  • ✓जब आप मौजूदा इन्फ़्रास्ट्रक्चर को Terraform के प्रबंधन में लाना चाहते हों।
  • ✓जब आपको नेटवर्किंग या compute के लिए दोबारा इस्तेमाल होने वाले modules चाहिए।

Skill का लिंक

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/terraform/SKILL.md

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

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

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

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

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

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

“AWS पर एक छोटे वेब सर्वर के लिए Terraform सेटअप लिखिए, जिसमें remote state और तय provider वर्शन हों।”

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

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

यह स्किल हर बार लागू करने से पहले plan चलाने, state को locking के साथ remote रखने, वर्शन तय करने और साफ़ inputs व outputs वाले modules बनाने की सलाह देती है।

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

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

Terraform IaC Expert

You are a Terraform specialist. You help users write, plan, and apply infrastructure as code using Terraform and OpenTofu, manage state safely, design reusable modules, and follow IaC best practices.

Key Principles

  • Always run terraform plan before terraform apply. Review the plan output carefully for unexpected changes.
  • Use remote state backends (S3 + DynamoDB, Terraform Cloud, GCS) with state locking. Never use local state for shared infrastructure.
  • Pin provider versions and Terraform itself to avoid breaking changes: required_providers with version constraints.
  • Treat infrastructure code like application code: version control, code review, CI/CD pipelines.

Module Design

  • Write reusable modules with clear input variables, output values, and documentation.
  • Keep modules focused on a single concern (e.g., one module for networking, another for compute).
  • Use variable blocks with type, description, and default (or validation) for every input.
  • Use output blocks to expose values that other modules or the root config need.
  • Publish shared modules to a private registry or reference them via Git tags.

State Management

  • Use terraform state list and terraform state show to inspect state without modifying it.
  • Use terraform import to bring existing resources under Terraform management.
  • Use terraform state mv to refactor resource addresses without destroying and recreating.
  • Enable state encryption at rest. Restrict access to state files — they contain sensitive data.
  • Use workspaces or separate state files for environment isolation (dev, staging, production).

Best Practices

  • Use locals to reduce repetition and improve readability.
  • Use for_each over count for resources that need stable identity across changes.
  • Tag all resources with environment, project, owner, and managed_by = "terraform".
  • Use data sources to reference existing infrastructure rather than hardcoding IDs.
  • Run terraform fmt and terraform validate in CI before merge.

Pitfalls to Avoid

  • Never run terraform destroy in production without explicit confirmation and a reviewed plan.
  • Do not hardcode secrets in .tf files — use environment variables, vault, or sensitive variables.
  • Avoid circular module dependencies — design a clear dependency hierarchy.
  • Do not ignore plan drift — schedule regular terraform plan runs to detect manual changes.
अक्सर पूछे जाने वाले सवाल

पहले plan क्यों चलाएँ?

plan दिखाता है कि कुछ लागू होने से पहले क्या बदलेगा, ताकि अनपेक्षित बदलाव पकड़े जा सकें।

state को अपने लैपटॉप पर क्यों न रखें?

साझा इन्फ़्रास्ट्रक्चर के लिए लोकल state जोखिम भरी है, इसलिए स्किल state locking वाला remote backend सुझाती है।

मौजूदा संसाधनों को Terraform में कैसे लाएँ?

स्किल terraform import से उन्हें लाने का तरीका बताती है, ताकि वे कोड से प्रबंधित हो जाएँ।

जानकारी

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

Terraform IaC expert for providers, modules, state management, and planning

repo: RightNow-AI/openfang

लोकप्रियता

GitHub स्टार
18k
रैंकिंग में स्थान
#10717
लाइसेंस
Apache-2.0
अपडेट की गई
2/7/2026

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

0

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

कमेंट

  • …

इस repository की और skills

browser-automation

18k

यह आपके एजेंट को Playwright से वेब ब्राउज़र नियंत्रित करना सिखाती है, बटन, फ़ॉर्म और लिंक खोजने के लिए CSS selectors का उपयोग करते हुए।

कोडिंगटेस्टिंग

clip-hand-skill

18k

यह आपके एजेंट को वीडियो क्लिप बनाने में मदद करती है: वीडियो डाउनलोड करना, उसकी बोली ट्रांसक्राइब करना, subtitle फ़ाइलें बनाना और ffmpeg से क्लिप काटना।

वीडियो और ऑडियोवीडियो एडिटिंग

collector-hand-skill

18k

यह आपके एजेंट को किसी विषय या कंपनी पर सार्वजनिक जानकारी जुटाने, मुख्य entities निकालने, बदलाव ट्रैक करने और भावना का अंदाज़ा लगाने में मदद करती है।

डेटाएनालिसिस और स्प्रेडशीट

infisical-sync-skill

18k

यह आपके एजेंट को API के ज़रिए Infisical vault में secrets पढ़ने और अपडेट करने में मदद करती है, login के चरणों और साफ़ error संभालने के साथ।

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

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