Initialize State using SAM

Initialize State using SAM

  1. Open a new Terminal right inside VS Code (Terminal -> New Terminal). We will start building the artifacts from the source:
cd ~/wild-rydes-async-messaging/code/lab-1
sam build --use-container

Working with SNS

  1. Next, we deploy the application:
export AWS_REGION=$(aws --profile default configure get region)
sam deploy \
    --stack-name wild-rydes-async-msg-1 \
    --capabilities CAPABILITY_IAM \
    --region $AWS_REGION \
    --guided
  • Press Enter 5 times.
  • At the prompt SubmitRideCompletionFunction may not have authorization defined, Is this okay? [y/N]:, type y.
  • Continue pressing Enter 3 more times.

Working with SNS

  1. Wait for about 10 minutes for the application deployment to complete.

Working with SNS

  1. Verify from the CloudFormation stack console that the stack has been created.

Working with SNS

  1. Check the Lambda console to see that 4 functions have been created.

Working with SNS

  1. Check DynamoDB to see that 1 new table has appeared.

Working with SNS