agentleFS
teckedd-code2saveteckedd-code2save/ai-build-tools/skills/infrastructure-as-code-architect/SKILL.md

infrastructure-as-code-architect

Skill2 starsChanged 5 days agoMITView on GitHub

Translates local database and cache requirements (e.g. docker-compose setup with Postgres, Redis, Elasticsearch) into production-ready Infrastructure as Code using Terraform, Pulumi, or Bicep for AWS, Azure, or GCP. Use when a user wants to deploy their application or data platform to the cloud.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    After a data platform is generated using the forge skill.

    line 11
  2. Distinctive:

    When the user asks "How do I deploy this?" or "Can you write the Terraform for this?"

    line 12
  3. Distinctive:

    When migrating from a local Docker environment to managed cloud services (e.g., AWS RDS, Azure Cache for Redis).

    line 13
  4. Distinctive:

    When standing up fresh environments (staging, production).

    line 14
  5. Distinctive:

    Search/Analytics (Elasticsearch, OpenSearch)

    line 23
  6. Distinctive:

    Ask the user if they have a preference for:

    line 27
  7. Distinctive:

    If they don't have a preference, default to Terraform on AWS.

    line 31
  8. Distinctive:

    Create the necessary IaC files (Terraform, Pulumi, or Bicep).

    line 34
  9. Very specific:

    Docker: Always generate a production-ready Dockerfile for each application component.

    line 37
  10. Very specific:

    State Management: Use remote backends (S3/Blob/GCS) with locking.

    line 55

≈ “Common” is an estimate: at least 1 in 5 of the 383,637 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Infrastructure as Code Architect

Translate local development setups (like a loaded docker-compose.yml) into enterprise-ready, production infrastructure deployments using Terraform, Pulumi, or Bicep.

🎯 When to Use

  • After a data platform is generated using the forge skill.
  • When the user asks "How do I deploy this?" or "Can you write the Terraform for this?"
  • When migrating from a local Docker environment to managed cloud services (e.g., AWS RDS, Azure Cache for Redis).
  • When standing up fresh environments (staging, production).

🛠️ Step-by-Step Workflow

1. Identify Existing Requirements

  1. Scan the current project for docker-compose.yml, .env.example, and package files.
  2. Identify the core components:
    • Database (PostgreSQL, MySQL, etc.)
    • Cache/Message Queue (Redis, RabbitMQ)
    • Search/Analytics (Elasticsearch, OpenSearch)
    • Application Runtimes (Node.js, Python FastAPI, .NET)

2. Determine the Target Cloud and Tool

Ask the user if they have a preference for:

  • Cloud Provider: AWS, Azure, or GCP?
  • Tool: Terraform, Pulumi, or Bicep (Azure only)?

If they don't have a preference, default to Terraform on AWS.

3. Generate Infrastructure Code

Create the necessary IaC files (Terraform, Pulumi, or Bicep).

Container Mandate:

  • Docker: Always generate a production-ready Dockerfile for each application component. Implement multi-stage builds for smaller images and security scan points.
  • Kubernetes (K8s): For production-grade platforms, map local docker-compose services to K8s Manifests or Helm Charts.
Local ComponentManaged K8s EquivalentAWS RDS/ElastiCache Equivalent
PostgreSQLEKS / AKS / GKE (via StatefulSet)Amazon RDS
RedisEKS / AKS / GKEAmazon ElastiCache
App ContainerK8s Deployment + ServiceApp Runner / Container Apps

4. Implement CI/CD (GitHub Actions Mandate)

MANDATORY: Provide a complete .github/workflows/deploy.yml file that:

  1. Builds and Pushes Docker Images: Uses docker/build-push-action to push to ECR, ACR, or GCR.
  2. Scans for Vulnerabilities: Integrates Snyk or Trivy scans within the pipeline.
  3. Applies Infrastructure: Automatically runs IaC plan/apply from the pipeline.
  4. Deploys to K8s: Updates K8s deployments with the new image tag.

5. Infrastructure Best Practices

  • Security: Private subnets only. No public IPs for DBs/Caches. Use Managed Identities/IAM Roles.
  • State Management: Use remote backends (S3/Blob/GCS) with locking.
  • Observability: Include basic monitoring/logging resources (CloudWatch, Azure Monitor).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.