Create Amazon SNS Topic

Create Amazon SNS Topic

  1. Open the template.yaml file in VS Code.
  • From the directory tree (Explorer) on the left side of VS Code, open the SAM template file at the path: code/lab-1/template.yaml
  • In the Resources section, uncomment the following code (tip: highlight the commented section and press Ctrl + /):
  RideCompletionTopic:
    Type: AWS::SNS::Topic
    Properties:
      TopicName: RideCompletionTopic

Working with SNS

  1. Open the Terminal in VS Code and perform a rebuild of the AWS SAM template:
cd ~/wild-rydes-async-messaging/code/lab-1
sam build --use-container

Working with SNS

  1. Deploy the initialization of the SNS topic:
sam deploy

Working with SNS