Tạo Customer notification service
Tạo Customer notification
- Truy cập vào AWS SNS
- Chọn RideCompletionTopic
- Chọn Create subscription

- Quay lại Terminal trong VS Code để chạy lệnh xem Endpoint
aws cloudformation describe-stacks \
--stack-name wild-rydes-async-msg-1 \
--query 'Stacks[].Outputs[?OutputKey==`CustomerNotificationFunction`].OutputValue' \
--output text

- Trong giao diện Create subscription
- Topic ARN để mặc định
- Protocol chọn AWS Lambda
- Endpoint, nhập kết quả output từ Terminal
- Chọn Create subscription

- Truy cập vào Lambda
- Chọn Customer Notification function

- Kiểm tra Lambda function đã trigger SNS.
