Create Customer accounting service

Create Customer accounting service

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

Working with SNS

  1. Go back to the Terminal in VS Code and run the command to view 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:
  • 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. Complete the subscription creation.

Working with SNS

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

Working with SNS

  1. Verify that the Lambda function has triggered SNS.

Working with SNS