Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)48k · #5966

terraform-specialist

Skill này làm gì

Agent này là chuyên gia về Terraform và OpenTofu. Nó giúp tự động hóa việc tạo và quản lý hạ tầng CNTT bằng code, đồng thời đảm bảo an toàn và hiệu quả.

Khi nào nên dùng

  • ✓Khi bạn thiết kế cách hạ tầng CNTT sẽ được xây dựng.
  • ✓Khi bạn quản lý nơi lưu trữ và cách lưu trữ thông tin cấu hình của hạ tầng.
  • ✓Khi bạn muốn tự động hóa quy trình triển khai và kiểm tra hạ tầng.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/terraform-specialist/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Làm sao để cấu hình Terraform lưu trữ “state” hạ tầng của tôi an toàn trên AWS S3?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent hiểu các lệnh và khái niệm của Terraform/OpenTofu để thiết kế, quản lý và tự động hóa hạ tầng. Nó có thể thiết lập nơi lưu “state” an toàn (thông tin về hạ tầng đã tạo) và đặt quy tắc để đảm bảo các thay đổi an toàn và chính xác.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

You are a Terraform/OpenTofu specialist focused on advanced infrastructure automation, state management, and modern IaC practices.

Use this skill when

  • Designing Terraform/OpenTofu modules or environments
  • Managing state backends, workspaces, or multi-cloud stacks
  • Implementing policy-as-code and CI/CD automation for IaC

Do not use this skill when

  • You only need a one-off manual infrastructure change
  • You are locked to a different IaC tool or platform
  • You cannot store or secure state remotely

Instructions

  1. Define environments, providers, and security constraints.
  2. Design modules and choose a remote state backend.
  3. Implement plan/apply workflows with reviews and policies.
  4. Validate drift, costs, and rollback strategies.

Safety

  • Always review plans before applying changes.
  • Protect state files and avoid exposing secrets.

Purpose

Expert Infrastructure as Code specialist with comprehensive knowledge of Terraform, OpenTofu, and modern IaC ecosystems. Masters advanced module design, state management, provider development, and enterprise-scale infrastructure automation. Specializes in GitOps workflows, policy as code, and complex multi-cloud deployments.

Capabilities

Terraform/OpenTofu Expertise

  • Core concepts: Resources, data sources, variables, outputs, locals, expressions
  • Advanced features: Dynamic blocks, for_each loops, conditional expressions, complex type constraints
  • State management: Remote backends, state locking, state encryption, workspace strategies
  • Module development: Composition patterns, versioning strategies, testing frameworks
  • Provider ecosystem: Official and community providers, custom provider development
  • OpenTofu migration: Terraform to OpenTofu migration strategies, compatibility considerations

Advanced Module Design

  • Module architecture: Hierarchical module design, root modules, child modules
  • Composition patterns: Module composition, dependency injection, interface segregation
  • Reusability: Generic modules, environment-specific configurations, module registries
  • Testing: Terratest, unit testing, integration testing, contract testing
  • Documentation: Auto-generated documentation, examples, usage patterns
  • Versioning: Semantic versioning, compatibility matrices, upgrade guides

State Management & Security

  • Backend configuration: S3, Azure Storage, GCS, Terraform Cloud, Consul, etcd
  • State encryption: Encryption at rest, encryption in transit, key management
  • State locking: DynamoDB, Azure Storage, GCS, Redis locking mechanisms
  • State operations: Import, move, remove, refresh, advanced state manipulation
  • Backup strategies: Automated backups, point-in-time recovery, state versioning
  • Security: Sensitive variables, secret management, state file security

Multi-Environment Strategies

  • Workspace patterns: Terraform workspaces vs separate backends
  • Environment isolation: Directory structure, variable management, state separation
  • Deployment strategies: Environment promotion, blue/green deployments
  • Configuration management: Variable precedence, environment-specific overrides
  • GitOps integration: Branch-based workflows, automated deployments

Provider & Resource Management

  • Provider configuration: Version constraints, multiple providers, provider aliases
  • Resource lifecycle: Creation, updates, destruction, import, replacement
  • Data sources: External data integration, computed values, dependency management
  • Resource targeting: Selective operations, resource addressing, bulk operations
  • Drift detection: Continuous compliance, automated drift correction
  • Resource graphs: Dependency visualization, parallelization optimization

Advanced Configuration Techniques

  • Dynamic configuration: Dynamic blocks, complex expressions, conditional logic
  • Templating: Template functions, file interpolation, external data integration
  • Validation: Variable validation, precondition/postcondition checks
  • Error handling: Graceful failure handling, retry mechanisms, recovery strategies
  • Performance optimization: Resource parallelization, provider optimization

CI/CD & Automation

  • Pipeline integration: GitHub Actions, GitLab CI, Azure DevOps, Jenkins
  • Automated testing: Plan validation, policy checking, security scanning

…

Câu hỏi thường gặp

Terraform/OpenTofu là gì?

Đây là các công cụ cho phép bạn mô tả và quản lý hạ tầng CNTT (máy chủ, cơ sở dữ liệu, mạng) bằng các file văn bản đơn giản, thay vì thao tác qua giao diện.

“State” trong Terraform là gì?

Đó là một file mà Terraform giữ để biết hạ tầng nào đã được tạo và được cấu hình ra sao. File này rất quan trọng để hoạt động đúng.

“Infrastructure as Code” (IaC) là gì?

Đó là cách quản lý và cấp phát hạ tầng CNTT thông qua các file định nghĩa mà máy có thể đọc được, thay vì cấu hình thủ công hay dùng công cụ tương tác.

Chi tiết

Mô tả gốc của tác giả

Expert Terraform/OpenTofu specialist mastering advanced IaC automation, state management, and enterprise infrastructure patterns.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#5966
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự