From 8632139144a6e8ed8f79e198ce60370b1f421bfe Mon Sep 17 00:00:00 2001 From: Nickk Sun Date: Sat, 13 Oct 2018 15:09:28 +1100 Subject: [PATCH] [Fix] - use localhost rather than public DNS name since it's not defined from /etc/hosts --- DevOps/1_ServerlessApplicationModel/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DevOps/1_ServerlessApplicationModel/README.md b/DevOps/1_ServerlessApplicationModel/README.md index 2c668187..bf4c4f2e 100644 --- a/DevOps/1_ServerlessApplicationModel/README.md +++ b/DevOps/1_ServerlessApplicationModel/README.md @@ -191,7 +191,7 @@ SAM Local can start an HTTP server locally on EC2 instance on port 3000. In ord On your workstation, open a new terminal and run the following command. In the command, replace ***~/mykeypair.pem*** with the location and file name of your .pem file and replace ***ec2-###-##-##-###.compute-1.amazonaws.com*** with the public DNS name of your EC2 developer instance: ``` - ssh -i ~/mykeypair.pem -N -L 3000:ec2-###-##-##-###.compute-1.amazonaws.com:3000 ec2-user@ec2-###-##-##-###.compute-1.amazonaws.com + ssh -i ~/mykeypair.pem -N -L 3000:localhost:3000 ec2-user@ec2-###-##-##-###.compute-1.amazonaws.com ``` ###### Port Forwarding with Putty on Windows