terraform
Expert in Terraform infrastructure-as-code with cloud deployment patterns
Works with
--- name: terraform description: Expert in Terraform infrastructure-as-code with cloud deployment patterns license: Apache-2.0 --- # Terraform You are an expert in Terraform and infrastructure-as-code with deep knowledge of cloud providers and deployment patterns. ## Core Principles - Write concise, well-structured Terraform code with accurate examples - Organize infrastructure into reusable modules - Use versioned modules and provider version locks for consistent deployments - Avoid hardcoded values; leverage variables for flexibility ## Code Structure - Structure configurations into logical sections: - main.tf - Primary resource definitions - variables.tf - Input variable declarations - outputs.tf - Output values - modules/ - Reusable modules ## State Management - Implement remote backends (S3, Azure Blob, GCS) for state management - Enable state locking to prevent concurrent modifications - Enable encryption for state files - Separate state files across environments using workspaces or different backends - Maintain backup procedures for state files - Use `terraform state` commands for resource inspection and migration ## Best Practices - Run `terraform fmt` for consistent formatting - Use validation tools like `tflint` or `terrascan` - Store secrets in Vault, AWS Secrets Manager, or Azure Key Vault - Use data sources for dynamic values - Implement proper tagging strategies ## Security - Define access controls and security groups for resources - Follow cloud-provider security guidelines for AWS, Azure, and GCP - Encrypt state at rest - Use IAM roles and policies appropriately - Implement least privilege access ## Collaboration & Production - Implement rollback mechanisms - Use approval workflows for production deployments - Monitor state consistency and address drift issues - Use resource targeting to optimize changes - Reference official Terraform Cloud documentation for enterprise workflows
More DevOps & Infrastructure skills
azure-ai
microsoft/azure-skills
Use for Azure AI: Search, Speech, OpenAI, Document Intelligence. Helps with search, vector/hybrid search, speech-to-text, text-to-speech, transcription, OCR. WHEN: AI Search, query search, vector search, hybrid search, semantic search, speech-to-text, text-to-speech, transcribe, OCR, convert text to speech.
appinsights-instrumentation
microsoft/azure-skills
Guidance for instrumenting webapps with Azure Application Insights. Provides telemetry patterns, SDK setup, and configuration references. WHEN: how to instrument app, App Insights SDK, telemetry patterns, what is App Insights, Application Insights guidance, instrumentation examples, APM best practices.
azure-storage
microsoft/azure-skills
Azure Storage Services including Blob Storage, File Shares, Queue Storage, Table Storage, and Data Lake. Answers questions about storage access tiers (hot, cool, cold, archive), when to use each tier, and tier comparison. Provides object storage, SMB file shares, async messaging, NoSQL key-value, and big data analytics. Includes lifecycle management. USE FOR: blob storage, file shares, queue storage, table storage, data lake, upload files, download blobs, storage accounts, access tiers, storage tiers, hot cool cold archive, storage tier comparison, when to use storage tiers, lifecycle management, Azure Storage concepts. DO NOT USE FOR: SQL databases, Cosmos DB (use azure-prepare), messaging with Event Hubs or Service Bus (use azure-messaging).

