You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example demonstrates how to setup a SQS Standard and send messages through the message body and attributes.
16
17
18
+
The queue was created by using [queue construct from the Lift plugin](https://github.com/getlift/lift/blob/master/docs/queue.md), which works perfectly!
19
+
17
20
## Use Cases
21
+
18
22
- Decouple message producers from message consumers.
19
23
- This is one way to architect for scale and reliability.
20
24
21
25
## Setup
22
-
- sls deploy
26
+
27
+
`npm install` to install all needed packages.
28
+
29
+
## Deployment
30
+
31
+
In order to deploy the service run:
32
+
33
+
```bash
34
+
sls deploy
35
+
```
36
+
37
+
for deploying with a specific `profile` (located in `~/.aws/credentials`) you can simply use the command:
38
+
39
+
```bash
40
+
AWS_PROFILE=YOUR_PROFILE_NAME sls deploy
41
+
```
42
+
43
+
for deploying to the specific stage, let's say `staging` do:
44
+
45
+
```bash
46
+
sls deploy --stage staging
47
+
```
48
+
49
+
The expected result should be similar to:
50
+
51
+
```bash
52
+
✔ Service deployed to stack aws-node-typescript-sqs-standard-dev (345s)
53
+
54
+
endpoint: POST - https://XXXXXXXXX.execute-api.REGION.amazonaws.com/sender
0 commit comments