OpenTofu is an open-source infrastructure as code tool that uses HCL (HashiCorp Configuration Language) to declaratively manage cloud infrastructure. It is a community-driven fork of Terraform, fully compatible with existing Terraform providers and modules, with exclusive features like native state encryption. Pulumi provides an alternative IaC approach using general-purpose languages (TypeScript, Python, Go) inst...
When to use: Managing cloud infrastructure declaratively, provisioning multi-cloud resources, enforcing infrastructure consistency across environments, encrypting state at rest (OpenTofu), using familiar programming languages for IaC (Pulumi).
When NOT to use: One-off scripts better suited to CLI tools, application-level configuration management (use Ansible/Chef), container orchestration logic (use Kubernetes manifests), simple static hosting (use platform-native tools).
OpenTofu(오픈 소스 Terraform 포크) 및 Pulumi를 사용한 코드형 인프라입니다. OpenTofu HCL 구문, 공급자, 리소스, 데이터 소스, 모듈, 원격 백엔드를 통한 상태 관리, 작업 공간, 기존 인프라 가져오기, 워크플로 계획/적용, 변수 관리, 출력 값, 프로비저너 및 상태 암호화(OpenTofu 전용)를 다룹니다. Pulumi TypeScript/Python SDK, 스택 관리, 구성 요소 리소스, 구성/비밀, 상태 백엔드, 코드형 정책 및 자동화 API가 포함됩니다. 다중 환경 설정, 모듈 구성, CI/CD 통합, 드리프트 감지 및 비밀 관리에 대한 일반적인 패턴입니다. HCL 구성 작성 또는 검토, 클라우드 인프라 상태 관리, Terraform에서 OpenTofu로 마이그레이션, TypeScript 또는 Python으로 Pulumi 프로그램 구축, 다중 환경 IaC 파이프라인 설정 또는 상태 암호화 구현 시 사용합니다. 출처: oakoss/agent-skills.