Sau khi đã tạo SNS subscription bằng console, chúng ta sẽ thử tạo subscription SNS bằng SAM.
Events:
SNSEvent:
Type: SNS
Properties:
Topic: !Ref RideCompletionTopic
FilterPolicy:
fare:
- numeric:
- '>='
- 50
distance:
- numeric:
- '>='
- 20

cd ~/wild-rydes-async-messaging/code/lab-1
sam build --use-container

sam deploy


