Skip to content

Commit

Permalink
cmd: add a new 'raw' target to send any command directly to TF
Browse files Browse the repository at this point in the history
  • Loading branch information
paulRbr committed Mar 8, 2021
1 parent 721dcba commit 908d2f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ run: ## Execute resources changes
destroy: ## Destroy resources
@bash $(dir $(mkfile_path))/terraform.sh destroy $(args) $(RUN_ARGS)

.PHONY: raw
raw: ## Raw command sent to terraform
@bash $(dir $(mkfile_path))/terraform.sh $(RUN_ARGS) $(args)

help:
@printf "\033[32mTerraform-makefile v$(version)\033[0m\n\n"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
Expand Down

0 comments on commit 908d2f7

Please sign in to comment.