terrateam apply-autoapprove
Execute both plan and apply in a single operation without manual approval.
terrateam apply-autoapprove [tag-query]Examples
Section titled “Examples”Auto-Apply All Changes
Section titled “Auto-Apply All Changes”terrateam apply-autoapproveTarget Specific Resources
Section titled “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:configWorkflow Behavior
Section titled “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
Section titled “Access Control”Restrict autoapprove to appropriate environments and users.
Configure permissions in access control.
Tag Query Support
Section titled “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
Section titled “Related Commands”- terrateam plan - Preview changes first
- terrateam apply - Standard apply with review
- terrateam apply-force - Force apply without requirements