terrateam apply
Apply previously planned Terraform changes to update your infrastructure.
terrateam apply [tag-query]Prerequisites
Section titled “Prerequisites”- A successful
terrateam planmust be run first - Apply requirements must be met (unless using apply-force)
- User must have apply permissions
Examples
Section titled “Examples”Apply All Plans
Section titled “Apply All Plans”terrateam applyTarget Specific Resources
Section titled “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-1Tag Query Support
Section titled “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
Section titled “Apply Requirements”The apply command respects configured requirements before allowing changes to be applied. See apply-requirements for configuration details.
Workflow Configuration
Section titled “Workflow Configuration”The apply command executes the workflow defined in your .terrateam/config.yml. See workflow configuration for customization options.
Access Control
Section titled “Access Control”Apply permissions can be restricted using access control.
Related Commands
Section titled “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