96 | ``` 97 | ssh -i path/to/EC2PrivateKey ec2-user@PublicIp -L localhost:3000:localhost:3000 98 | ``` 99 | 100 |
104 |
105 | 1. Convert your EC2 Private Key. Follow the steps [here](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html) if necessary.
106 |
107 | 2. Specify the ``ec2-user@PublicIP`` in the Host Name field.
108 |
109 |
110 |
111 | 3. Specify the converted .ppk file in the SSH/Auth ``Private key file for authentication`` field.
112 |
113 |
114 |
115 | 4. Configure tunneling for localhost:3000 in the SSH/Tunnels. Specify the ``Source port`` and ``Destination`` and click **Add**.
116 |
117 |
118 |
119 |
42 | @ViewData["Token"] 43 |
44 | 45 |46 | @ViewData["Message"] 47 |
48 | ``` 49 | 50 | 8. Compiles the new code to create the binaries that will be deployed. 51 | ``` 52 | dotnet publish -c Release 53 | ``` 54 | 9. Execute the following command: 55 | 56 | :notebook: **Note**: The [Support Commands Page](/SupportCommands.md) provides a list of useful commands that helps you identify the resources' names created during the labs executions;like the Amazon S3 bucked required for deployment. 57 | 58 | ```bash 59 | dotnet lambda deploy-serverless --template serverless.template --s3-bucket