Skip to content

terrateam apply

Apply previously planned Terraform changes to update your infrastructure.

Usage

terrateam apply [tag-query]

Prerequisites

  • A successful terrateam plan must be run first
  • Apply requirements must be met (unless using apply-force)
  • User must have apply permissions

Examples

Apply All Plans

terrateam apply

Target Specific Resources

Terminal window
# Apply a specific directory
terrateam apply dir:staging
# Apply a specific workspace
terrateam apply workspace:production
# Apply multiple directories
terrateam apply dir:app or dir:database
# Complex tag queries
terrateam apply production and dir:us-east-1

Tag Query Support

The apply command supports tag queries to filter which plans to apply:

  • dir:<path> - Target specific directory
  • workspace:<name> - Target specific workspace
  • Tags can be referenced directly (e.g., production, staging)
  • Logical operators: and, or, not

Apply Requirements

The apply command respects configured requirements before allowing changes to be applied. See apply-requirements for configuration details.

Workflow Configuration

The apply command executes the workflow defined in your .terrateam/config.yml. See workflow configuration for customization options.

Access Control

Apply permissions can be restricted using access control.