feat: add makefile
- add init, plan and apply to makefile
This commit is contained in:
parent
8e1d242dba
commit
537cc9013a
20
Makefile
Normal file
20
Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
.PHONY: init plan apply help
|
||||
|
||||
# Default target
|
||||
help:
|
||||
@echo "Available targets:"
|
||||
@echo " init - Initialize Terraform"
|
||||
@echo " plan - Plan Terraform changes"
|
||||
@echo " apply - Apply Terraform changes"
|
||||
|
||||
init:
|
||||
@echo "Sourcing environment and initializing Terraform..."
|
||||
@source ./env && terraform init
|
||||
|
||||
plan:
|
||||
@echo "Sourcing environment and planning Terraform changes..."
|
||||
@source ./env && terraform plan
|
||||
|
||||
apply:
|
||||
@echo "Sourcing environment and applying Terraform changes..."
|
||||
@source ./env && terraform apply -auto-approve
|
||||
Loading…
Reference in New Issue
Block a user