-
Notifications
You must be signed in to change notification settings - Fork 2
/
comando sqs.txt
22 lines (18 loc) · 1.02 KB
/
comando sqs.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
aws --endpoint-url=http://localhost:4566 sqs receive-message --queue-url http://localhost:4566/000000000000/ms.email --max-number-of-messages 10
{
"Messages": [
{
"Body": "Mensagem de teste",
"ReceiptHandle": "e9dcd4ab-871b-4dd4-a7b7-8426a8bfb5e0#2c7aaba2-3385-459b-9dd2-d4e7fc0d6ac7",
"MD5OfBody": "4449beea32141ebd982d823daa49a542",
"MessageId": "e9dcd4ab-871b-4dd4-a7b7-8426a8bfb5e0"
}
]
}
$ aws --endpoint-url=http://localhost:4566 sqs send-message --queue-url http://localhost:4566/000000000000/ms.email --message-body "Mensagem de teste"
{
"MD5OfMessageBody": "4449beea32141ebd982d823daa49a542",
"MD5OfMessageAttributes": "d41d8cd98f00b204e9800998ecf8427e",
"MessageId": "e9dcd4ab-871b-4dd4-a7b7-8426a8bfb5e0"
}
"ownerRef": "Diego","from": "[email protected]","to": "[email protected]","subject": "Teste envio de email","text": "Enviando via API"