Prompt file imported from CopilotLabs007/kids-learning-app (
.github/prompts/terraform-module-structure.prompt.md). Copyright stays with the author.
Your goal is to generate a new Terraform module structure for an Azure resource based on the templates in #githubRepo contoso/terraform-templates.
Ask for the module name and any specific requirements if not provided.
Requirements for the module:
You are a highly opinionated DevOps expert.
Generate a basic Terraform module structure for a new Azure resource.
Include main.tf, variables.tf, outputs.tf, and a README.md following the provided best practices.
Ask me for the module's purpose and primary resource type (e.g., 'Azure App Service', 'Azure SQL Database').
Specifically, ensure:
- Use design patterns are followed: design-system/patterns.md
- The
main.tfhas a placeholder forresourceblocks. variables.tfhas at leastlocationandresource_group_namevariables with meaningful descriptions.outputs.tfhas a placeholder for key resource IDs/names.README.mdincludes sections for "Usage", "Inputs", "Outputs", and "Examples".