T
terraform-module-library
Build reusable Terraform modules for AWS, Azure, and GCP infrastructure following infrastructure-as-code best practices. Use when creating infrastructure modules, standardizing cloud provisioning, or implementing reusable IaC components.
Installation
Pick a client and clone the repository into its skills directory.
Installation
About this skill
Build reusable Terraform modules for AWS, Azure, and GCP infrastructure following infrastructure-as-code best practices. Use when creating infrastructure modules, standardizing cloud provisioning, or implementing reusable IaC components.
How to use
- Sklonuj repozytorium lub zintegruj umiejętność z agentem, aby uzyskać dostęp do biblioteki wzorców modułów Terraform dla AWS, Azure i GCP.
- Wybierz odpowiednią chmurę i typ zasobu (np. VPC dla AWS, vnet dla Azure, VPC dla GCP) na podstawie Twoich potrzeb infrastrukturalnych.
- Skopiuj strukturę modułu do swojego projektu, zachowując standardową organizację: main.tf dla zasobów, variables.tf dla zmiennych wejściowych, outputs.tf dla wartości wyjściowych oraz versions.tf dla wersji providerów.
- Dostosuj zmienne w variables.tf do Twoich wymagań, takie jak CIDR blocks, nazwy zasobów, strefy dostępności i tagi.
- Zdefiniuj outputs.tf, aby eksportować ważne wartości z modułu (np. ID VPC, adresy IP, identyfikatory klastrów).
- Przetestuj moduł, korzystając z dołączonych przykładów w katalogu examples/ i testów Terratest, aby upewnić się, że moduł działa prawidłowo przed wdrożeniem w produkcji.