DevOps i chmura · Budowanie i kod
generate-modern-terraform-code-for-azure
/generate-modern-terraform-code-for-azure
Podpowiada nowoczesne wzorce kodu Terraform dla Azure przy edycji plików .tf.
- Autor
- pingqLIN ↗
- Repozytorium
- skill-0 ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 18.07.2026
Ocena i bezpieczeństwo
86/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność21 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Przestarzałość
Brak sygnałów. Repozytorium zmienione 18.07.2026, bez odwołań do wycofanych modeli i API.
Licencja
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Podpowiada nowoczesne wzorce kodu Terraform dla Azure przy edycji plików .tf.
Oryginalny opis (EN)
Guidelines for generating modern Terraform code for Azure Triggers on: **/*.tf
Jak działa
- 1. Use Latest Terraform and Providers
- 2. Organize Code Cleanly
- 3. Encapsulate in Modules
- 4. Leverage Variables and Outputs
- 5. Provider Selection (AzureRM vs AzAPI)
- 6. Minimal Dependencies
- 7. Ensure Idempotency
- 8. State Management
- 9. Document and Diagram
- 10. Validate and Test Changes
Sekcje z nagłówków SKILL.md, w oryginale · 78 linii, 511 słów
Podgląd SKILL.md
--- name: generate-modern-terraform-code-for-azure description: Guidelines for generating modern Terraform code for Azure Triggers on: **/*.tf triggers: "**/*.tf" globs: "**/*.tf" --- ## 1. Use Latest Terraform and Providers Always target the latest stable Terraform version and Azure providers. In code, specify the required Terraform and provider versions to enforce this. Keep provider versions updated to get new features and fixes. ## 2. Organize Code Cleanly Structure Terraform configurations with logical file separation: - Use `main.tf` for resources - Use `variables.tf` for inputs - Use `outputs.tf` for outputs - Follow consistent naming conventions and formatting (`terraform fmt`) This makes the code easy to navigate and maintain. ## 3. Encapsulate in Modules Use Terraform modules to group reusable infrastructure components. For any resource set that will be used in multiple contexts: - Create a module with its own variables/outputs - Reference it rather than duplicating code - This promotes reuse and consistency ## 4. Leverage Variables and Outputs - **Parameterize** all configurable values using variables with types and descriptions - **Provide default values** where appropriate for optional variables - **Use outputs** to expose key resource attributes for other modules or user reference - **Mark sensitive values** accordingly to protect secrets ## 5. Provider Selection (AzureRM vs AzAPI) - **Use `azurerm` provider** for most scenarios – it offers high stability and covers the majority of Azure services - **Use `azapi` provider** only for cases where you need: - The very latest Azure features - A resource not yet supported in `azurerm` - **Document the choice** in code comments - Both providers can be used together if needed, but prefer `azurerm` when in doubt ## 6. Minimal Dependencies - **Do not introduce** additional providers or modules beyond the project's scope without confirmation - If a special provider (e.g., `random`, `tls`) or external module is needed: - Add a comment to explain - Ensure the user approves it - Keep the infrastructure stack lean and avoid unnecessary complexity ## 7. Ensure Idempotency - Write configurations that can be applied repeatedly with the same outcome - **Avoid non-idempotent actions**: - Scripts that run on every apply - Resources that might conflict if created twice - **Test by doing multiple `terraform apply` runs** and ensure the second run results in zero changes - Use resource lifecycle settings or conditional expressions to handle drift or external changes gracefully ## 8. State Management - **Use a remote backend** (like Azure Storage with state locking) to store Terraform state securely - Enable team collaboration - **Never commit state files** to source control - This prevents conflicts and keeps the infrastructure state consistent ## 9. Document and Diagram - **Maintain up-to-date documentation** - **Update README.md** with any new variables, outputs, or usage instructions whenever the code changes - Consider using tools like `terraform-docs` for automation - **Update architecture diagrams** to reflect infrastructure changes after each significant update - Well-documented code and diagrams ensure the whole team understands the infrastructure ## 10. Validate and Test Changes - **Run `terraform validate`** and review the `terraform plan` output before applying changes - Catch errors or unintended modifications early - **Consider implementing automated checks**: - CI pipeline - Pre-commit hooks - Enforce formatting, linting, and basic validation
Wersje
W bazie nie ma innych skilli o nazwie generate-modern-terraform-code-for-azure.
Migawka bazy z 13.11.2026 · wersja paczki 7c896a076097 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Podobne skille
- 100terraform-azure
Tworzy infrastrukturę Azure w Terraform: konfiguracja providerów, zarządzanie stanem i wdrażanie zasobów przy implementacji IaC dla Azure. - 100terraform-azure
Tworzy infrastrukturę Azure w Terraform: konfiguracja providerów, zarządzanie stanem i wdrażanie zasobów przy implementacji IaC dla Azure. - 86terraform
Stosuje konwencje i wytyczne Terraform przy plikach .tf opisujących infrastrukturę. - 100azure-verified-modules-terraform
Podpowiada pracę z Azure Verified Modules (AVM) i Terraform, aktywne dla plików .tf, .tfvars, .tfstate i konfiguracji tflint. - 100generating-infrastructure-as-code
Generuje konfiguracje infrastruktury jako kodu: Terraform, CloudFormation, Pulumi, szablony ARM i CDK dla AWS, GCP i Azure. - 100generating-infrastructure-as-code
Generuje konfiguracje infrastruktury jako kodu: Terraform, CloudFormation, Pulumi, szablony ARM i CDK dla AWS, GCP i Azure.