Initialize State using SAM
Initialize State using SAM
- 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

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

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

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

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

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