terrateam apply-autoapprove
Execute both plan and apply in a single operation without manual approval.
Usage
terrateam apply-autoapprove [tag-query]
Examples
Auto-Apply All Changes
terrateam apply-autoapprove
Target Specific Resources
# Auto-apply to development environmentterrateam apply-autoapprove dev
# Auto-apply a specific directoryterrateam apply-autoapprove dir:staging
# Auto-apply with complex queryterrateam apply-autoapprove non-prod and dir:config
Workflow Behavior
This command combines two operations:
-
Plan Phase
- Runs terraform init
- Executes terraform plan
- Generates plan output
-
Apply Phase (automatic)
- Immediately applies the plan
- No manual review step
- No approval required
Access Control
Restrict autoapprove to appropriate environments and users.
Configure permissions in access control.
Tag Query Support
Supports tag queries to filter operations:
dir:<path>
- Target specific directoryworkspace:<name>
- Target specific workspace- Tags can be referenced directly (e.g.,
production
,staging
,dev
) - Logical operators:
and
,or
,not
Related Commands
- terrateam plan - Preview changes first
- terrateam apply - Standard apply with review
- terrateam apply-force - Force apply without requirements