anchor.diff:  ```
   aws cloudformation delete-stack \
   --stack-name microservice-gateway \
  ---region us-west-2
  +--region us-west-1
   ```
   
   == Local Maven Testing
   
   . Invoke HTTP GET method using `mvn exec:java`
   
  -== TODO
   
  -. Create http://docs.aws.amazon.com/lambda/latest/dg/deploying-lambda-apps.html[Serverless Application Model] for the application
  -. Add Single Page Application using S3 and CloudFront
  -. Add authentication and authorization (may be AWS Cognito)
  -. API Throttling
  -. Swagger endpoint for API
  -. AWS Step Function: https://aws.amazon.com/step-functions/ and https://www.youtube.com/watch?v=75MRve4nv8s.
  -. https://aws.amazon.com/blogs/compute/continuous-deployment-for-serverless-applications/[Continuous Deployment for Serverless Application]
  +
  
positive.code: 
  . Create a new IAM role
  +
  ```aws iam create-role \
  --role-name microserviceRole \
  --assume-role-policy-document file://./trust.json
  ```
  
negative.code: 
  More details: http://docs.aws.amazon.com/apigateway/latest/developerguide/setting-up.html
  
  == Setup DynamoDB
  
  . Create a DynamoDB table `Books`
  
  == Lambda Functions
  
  . Create a deployment package: `mvn -f books/pom.xml package`
  
  === Using Serverless Application Model (SAM)
  
  This can also be deployed using AWS CLI as explained in link:readme-cli.adoc[].
  
  . Create bucket: `aws s3 mb s3://books-microservice --region us-west-1`.
  . Copy JAR file to S3 bucket: `aws s3 cp books/target/books-microservice-1.0-SNAPSHOT.jar s3://books-microservice/books-microservice-1.0-SNAPSHOT.jar`
  . Deploy SAM
  +
  ```
  aws cloudformation deploy \
  --template-file app-sam.yml \
  --stack-name microservice-gateway \
  --region us-west-1
  ```
  +
  . Test
  