# Infrastructure as Code Infrastructure as Code patterns for GoodGo platform including Terraform modules, Kubernetes operators, infrastructure testing, GitOps workflows, and multi-environment management. > Các patterns Infrastructure as Code cho nền tảng GoodGo bao gồm Terraform modules, Kubernetes operators, infrastructure testing, GitOps workflows, và multi-environment management. ## Tổng Quan Infrastructure as Code enables managing infrastructure through code, providing version control, reproducibility, and automation. Infrastructure as Code cho phép quản lý infrastructure qua code, cung cấp version control, reproducibility, và automation. ## Khi Nào Sử Dụng Use this skill when managing infrastructure, implementing GitOps, or creating reusable modules. Sử dụng skill này khi quản lý infrastructure, implement GitOps, hoặc tạo các modules tái sử dụng. ## Các Patterns Chính ### Terraform Modules / Terraform Modules ```hcl # EN: Reusable module # VI: Module tái sử dụng module "postgresql" { source = "../../modules/postgresql" database_name = "goodgo" } ``` ### GitOps / GitOps ```yaml # EN: Automated sync from Git # VI: Đồng bộ tự động từ Git spec: syncPolicy: automated: prune: true ``` ## Best Practices / Thực Hành Tốt 1. Keep infrastructure in version control / Giữ infrastructure trong version control 2. Create reusable modules / Tạo modules tái sử dụng 3. Test before applying / Test trước khi apply ## Tài Nguyên - Skill Source: `.cursor/skills/infrastructure-as-code/SKILL.md`