writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
generating-infrastructure-as-codeExecute use when generating infrastructure as code configurations. Trigger with phrases like "create Terraform config", "generate CloudFormation template", "write Pulumi code", or "IaC for AWS/GCP/Azure". Produces production-ready code for Terraform, CloudFormation, Pulumi, ARM templates, and CDK across multiple cloud providers.
Independent GitHub snapshot · Automated classification · Original documentation governs
name: generating-infrastructure-as-code description: 'Execute use when generating infrastructure as code configurations. Trigger with phrases like "create Terraform config", "generate CloudFormation template", "write Pulumi code", or "IaC for AWS/GCP/Azure". Produces production-ready code for Terraform, CloudFormation, Pulumi, ARM templates, and CDK across multiple cloud providers.
' allowed-tools: Read, Write, Edit, Grep, Glob, Bash(terraform:), Bash(aws:), Bash(gcloud:), Bash(az:) version: 1.24.0 author: Jeremy Longshore jeremy@intentsolutions.io license: MIT tags:
Generate production-ready infrastructure as code for Terraform, CloudFormation, Pulumi, ARM templates, and AWS CDK. Produce modular, well-structured configurations with proper variable definitions, outputs, remote state management, and deployment guidance for AWS, GCP, and Azure cloud stacks.
aws, gcloud, az)terraform.tfvars, dev.tfvars, prod.tfvars) for multi-environment deploymentterraform validate, terraform plan, or equivalent tool-specific linting| Error | Cause | Solution |
|---|---|---|
Invalid HCL syntax | Malformed Terraform configuration | Run terraform validate to identify the error; check bracket matching and attribute syntax |
Unable to authenticate with cloud provider | Missing or expired credentials | Run aws configure, gcloud auth login, or az login to refresh credentials |
Resource already exists | Trying to create a resource that exists outside of IaC management | Use terraform import to bring the existing resource under management |
Error acquiring state lock | Another process holding the state lock | Wait for the other process to finish; use terraform force-unlock <ID> if the lock is stale |
Dependency cycle detected | Resources referencing each other circularly | Refactor to remove the cycle; use data sources or depends_on to establish explicit ordering |