@@ -2,9 +2,8 @@ PROJECT_ROOT ?= $(notdir $(PWD))
22
33# Use `=` instead of `:=` so that we only execute `./bin/current-account-alias` when needed
44# See https://www.gnu.org/software/make/manual/html_node/Flavors.html#Flavors
5- CURRENT_ACCOUNT_ALIAS = ` ./bin/current-account-alias `
6-
7- CURRENT_ACCOUNT_ID = $(./bin/current-account-id )
5+ CURRENT_ACCOUNT_ALIAS = $(shell ./bin/current-account-alias)
6+ CURRENT_ACCOUNT_ID = $(shell ./bin/current-account-id)
87
98# Get the list of reusable terraform modules by getting out all the modules
109# in infra/modules and then stripping out the "infra/modules/" prefix
@@ -193,7 +192,7 @@ infra-configure-app-service: ## Configure infra/$APP_NAME/service module's tfbac
193192 ./bin/create-tfbackend " infra/$( APP_NAME) /service" " $( ENVIRONMENT) "
194193
195194infra-update-current-account : # # Update infra resources for current AWS profile
196- ./bin/terraform-init-and-apply infra/accounts ` ./bin/current-account-config-name`
195+ ./bin/terraform-init-and-apply infra/accounts $$( ./bin/current-account-config-name )
197196
198197infra-update-network : # # Update network
199198 @:$(call check_defined, NETWORK_NAME, the name of the network in /infra/networks)
@@ -272,7 +271,7 @@ infra-format: ## Format infra code
272271
273272infra-test-service : # # Run service layer infra test suite
274273 @:$(call check_defined, APP_NAME, "the name of subdirectory of /infra that holds the application's infrastructure code")
275- cd infra/test && APP_NAME=$(APP_NAME ) go test -run TestService -v -timeout 30m
274+ cd infra/test && APP_NAME=$(APP_NAME ) IMAGE_TAG= $( IMAGE_TAG ) go test -run TestService -v -timeout 30m
276275
277276# ############
278277# # Linting ##
0 commit comments