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 पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
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 planbeforeterraform 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_providerswith 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
variableblocks withtype,description, anddefault(orvalidation) for every input. - Use
outputblocks 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 listandterraform state showto inspect state without modifying it. - Use
terraform importto bring existing resources under Terraform management. - Use
terraform state mvto 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
localsto reduce repetition and improve readability. - Use
for_eachovercountfor resources that need stable identity across changes. - Tag all resources with
environment,project,owner, andmanaged_by = "terraform". - Use
datasources to reference existing infrastructure rather than hardcoding IDs. - Run
terraform fmtandterraform validatein CI before merge.
Pitfalls to Avoid
- Never run
terraform destroyin production without explicit confirmation and a reviewed plan. - Do not hardcode secrets in
.tffiles — use environment variables, vault, orsensitivevariables. - Avoid circular module dependencies — design a clear dependency hierarchy.
- Do not ignore plan drift — schedule regular
terraform planruns 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
कमेंट
- …
इस 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
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।