After creating SNS subscriptions using the console, we will try to create an SNS subscription using SAM.
code/lab-1/template.yaml file in VS Code and update the following code: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


