create-terramate-stack

Automate Terramate stack configuration for Terraform workspaces with Azure deployments.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/omattsson/iac-bootstrap --skill create-terramate-stack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-terramate-stack
Source: https://github.com/omattsson/iac-bootstrap/tree/main/examples/azure-terramate/.github/skills/create-terramate-stack
Command: npx skills add https://github.com/omattsson/iac-bootstrap --skill create-terramate-stack

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually configuring Terramate stacks, environments, and cross-stack dependencies for Terraform infrastructure is time-consuming and error-prone, often leading to inconsistent hierarchy, misconfigured generate_hcl blocks, and broken deployment ordering.

Core Features & Use Cases

  • New Stack Provisioning: Add new Terramate stacks to existing environments with pre-defined directory structure, stack identity, and module version globals.
  • Environment Management: Create new environments for existing services, inheriting and updating environment-level globals like location and subscription ID.
  • Shared Configuration Updates: Modify shared generate_hcl blocks for backends, providers, and variables, with validation to avoid unintended cross-stack changes.
  • Use Case: DevOps teams using Terramate with Terraform on Azure can use this skill to rapidly scaffold new infrastructure stacks while enforcing organizational standards and avoiding common configuration errors.

Quick Start

Use the create-terramate-stack skill to add a new Terramate stack for the identity service in the development environment, including all required generate_hcl blocks and cross-stack dependencies.

Frequently Asked Questions about create-terramate-stack

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create new Terramate stacks for Terraform workspaces without manual configuration errors?

You can automate Terramate stack creation by applying pre-defined directory structures, unique stack IDs, and generate_hcl blocks to eliminate manual setup errors. This enforces organizational hierarchy standards and validates cross-stack dependencies for Azure deployments.

How do I configure cross-stack dependencies and ordering in Terramate for Azure infrastructure?

You configure cross-stack dependencies by wiring cross-stack ordering patterns and module version globals within your Terramate stacks. This enforces consistent deployment ordering and valid syntax across Azure cloud infrastructure stacks.

What is the best way to manage shared generate_hcl blocks across multiple Terramate stacks?

The best way to manage shared generate_hcl blocks is to modify configurations for backends, providers, and variables with validation to avoid unintended cross-stack changes. This ensures shared configurations remain consistent across new stacks and environments.

Can I provision new environments for existing services using Terramate and Terraform on Azure?

You can provision new environments for existing services by inheriting and updating environment-level globals like Azure location and subscription ID. This applies a Contoso-aligned directory structure and pre-configured cross-stack dependency patterns for valid deployments.

Does this Terramate configuration approach work for updating module version globals across stacks?

Updating module version globals requires applying valid Terramate syntax and organizational hierarchy standards to maintain consistency. You can wire cross-stack ordering and module version globals to ensure all stacks use correct module versions across environments.

Why do my manually configured Terramate stacks have broken deployment ordering and misconfigured generate_hcl blocks?

Manual Terramate stack configuration often leads to inconsistent hierarchy, misconfigured generate_hcl blocks, and broken deployment ordering. Automating the process eliminates these errors by enforcing valid syntax, unique stack IDs, and pre-configured cross-stack dependency patterns.