Skip to content

Commit

Permalink
[Fix] - use localhost rather than public DNS name since it's not defi…
Browse files Browse the repository at this point in the history
…ned from /etc/hosts
  • Loading branch information
nickksun committed Oct 13, 2018
1 parent fa07fa8 commit 8632139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DevOps/1_ServerlessApplicationModel/README.md
Expand Up @@ -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
Expand Down

0 comments on commit 8632139

Please sign in to comment.