Using SAM to deploy infrastructure

Using SAM to deploy infrastructure

  1. Access to Cloud9
  • Select Your environments
  • Select WildRydesAsyncMessaging
  • Select Open IDE

Working with SNS

  1. After opening the Cloud9 interface. We start building artifacts from the source
cd ~/environment/wild-rydes-async-messaging/lab-1
sam build

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
  • Type Enter 4 times
  • Go to SubmitRideCompletionFunction may not have authorization defined, Is this okay? [y/N]: then enter y
  • Continue typing Enter 4 more times.

Working with SNS

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

Working with SNS

  1. Check from the stack interface of CloudFormation that the stack has been created.

Working with SNS

  1. Check the Lambda interface, there are already 4 functions created.

Working with SNS

  1. Check DynamoDB, a new table has appeared.

Working with SNS