In this step, we will confirm that Amazon SNS Topic is publishing all messages to all subscribers. Since the subscriber may also not be able to process the message, we also want to confirm that Amazon SNS is resending the message so that we don’t miss a single message.
aws cloudformation describe-stacks \
--stack-name wild-rydes-async-msg-1 \
--query 'Stacks[].Outputs[?OutputKey==`UnicornManagementServiceApiSubmitRideCompletionEndpoint`].OutputValue' \
--output text
export ENDPOINT=$(aws cloudformation describe-stacks \
--stack-name wild-rydes-async-msg-1 \
--query 'Stacks[].Outputs[?OutputKey==`UnicornManagementServiceApiSubmitRideCompletionEndpoint`].OutputValue' \
--output text)
curl -XPOST -i -H "Content-Type:application/json" -d '{ "from": "Berlin", "to": "Frankfurt", "duration": 420, "distance": 600, "customer ": "cmr", "fare": 256.50 }' $ENDPOINT