Create Customer accounting service

Create Customer accounting service

  1. Access to SNS
  • Select Topic
  • Select RideCompletionTopic
  • Select Create subscription

Working with SNS

  1. Go back to the Cloud9 interface and run the command to see the Endpoint
aws cloudformation describe-stacks \
    --stack-name wild-rydes-async-msg-1 \
    --query 'Stacks[].Outputs[?OutputKey==`CustomerAccountingFunction`].OutputValue' \
    --output text

Working with SNS

  1. In the Create subscription interface
  • Topic ARN keep default
  • Protocol, select Lambda
  • Endpoint, enter the value Output of Cloud9
  • Select Create subscription

Working with SNS

  1. Complete subscription creation

Working with SNS

  1. Access to AWS Lambda
  • Select Customer Accounting function

Working with SNS

  1. Check the Lambda function that triggered the SNS.

Working with SNS