STAGE?=staging

export AWS_PROFILE=kadi

init:
	@echo "Running terraform init for ${STAGE}.."
	terraform init
	terraform workspace select -or-create ${STAGE}

plan:
	@echo "Running terraform plan for ${STAGE}.."
	terraform workspace select ${STAGE}
	terraform plan -var-file=./envs/${STAGE}.tfvars

apply:
	@echo "Running terraform apply for ${STAGE}.."
	terraform workspace select ${STAGE}
	terraform apply -var-file=./envs/${STAGE}.tfvars
