hashicorp/terraform-stacks

Guide complet pour travailler avec les Terraform Stacks de HashiCorp. À utiliser lors de la création, modification ou validation de configurations Terraform Stack (fichiers .tfcomponent.hcl, .tfdeploy.hcl), de la gestion de composants et déploiements de stacks à partir de modules locaux, du registre public ou du registre privé, de la gestion d'infrastructures multi-régions ou multi-environnements, ou du dépannage de la syntaxe et de la structure de Terraform Stacks.

Qu'est-ce que terraform-stacks ?

Cette compétence constitue un guide complet pour les développeurs et ingénieurs DevOps utilisant Terraform Stacks de HashiCorp. Elle permet de créer, modifier et valider des fichiers de configuration .tfcomponent.hcl et .tfdeploy.hcl, de gérer des composants et déploiements depuis diverses sources (modules locaux, registre public, registre privé), et de superviser des infrastructures multi-régions ou multi-environnements. Utile sur toutes les plateformes compatibles avec Terraform (CLI, CI/CD, Cloud), elle fournit des instructions précises pour éviter les erreurs de syntaxe et garantir la cohérence des stacks. En s'appuyant sur la documentation officielle de la SKILL.md, elle aide à structurer correctement les configurations, à référencer les composants, à déployer des déploiements et à résoudre les problèmes courants liés à la structure des stacks.

Compatible avec~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/hashicorp/agent-skills/tree/main/skills/terraform-stacks

Installed? Explore more Productivité et collaboration skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

Que fait terraform-stacks ?

Guide complet pour travailler avec les Terraform Stacks de HashiCorp. À utiliser lors de la création, modification ou validation de configurations Terraform Stack (fichiers .tfcomponent.hcl, .tfdeploy.hcl), de la gestion de composants et déploiements de stacks à partir de modules locaux, du registre public ou du registre privé, de la gestion d'infrastructures multi-régions ou multi-environnements, ou du dépannage de la syntaxe et de la structure de Terraform Stacks.

Individual skills in this repo

This repo contains 15 individual skills — each has its own dedicated page.

hashicorp/aws-ami-builder

Build Amazon Machine Images (AMIs) with Packer using the amazon-ebs builder. Use when creating custom AMIs for EC2 instances.

hashicorp/azure-image-builder

Build Azure managed images and Azure Compute Gallery images with Packer. Use when creating custom images for Azure VMs.

hashicorp/azure-verified-modules

Azure Verified Modules (AVM) requirements and best practices for developing certified Azure Terraform modules. Use when creating or reviewing Azure modules that need AVM certification.

hashicorp/new-terraform-provider

Use this when scaffolding a new Terraform provider.

hashicorp/provider-actions

Implement Terraform Provider actions using the Plugin Framework. Use when developing imperative operations that execute at lifecycle events (before/after create, update, destroy).

hashicorp/provider-docs

Create, update, and review Terraform provider documentation for Terraform Registry using HashiCorp-recommended patterns, tfplugindocs templates, and schema descriptions. Use when adding or changing provider configuration, resources, data sources, ephemeral resources, list resources, functions, or guides; when validating generated docs; and when troubleshooting missing or incorrect Registry documentation.

hashicorp/provider-resources

Implement Terraform Provider resources and data sources using the Plugin Framework. Use when developing CRUD operations, schema design, state management, and acceptance testing for provider resources.

hashicorp/provider-test-patterns

Terraform provider acceptance test patterns using terraform-plugin-testing with the Plugin Framework. Covers test structure, TestCase/TestStep fields, ConfigStateChecks with custom statecheck.StateCheck implementations, plan checks, CompareValue for cross-step assertions, config helpers, import testing with ImportStateKind, sweepers, and scenario patterns (basic, update, disappears, validation, regression), and ephemeral resource testing with the echoprovider package. Use when writing, reviewing, or debugging provider acceptance tests, including questions about statecheck, plancheck, TestCheckFunc, CheckDestroy, ExpectError, import state verification, ephemeral resources, or how to structure test files.

hashicorp/push-to-registry

Push Packer build metadata to HCP Packer registry for tracking and managing image lifecycle. Use when integrating Packer builds with HCP Packer for version control and governance.

hashicorp/refactor-module

Transform monolithic Terraform configurations into reusable, maintainable modules following HashiCorp's module design principles and community best practices.

hashicorp/run-acceptance-tests

Guide for running acceptance tests for a Terraform provider. Use this when asked to run an acceptance test or to run a test with the prefix `TestAcc`.

hashicorp/terraform-search-import

Discover existing cloud resources using Terraform Search queries and bulk import them into Terraform management. Use when bringing unmanaged infrastructure under Terraform control, auditing cloud resources, or migrating to IaC.

hashicorp/terraform-style-guide

Generate Terraform HCL code following HashiCorp's official style conventions and best practices. Use when writing, reviewing, or generating Terraform configurations.

hashicorp/terraform-test

Comprehensive guide for writing and running Terraform tests. Use when creating test files (.tftest.hcl), writing test scenarios with run blocks, validating infrastructure behavior with assertions, mocking providers and data sources, testing module outputs and resource configurations, or troubleshooting Terraform test syntax and execution.

hashicorp/windows-builder

Build Windows images with Packer using WinRM communicator and PowerShell provisioners. Use when creating Windows AMIs, Azure images, or VMware templates.

Skills associés