terraform-infra-ops

salieri 的头像作者 salieri

操作和更新ops/infra中的Terraform基础设施,包括初始化/应用流程、格式化和代码检查。在修改Cloudflare Pages/R2资源、更新Terraform状态配置或运行基础设施操作时使用。

📖 中文导读:操作和更新ops/infra中的Terraform基础设施,包括初始化/应用流程、格式化和代码检查。在修改Cloudflare Pages/R2资源、更新Terraform状态配置或运行基础设施操作时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: terraform-infra-ops description: Operate and update the Terraform infrastructure in ops/infra, including init/apply flows, formatting, and linting. Use when modifying Cloudflare Pages/R2 resources, updating Terraform state config, or running infra operations.

Terraform Infra Ops

Overview

Apply and maintain the Cloudflare Terraform infrastructure using the repo's documented workflow.

Workflow

  1. Work from ops/infra and follow the runbook in ops/infra/README.md for first-run vs subsequent runs.
  2. Export required backend variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_ENDPOINT_URL_S3) before running Terraform.
  3. Run terraform fmt and tflint on changes before completion.