Tạo Customer notification service

Tạo Customer notification

  1. Truy cập vào AWS SNS
  • Chọn RideCompletionTopic
  • Chọn Create subscription

Working with SNS

  1. 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

Working with SNS

  1. 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

Working with SNS

  1. Truy cập vào Lambda
  • Chọn Customer Notification function

Working with SNS

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

Working with SNS