Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 8632139

Browse files
committed
[Fix] - use localhost rather than public DNS name since it's not defined from /etc/hosts
1 parent fa07fa8 commit 8632139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DevOps/1_ServerlessApplicationModel/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ SAM Local can start an HTTP server locally on EC2 instance on port 3000. In ord
191191
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:
192192

193193
```
194-
ssh -i ~/mykeypair.pem -N -L 3000:ec2-###-##-##-###.compute-1.amazonaws.com:3000 ec2-user@ec2-###-##-##-###.compute-1.amazonaws.com
194+
ssh -i ~/mykeypair.pem -N -L 3000:localhost:3000 ec2-user@ec2-###-##-##-###.compute-1.amazonaws.com
195195
```
196196
197197
###### Port Forwarding with Putty on Windows

0 commit comments

Comments
 (0)