Create Customer notification service

Create Customer notification

  1. Go to AWS SNS
  • Select RideCompletionTopic
  • Select Create subscription

Working with SNS

  1. Go back to the Terminal in VS Code to run the command to view the Endpoint:
aws cloudformation describe-stacks \
    --stack-name wild-rydes-async-msg-1 \
    --query 'Stacks[].Outputs[?OutputKey==`CustomerNotificationFunction`].OutputValue' \
    --output text

Working with SNS

  1. In the Create subscription interface:
  • Leave Topic ARN as default.
  • For Protocol, select AWS Lambda.
  • For Endpoint, enter the output value from the Terminal.
  • Select Create subscription.

Working with SNS

  1. Go to AWS Lambda
  • Select the Customer Notification function.

Working with SNS

  1. Verify that the Lambda function has triggered SNS.

Working with SNS