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
# Apply a specific directoryterrateam apply dir:staging
# Apply a specific workspaceterrateam apply workspace:production
# Apply multiple directoriesterrateam apply dir:app or dir:database
# Complex tag queriesterrateam 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 directoryworkspace:<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.
Related Commands
- terrateam plan - Create a plan before applying
- terrateam apply-force - Apply without meeting requirements
- terrateam apply-autoapprove - Plan and apply in one step