Skip to content

Commit 7cd7fe9

Browse files
committed
Deployment
1 parent cb429ff commit 7cd7fe9

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,3 +448,18 @@ Replace the user and password field with your credentials. Now to make it work,
448448

449449
```require('dotenv').config({ path: './variables.env' });```
450450

451+
## Deployment
452+
453+
All you have to do is run the deploy command from the terminal.
454+
455+
```sls deploy```
456+
457+
Since we have connected our Lambda function, this command will prompt us with a different endpoints. Each handler function is deployed as a separate REST endpoint.
458+
459+
![deployment console](md/deploymentConsole.png)
460+
461+
You can test your API using CURL command from the terminal like below.
462+
463+
```curl -X POST https://7w3e8tfao0.execute-api.us-east-1.amazonaws.com/dev/notes --data '{"title": "My First Note", "description": "This is a note."}'```
464+
465+
[Complete code](https://github.com/amandeepmittal/aws-serverless-demo)

md/deploymentConsole.png

26.4 KB
Loading

0 commit comments

Comments
 (0)