AgentSkillsCN

terraform-infra-ops

操作和更新ops/infra中的Terraform基础设施,包括init/apply流程、格式化和linting。当修改Cloudflare Pages/R2资源、更新Terraform状态配置,或运行基础设施操作时使用。

SKILL.md
--- frontmatter
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.