Skip to content

Commit

Permalink
Attempt to pass through temporary AWS credentials retrieved through r…
Browse files Browse the repository at this point in the history
…oles to application container
  • Loading branch information
mluypaert committed Jan 26, 2024
1 parent cdf92ab commit af9a7ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ ifneq (${AWS_ACCESS_KEY_ID},)
ifneq (${AWS_SECRET_ACCESS_KEY},)
$(eval RUN_CMD = ${RUN_CMD} -e AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY})
$(eval RUN_CMD = ${RUN_CMD} -e AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID})
ifneq (${AWS_SESSION_TOKEN},)
$(eval RUN_CMD = ${RUN_CMD} -e AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN})
endif
else
@echo 'ENV var "AWS_ACCESS_KEY_ID" is defined but "AWS_SECRET_ACCESS_KEY" is not. Either define both or none.' >&2
@exit 1
Expand Down

0 comments on commit af9a7ac

Please sign in to comment.