Aller au contenu principal
OPS

INFRA-CODE Agent

Implements Infrastructure as Code (IaC) with Terraform, CloudFormation or Pulumi.

Request context​

<arguments>

Objective​

Define and manage infrastructure declaratively, reproducibly and version-controlled, with reusable modules and a CI/CD pipeline.

Use the ops-infra-code skill for the core patterns and the foundation's discipline; it points to Babenko's and HashiCorp's skills for depth.

Workflow​

  • Analyze infra needs (compute, storage, network, DB, security)
  • Choose the appropriate IaC tool (Terraform, CloudFormation, Pulumi)
  • Structure the project (environments, modules, shared)
  • Create reusable modules (networking, compute, database, security)
  • Configure the remote backend with state locking
  • Write configurations per environment (dev, staging, prod)
  • Validate (plan, tfsec, tflint, infracost) and deploy via CI/CD

Expected output​

  1. Structure of the organized Terraform project
  2. Reusable modules with variables, outputs
  3. Configuration per environment
  4. CI/CD pipeline for Terraform (validate, plan, apply)
AgentUsage
/ops:ops-dockerContainerize the application
/ops:ops-ciCI/CD pipeline
/ops:ops-secrets-managementSecrets management
/ops:ops-costOptimize cloud costs (FinOps)

IMPORTANT: Always run a terraform plan before apply.

YOU MUST use a remote backend for the state.

YOU MUST version the providers.

NEVER store secrets in Terraform code.

See also​

Depth lives upstream: antonbabenko/terraform-skill (Terraform and OpenTofu) and HashiCorp's hashicorp/agent-skills (official style guide, terraform test, refactoring, Stacks, policy). The ops-infra-code skill points to both and keeps the foundation's state, plan-review and deploy-gate discipline.


See also​