anchor.diff:  = Couchbase Microservice HTTP Endpoint
   
  -This document explains how to use AWS API Gateway and AWS Lambda to create a simple microservice. The Lambda function uses Java and the data is stored in Couchbase running in EC2.
  +This document explains how to use AWS API Gateway and AWS Lambda to create a simple microservice. The Lambda function uses Java runtime and the data is stored in Couchbase 4.5.0 running in EC2.
  +
  +Detailed steps are at http://docs.aws.amazon.com/lambda/latest/dg/with-on-demand-https-example-configure-event-source.html.
   
   == IAM Roles
   
  
positive.code: == TODO
  
  . Generate Swagger endpoint for API
  
  
negative.code: 
  . Create a new IAM role: `aws iam create-role --role-name microserviceRole --assume-role-policy-document file://./trust.json`
  . Attach policy to the role: `aws iam put-role-policy --role-name microserviceRole --policy-name microPolicy --policy-document file://./policy.json`
  
  More details: http://docs.aws.amazon.com/apigateway/latest/developerguide/setting-up.html
  
  == Lambda Functions
  
  