I've been successful in running AWS SAM Local on my machine on port 3000 with this command:
sam local start-api
The documentation says there's a flag -d
that runs the server in debug mode on a different port. I need to run this on port 8080. So I tried this:
sam local start-api -d 8080
And the server still starts up on 3000:
Mounting api.get_account (python3.6) at http://127.0.0.1:3000/account/{account_num} [GET]
Does anyone know what I'm doing wrong here? Thanks!