File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -107,29 +107,39 @@ Click Test. At the bottom of the page you view Execution result and the log outp
107
107
108
108
### Lambda Deployment
109
109
110
- 1 . Connect to a 64-bit Amazon Linux instance via SSH.
110
+ Connect to a 64-bit Amazon Linux instance via SSH.
111
111
112
+ ```
112
113
ssh -i key.pem ec2-user@public-ip-address
114
+ ```
113
115
114
- 2 . Ensure basic build requirements are installed.
116
+ Ensure basic build requirements are installed.
115
117
118
+ ```
116
119
sudo yum install python27-devel python27-pip gcc
120
+ ```
117
121
118
- 3 . Install native dependencies required by Pillow.
122
+ Install native dependencies required by Pillow.
119
123
124
+ ```
120
125
sudo yum install libjpeg-devel zlib-devel
126
+ ```
121
127
122
- 4 . Create and activate a virtual environment.
128
+ Create and activate a virtual environment.
123
129
130
+ ```
124
131
virtualenv ~/lambda-apigateway-twilio-tutorial
125
132
126
133
source ~/lambda-apigateway-twilio-tutorial/bin/activate
134
+ ```
127
135
128
- 5 . Install libraries in the virtual environment.
136
+ Install libraries in the virtual environment.
129
137
138
+ ```
130
139
pip install Pillow
131
140
132
141
pip install boto3
133
142
134
143
pip install twilio
144
+ ```
135
145
You can’t perform that action at this time.
0 commit comments