Create Customer accounting service
Create Customer accounting service
- Go to AWS SNS
- Select Topic
- Select RideCompletionTopic
- Select Create subscription

- 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

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

- Complete the subscription creation.

- Go to AWS Lambda
- Select the Customer Accounting function.

- Verify that the Lambda function has triggered SNS.
