Use smurf stf <command>
to run Terraform commands. Supported commands include:
- Help:
smurf stf --help
- Initialize Terraform:
smurf stf init
- Generate and Show Execution Plan:
smurf stf plan
- Apply Terraform Changes:
smurf stf apply
- Detect Drift in Terraform State:
smurf stf drift
- Provision Terraform Environment:
smurf stf provision
The provision
command for Terraform performs init
, validate
, and apply
.
name: Smurf STF Workflow
on:
push:
branches:
- main
jobs:
terraform:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Smurf stf init
uses: clouddrove/[email protected]
with:
path: "tf"
tool: stf
command: init
- name: Smurf stf validate
uses: clouddrove/[email protected]
with:
path: "tf"
tool: stf
command: validate
Command | Description |
---|---|
apply |
Apply the changes required to reach the desired state of Terraform Infrastructure |
destroy |
Destroy the Terraform Infrastructure |
drift |
Detect drift between state and infrastructure for Terraform |
format |
Format the Terraform Infrastructure |
init |
Initialize Terraform |
output |
Generate output for the current state of Terraform Infrastructure |
plan |
Generate and show an execution plan for Terraform |
provision |
Its the combination of init, plan, apply, output for Terraform |
validate |
Validate Terraform changes |