terraform
Terraform and OpenTofu best practices for variables, modules, descriptions, resources, plan, and import
Works with
--- name: terraform description: Terraform and OpenTofu best practices for variables, modules, descriptions, resources, plan, and import license: MIT --- # Terraform ## Plan and import - Don't run `terraform plan` directly; instead give the command and ask the user to execute it. - NEVER run terraform import manually; use import statements instead. ## Variables - Do not set `nullable = true` on variables; that is the default and is redundant. - Only set `nullable = false` when the variable must not be null. - Pass every value explicitly at the call site. Defaults and fallbacks—variable defaults, provider defaults, resource defaults, coalesce/fallback patterns—hide decisions and make behavior opaque. We hate them; use only as a last resort. ## Module structure - Single call per concern: one module call per cohesive concern; merge related pieces into one module. ## Variables and outputs - Remove unused outputs; keep only outputs that are referenced. - Minimize environment config; don't parametrize values that never vary across environments. ## Descriptions - Omit `description` unless it adds information not visible from the code; remove if unused.
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).

