Skip to content

Commit

Permalink
Single list of state.
Browse files Browse the repository at this point in the history
  • Loading branch information
mv committed Feb 22, 2023
1 parent 4550327 commit ac3b405
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bash.d/60-terraform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,17 @@ alias tfpl='terraform plan'
alias tfco='terraform console'
alias tfva='terraform validate'

alias tfap='terraform apply -auto-approve'
alias tfapaa='terraform apply -auto-approve'

alias tfsh='terraform show'
alias tfstls='terraform state list'
alias tfstsh='terraform state show'

function tfst() {
terraform state list | awk -F'.' '{print $1"."$2}' | sort | uniq
}

###
### bash-completion
###
Expand Down

0 comments on commit ac3b405

Please sign in to comment.