Files
pos-system/docs/en/skills/infrastructure-as-code.md
Ho Ngoc Hai 478254400a Refactor service documentation and enhance bilingual support
- Updated service template structure in `ARCHITECTURE.md` and `README.md` for clarity and usability.
- Enhanced bilingual documentation across skills, increasing the number of available skills from 15 to 25.
- Added new sections on event-driven architecture, inter-service communication, and performance optimization.
- Improved formatting and removed outdated references to streamline the documentation experience.
2026-01-01 10:06:27 +07:00

1.3 KiB

name, description
name description
infrastructure-as-code Infrastructure as Code patterns for GoodGo platform including Terraform modules, Kubernetes operators, infrastructure testing, GitOps workflows, and multi-environment management.

Infrastructure as Code Patterns

When to Use This Skill

Use this skill when:

  • Managing infrastructure with code
  • Implementing Terraform modules
  • Setting up GitOps workflows
  • Creating Kubernetes operators
  • Testing infrastructure changes

Key Patterns

Terraform Modules

# Reusable module
module "postgresql" {
  source = "../../modules/postgresql"
  database_name = "goodgo"
  environment   = "staging"
}

GitOps with ArgoCD

# Automated sync from Git
spec:
  source:
    repoURL: https://github.com/goodgo/platform
    path: deployments/production/kubernetes
  syncPolicy:
    automated:
      prune: true
      selfHeal: true

Best Practices

  1. Keep all infrastructure in version control
  2. Create reusable Terraform modules
  3. Test infrastructure changes before applying
  4. Use GitOps for Kubernetes deployments
  5. Separate environments completely

Resources