Adding an API Gateway trigger to the function

  1. At the AWS Console interface Choose API Gateway
  2. Choose Build at REST API
  3. Configure the API
  • Name: Chat-API
  • Type: Edge-optimized
  • Choose Create API
  1. At Chat-API interface
  • Choose Create resource
  1. At the resource interface
  • Resource name: {proxy+}
  • Choose Create resource
  1. Choose ANY under /{proxy+}
  • Choose Edit integration
  1. Choose Lambda function
  • Choose the link of the created lambda function: Lambda-ChatApp-Proxy
  1. Leave the rest as default and
  • Choose Save
  1. Choose Test
  2. Choose method: GET
  3. Test and see the results are returned
  4. Check results