Live
Cloudflare WAF adds blocking rules for Ruby regex flaws and WordPress exploitsAI Prompt Logging via WAF Payload Logging Replaces Legacy Log Mode RulesetTerraform Stacks gain native policy support, multi‑deployment orchestration, and agent‑ready CLIReducing GPU Cold‑Start Latency on EKS with Auto Mode and KarpenterSpain Cloud Accreditation Unlocks Classified Workloads on AWS Europe (Spain)Virtual Machines Remain Core Infrastructure as AI Workloads Increase Isolation NeedsNew Workspace Agent Interfaces and Cloud Agent Gateway tighten AI agent securityLambda Timeout Doubles and Gains GPU Support – What Engineers Need to AdjustCloudflare WAF adds blocking rules for Ruby regex flaws and WordPress exploitsAI Prompt Logging via WAF Payload Logging Replaces Legacy Log Mode RulesetTerraform Stacks gain native policy support, multi‑deployment orchestration, and agent‑ready CLIReducing GPU Cold‑Start Latency on EKS with Auto Mode and KarpenterSpain Cloud Accreditation Unlocks Classified Workloads on AWS Europe (Spain)Virtual Machines Remain Core Infrastructure as AI Workloads Increase Isolation NeedsNew Workspace Agent Interfaces and Cloud Agent Gateway tighten AI agent securityLambda Timeout Doubles and Gains GPU Support – What Engineers Need to Adjust
HashiCorp

Terraform Stacks gain native policy support, multi‑deployment orchestration, and agent‑ready CLI

AI SummaryPowered by AI

HashiCorp announced GA of HCL‑based policy enforcement for Terraform Stacks, added true multi‑deployment group orchestration, and expanded the Stacks CLI for non‑interactive, JSON‑output workflows. These changes give platform teams consistent governance, safer large‑scale rollouts, and easier automation for AI agents and CI/CD pipelines.

Terraform Stacks now support native HCL policy evaluation, can be coordinated in multi‑deployment groups, and include a richer, non‑interactive CLI. The updates target platform engineers who need consistent guardrails, controlled rollouts, and machine‑readable automation interfaces.

Terraform Stacks policy

Policy‑as‑code, previously limited to standard workspaces, is now available for Stacks in both HCP Terraform and Terraform Enterprise. After each plan, the system runs the configured HCL policies and re‑evaluates them on subsequent plan‑and‑apply cycles when deferred changes exist. Policies can be scoped at the organization, project, or individual Stack level, mirroring the granularity already used for workspaces.

  • Consistent guardrails: Teams can enforce the same compliance rules across all infrastructure, regardless of whether it lives in a Stack or a traditional workspace.
  • Early feedback: Violations surface immediately after planning, preventing non‑compliant resources from reaching production.
  • Familiar authoring: Because policies are written in HCL, existing Terraform codebases and CI pipelines can incorporate policy testing without learning a new language.

Multi‑deployment group orchestration

Deployment groups have been upgraded from a simple one‑to‑one mapping to a true orchestration primitive. A group can now contain multiple Stacks, and the rollout engine enforces a failure‑tolerance threshold. If the number of failed deployments exceeds the configured limit, the engine halts further applications within the group. Eager planning controls let operators defer bulk plan generation until explicitly triggered, reducing API load and plan‑time contention.

  • Risk containment: Automatic throttling limits blast radius during large rollouts.
  • Operational efficiency: Deferred planning avoids unnecessary API calls and resource contention.
  • Visibility: Group‑level dashboards show aggregate success, failure, and blocked counts, simplifying troubleshooting.

Agent‑ready Terraform Stacks CLI

The CLI now includes non‑interactive commands designed for headless execution and AI‑driven automation. Commands such as terraform stacks deployment-run watch and terraform stacks deployment-group watch stream real‑time status to the console. All new commands can emit structured JSON, enabling downstream parsers, CI/CD steps, or AI agents to consume results without custom wrappers.

  • Automation friendly: JSON output integrates directly with pipelines and monitoring tools.
  • Debugging support: Watch commands provide live visibility without manual UI interaction.
  • Consistency: The same CLI experience works across interactive and programmatic contexts.

Related CloudNinjas coverage: DevOps.

What This Means For Practitioners

Platform teams should start mapping existing workspace policies to Stacks to maintain compliance continuity. When designing large rollouts, define deployment groups with appropriate failure‑tolerance thresholds and consider using eager planning to control API usage. Update CI/CD jobs to invoke the new non‑interactive CLI commands and parse the JSON output for automated checks or alerting. Finally, evaluate whether the added governance and orchestration features align with your organization’s risk model and operational processes, and adjust monitoring dashboards to include the new group‑level metrics.

Originally published atHashiCorp Blog