Tạo Customer accounting service

Tạo Customer accounting service

  1. Truy cập vào SNS
  • Chọn Topic
  • 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==`CustomerAccountingFunction`].OutputValue' \
    --output text

Working with SNS

  1. Trong giao diện Create subscription
  • Topic ARN giữ mặc định
  • Protocol, chọn Lambda
  • Endpoint, nhập giá trị Output từ Terminal
  • Chọn Create subscription

Working with SNS

  1. Hoàn thành tạo subscription

Working with SNS

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

Working with SNS

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

Working with SNS