Skip to content

Commit 5d8f4f9

Browse files
committed
Update README.md
1 parent 0ce1327 commit 5d8f4f9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ module.exports.handler = function(event, context) {
9797
};
9898
```
9999

100+
Deploy the Lambda function:
101+
102+
```
103+
sls function deploy blog/post
104+
```
105+
100106
##### Step 6: Define AWS API Gateway endpoints
101107

102108
We define API endpoints by
@@ -154,6 +160,14 @@ Complete [blog/post/s-function.json](../master/blog/post/s-function.json). Here
154160
}
155161
```
156162

163+
Deploy the 5 endpoints:
164+
165+
```
166+
sls dash deploy
167+
```
168+
169+
Select the 5 endpoints and hit "deploy".
170+
157171
##### Step 7: Create a DynamoDB table
158172

159173
Do the following:
@@ -186,3 +200,7 @@ Now, you need to give your Lambda function permission to access the newly create
186200
```
187201

188202
Replace `YOUR_REGION` e.g. with `us-east-1` or wherever you have your dynamodb table and replace `YOUR_AWS_ACCOUNT_ID` with your aws account id (which you can find here: [https://console.aws.amazon.com/billing/home?#/account](https://console.aws.amazon.com/billing/home?#/account)).
203+
204+
##### Done
205+
206+
Woohoo, you made it. You can tow test your serverless application, e.g., using Postman.

0 commit comments

Comments
 (0)