From cb16297636d8f598d3da3691f6c9102964493613 Mon Sep 17 00:00:00 2001 From: Stephen James Date: Thu, 26 Oct 2023 13:12:47 +0100 Subject: [PATCH] Added gen-env make target Enables the .env file to be created from the make file using the Docker container. A condition has been added to automatically run that as part of "make init" (terraform init) to reduce developer friction. make clean will also remove that env file for full clean up. --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 552e5d0f..1853676e 100644 --- a/Makefile +++ b/Makefile @@ -29,10 +29,11 @@ DOCKER_RUN_IT := @docker run --rm -it \ $(DOCKER_IMAGE) export DOCKER_DEFAULT_PLATFORM=linux/amd64 -include .env -TERRAFORM_OUTPUTS := `$(MAKE) output OUTPUT_ARGUMENT="--json terraform_outputs"` -DNS_DHCP_VPC_ID := `$(MAKE) output OUTPUT_ARGUMENT="--raw dns_dhcp_vpc_id"` +.PHONY: debug +debug: ## debug + @echo "debug" + $(info target is $@) .PHONY: aws aws: ## provide aws cli command as an arg e.g. (make aws AWSCLI_ARGUMENT="s3 ls")