Skip to content

Commit e644aa1

Browse files
committed
[PCAPI] In Dockerfile instructions, add options to mount local AWS credentials on the PCAPI Docker.
Signed-off-by: Giacomo Marciani <mgiacomo@amazon.com>
1 parent 19e5627 commit e644aa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/docker/awslambda/docker-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ echo "Then you can use the following to send requests to the local endpoint"
1515
echo " curl -XPOST \"http://localhost:9000/2015-03-31/functions/function/invocations\" -d @${SCRIPT_DIR}/test-events/event.json"
1616
echo
1717
echo "Use the following to run a local Flask development server hosting the API"
18-
echo " docker run -p 8080:8080 --entrypoint python pcluster-lambda -m pcluster.api.flask_app"
18+
echo " docker run -p 8080:8080 -v ~/.aws:/root/.aws:ro --entrypoint python pcluster-lambda -m pcluster.api.flask_app"
1919
echo "Then you can navigate to the following url to test the API: http://0.0.0.0:8080/ui"
2020
echo "Note that to enable swagger-ui you have to build the docker with '--build-arg PROFILE=dev'"

0 commit comments

Comments
 (0)