Skip to content

Commit 72964d7

Browse files
committed
add check for env var AWS_ACCESS_KEY_ID before running aws commands
1 parent c6ab801 commit 72964d7

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@ IDENT ?= labkey
1818

1919
PULL_TAG ?= latest
2020

21-
AWS_ACCOUNT_ID ?= $(shell aws sts get-caller-identity | jq -r '.Account' | grep -E '[0-9]{12}' || exit 1)
22-
AWS_REGION ?= $(shell aws configure get region || exit 1)
21+
ifeq ($(AWS_ACCESS_KEY_ID),)
22+
AWS_ACCOUNT_ID=123456789
23+
AWS_REGION=us-west-2
24+
else
25+
AWS_ACCOUNT_ID ?= $(shell aws sts get-caller-identity | jq -r '.Account' | grep -E '[0-9]{12}' || exit 1)
26+
AWS_REGION ?= $(shell aws configure get region || exit 1)
27+
endif
2328

2429
LABKEY_VERSION ?= 21.5-SNAPSHOT
2530
LABKEY_DISTRIBUTION ?= community

0 commit comments

Comments
 (0)