Terraform Iac

Terraform and OpenTofu infrastructure as code best practices - generate HCL configurations, module patterns, state management, CI/CD workflows, and cloud provider templates for AWS, GCP, Azure

chainlesschain 41d6526 2 files · 6.0 KB Updated

File contents

Terraform IaC Skill

Infrastructure as code with Terraform/OpenTofu best practices.

Usage

/terraform-iac generate "<infrastructure description>"
/terraform-iac module <module-name>
/terraform-iac template <cloud>-<service>
/terraform-iac validate [path]

Best Practices Applied

  • Remote state with locking (S3+DynamoDB / GCS / Azure Blob)
  • Module composition pattern
  • Proper variable typing and validation
  • Output values for cross-module references
  • Security group / IAM least privilege
  • Tagging strategy
  • Environment separation (dev/staging/prod)

Cloud Templates

aws-vpc aws-ecs aws-rds aws-lambda gcp-gke gcp-cloudsql azure-aks azure-cosmosdb

chainlesschain/chainlesschain/tree/main/desktop-app-vue/src/main/ai-engine/cowork/skills/builtin/terraform-iac commit 41d6526e5e

Frequently asked questions

npx skillmds@latest add chainlesschain/terraform-iac